diff options
author | Zac Medico <zmedico@gentoo.org> | 2016-04-11 00:26:27 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2016-04-11 00:28:08 -0700 |
commit | 0934d916f62664f189e133643acadb44b326b6af (patch) | |
tree | 07322b7927a2b7f6d8b99bd08d2f533a6f3c1871 | |
parent | 34d7ae636f2768fcb371f3f404654d67013ef02f (diff) | |
download | gentoo-0934d916f62664f189e133643acadb44b326b6af.tar.gz gentoo-0934d916f62664f189e133643acadb44b326b6af.tar.xz |
dev-util/bcc: new package
Package-Manager: portage-2.2.28
-rw-r--r-- | dev-util/bcc/Manifest | 1 | ||||
-rw-r--r-- | dev-util/bcc/bcc-0.1.8.ebuild | 50 | ||||
-rw-r--r-- | dev-util/bcc/metadata.xml | 10 |
3 files changed, 61 insertions, 0 deletions
diff --git a/dev-util/bcc/Manifest b/dev-util/bcc/Manifest new file mode 100644 index 00000000000..e2f687ac47b --- /dev/null +++ b/dev-util/bcc/Manifest @@ -0,0 +1 @@ +DIST bcc-0.1.8.tar.gz 694032 SHA256 7535d0dec063454a858337dd07211ad2a207f8fa5665a3fad166f38415e50d70 SHA512 d5a0ba306043f8601c7e358546a57e518f2843228dbeca71d483385b00505af46c89eb92437955e9c325d9b326314101b344e8ca4930bca4161614ca1c893301 WHIRLPOOL 198bdcd72b1a701f8a73fa3ede9385dff2cc0869859962841187692838e002cb78a753f128084d67450d5aeb01034b873268188cecf4af188a5db7a67e676b50 diff --git a/dev-util/bcc/bcc-0.1.8.ebuild b/dev-util/bcc/bcc-0.1.8.ebuild new file mode 100644 index 00000000000..8673ca60eb3 --- /dev/null +++ b/dev-util/bcc/bcc-0.1.8.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5} ) + +inherit cmake-utils linux-info python-single-r1 python-utils-r1 + +DESCRIPTION="Tools for BPF-based Linux IO analysis, networking, monitoring, and more" +HOMEPAGE="https://iovisor.github.io/bcc/" +EGIT_COMMIT="v${PV}" +SRC_URI="https://github.com/iovisor/bcc/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +RESTRICT="test" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=">=sys-devel/llvm-3.7:=[clang] + ${PYTHON_DEPS}" +DEPEND="${RDEPEND}" +S=${WORKDIR}/${PN}-${EGIT_COMMIT#v} + +pkg_pretend() { + local CONFIG_CHECK="~BPF ~BPF_SYSCALL ~NET_CLS_BPF ~NET_ACT_BPF + ~BPF_JIT ~HAVE_BPF_JIT ~BPF_EVENTS" + + check_extra_config +} + +pkg_setup() { + python-single-r1_pkg_setup +} + +src_configure() { + local mycmakeargs=( + -DREVISION=${PV%%_*} + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + python_fix_shebang "${ED}" +} diff --git a/dev-util/bcc/metadata.xml b/dev-util/bcc/metadata.xml new file mode 100644 index 00000000000..43eb746c3b0 --- /dev/null +++ b/dev-util/bcc/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/bcc</remote-id> + </upstream> +</pkgmetadata> |