1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 PYTHON_COMPAT=( python2_7 )
8 inherit multilib cmake-utils python-single-r1
10 DESCRIPTION="pahole (Poke-a-Hole) and other DWARF2 utilities"
11 HOMEPAGE="https://git.kernel.org/cgit/devel/pahole/pahole.git/"
13 LICENSE="GPL-2" # only
15 KEYWORDS="~amd64 ~x86"
18 RDEPEND="${PYTHON_DEPS}
19 >=dev-libs/elfutils-0.131
23 if [[ ${PV//_p} == ${PV} ]]; then
24 SRC_URI="http://fedorapeople.org/~acme/dwarves/${P}.tar.bz2"
27 SRC_URI="https://dev.gentoo.org/~zzam/${PN}/${P}.tar.xz"
30 DOCS=( README README.ctracer NEWS )
31 PATCHES=( "${FILESDIR}"/${PN}-1.10-python-import.patch )
34 local mycmakeargs=( "-D__LIB=$(get_libdir)" )
35 cmake-utils_src_configure
41 cmake-utils_src_install
42 python_fix_shebang "${D}"/usr/bin/ostra-cg \
43 "${D}"/usr/share/dwarves/runtime/python/ostra.py