1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python2_7 python3_{4,5} )
9 inherit cmake-utils linux-info python-single-r1 python-utils-r1
11 DESCRIPTION="Tools for BPF-based Linux IO analysis, networking, monitoring, and more"
12 HOMEPAGE="https://iovisor.github.io/bcc/"
14 SRC_URI="https://github.com/iovisor/bcc/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
19 KEYWORDS="~amd64 ~x86"
21 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
23 RDEPEND=">=dev-libs/elfutils-0.166:=
25 >=sys-devel/llvm-3.7:=[llvm_targets_BPF(+)]
28 S=${WORKDIR}/${PN}-${EGIT_COMMIT#v}
31 local CONFIG_CHECK="~BPF ~BPF_SYSCALL ~NET_CLS_BPF ~NET_ACT_BPF
32 ~BPF_JIT ~HAVE_BPF_JIT ~BPF_EVENTS"
38 python-single-r1_pkg_setup
46 cmake-utils_src_configure
50 cmake-utils_src_install
51 python_fix_shebang "${ED}"