diff options
-rw-r--r-- | dev-util/ply/Manifest | 1 | ||||
-rw-r--r-- | dev-util/ply/metadata.xml | 10 | ||||
-rw-r--r-- | dev-util/ply/ply-0_pre20160313.ebuild | 59 |
3 files changed, 70 insertions, 0 deletions
diff --git a/dev-util/ply/Manifest b/dev-util/ply/Manifest new file mode 100644 index 000000000000..72a3be7a22cf --- /dev/null +++ b/dev-util/ply/Manifest @@ -0,0 +1 @@ +DIST ply-0_pre20160313.tar.gz 38530 SHA256 ef2f320b84f133840c65d4cca664b5c9fe8b3d5a01743dd05f776c1b7bff65ae SHA512 2de2ca2751574fe23b48188b0e8d1b4f1afe46003cbdefa69aeadaed0442675dad42b6cbfd161ebfbe006fbb21d447be4fca0ea7350b1409207473511f685d47 WHIRLPOOL 9283887367955adb98ae067fedaf3d183195dd0cca727864afcb84ac2f59e2f6b98b4e3c5be4867a1b6095f5435d445a86fb9e18053eae7fe4adee774c7f18e6 diff --git a/dev-util/ply/metadata.xml b/dev-util/ply/metadata.xml new file mode 100644 index 000000000000..0e1f3d58af2b --- /dev/null +++ b/dev-util/ply/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="github">iovisor/ply</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-util/ply/ply-0_pre20160313.ebuild b/dev-util/ply/ply-0_pre20160313.ebuild new file mode 100644 index 000000000000..8112b400542c --- /dev/null +++ b/dev-util/ply/ply-0_pre20160313.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit autotools linux-info + +DESCRIPTION="Dynamic instrumentation of the Linux kernel with BPF and kprobes" +HOMEPAGE="https://github.com/iovisor/ply" +EGIT_COMMIT="cfc56c789ad1eff1080ecb0dad18d009b91ae8ea" +SRC_URI="https://github.com/iovisor/ply/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +S=${WORKDIR}/${PN}-${EGIT_COMMIT} + +pkg_pretend() { + local CONFIG_CHECK="~BPF ~BPF_SYSCALL ~NET_CLS_BPF ~NET_ACT_BPF + ~BPF_JIT ~HAVE_BPF_JIT ~BPF_EVENTS" + + check_extra_config +} + +src_prepare() { + eapply_user + eautoreconf + default +} + +src_configure() { + local econf_args=() kerneldir_orig + if [[ -d ${KERNEL_DIR} ]]; then + # Using KBUILD_OUTPUT can fail, depending on the source tree + # state (it might demand that we make mrproper). Therefore, + # create a symlink copy of the source tree so that we are free + # to clean things up as needed. + kerneldir_orig=${KERNEL_DIR} + cp -sR "${kerneldir_orig}" "${T}/kerneldir" || die + export KERNEL_DIR="${T}/kerneldir" + pushd "${KERNEL_DIR}" || die + # avoid sandbox violation for scripts/kconfig/.conf.cmd + find . -name '\.*' -delete + cp "${kerneldir_orig}/.config" ./.config || die + set_arch_to_kernel + make mrproper oldconfig prepare || die + popd || die + econf_args+=(--with-kerneldir="${KERNEL_DIR}") + fi + econf "${econf_args[@]}" +} + +src_install() { + default + rm -f "${ED}/usr/share/doc/${P}/COPYING" +} |