commit:     1e1c21623774123c66b7fdef57f538021c9daab9
Author:     Matthias Schwarzott <zzam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 11 22:10:10 2016 +0000
Commit:     Matthias Schwarzott <zzam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 11 22:10:10 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e1c2162

dev-util/dwarves: Added a new snapshot that can read output of recent compiler 
versions

Package-Manager: portage-2.3.0_rc1

 dev-util/dwarves/Manifest                      |  1 +
 dev-util/dwarves/dwarves-1.10_p20160519.ebuild | 44 ++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)

diff --git a/dev-util/dwarves/Manifest b/dev-util/dwarves/Manifest
index 5018918..b2c8416 100644
--- a/dev-util/dwarves/Manifest
+++ b/dev-util/dwarves/Manifest
@@ -1 +1,2 @@
 DIST dwarves-1.10_p20140618.tar.xz 105912 SHA256 
1955f854206ad26a2949fd2ff20da2403db84393fe9db5769fafcbaacde001c6 SHA512 
522a6d674da5cc2316c180bcb4e90419d5811ff34e6aeeef875950dbcc4c12ea5a133d159360629d687f93ae2db622bb87d9b94a747aade90a61b239b9137a2c
 WHIRLPOOL 
63a4ff06e76e55a0bdd1feb3c5e3c450170f3fbfae80b3d61a36e69f0616ed90e2cdbe065f47cd08caaf8de57e2ed366ded8f581eb2b228bac917b23f66f8ab8
+DIST dwarves-1.10_p20160519.tar.xz 106532 SHA256 
01e7d1bc697c21253e9eef4e481fbb55a35c59d4e5e1eade571ea26aab0fae0b SHA512 
74797e934db900e78235705f70de45667e4ba7f56c0b7454d148365b8c87b617dcbf07fa12bdfdcaa2c129cd2111b029b458e71f77261b237de46fc2759a37da
 WHIRLPOOL 
8e574aad93fd3c32ade8476622c9d853291e5596b91570141f345f70d51645b2ee04f84801b1cc1367b23150c1156f92c29efb3e21b2dcc3706a85de6584e385

diff --git a/dev-util/dwarves/dwarves-1.10_p20160519.ebuild 
b/dev-util/dwarves/dwarves-1.10_p20160519.ebuild
new file mode 100644
index 0000000..f90756e
--- /dev/null
+++ b/dev-util/dwarves/dwarves-1.10_p20160519.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+inherit multilib cmake-utils python-single-r1
+
+DESCRIPTION="pahole (Poke-a-Hole) and other DWARF2 utilities"
+HOMEPAGE="https://git.kernel.org/cgit/devel/pahole/pahole.git/";
+
+LICENSE="GPL-2" # only
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="debug"
+
+RDEPEND="${PYTHON_DEPS}
+       >=dev-libs/elfutils-0.131
+       sys-libs/zlib"
+DEPEND="${RDEPEND}"
+
+if [[ ${PV//_p} == ${PV} ]]; then
+       SRC_URI="http://fedorapeople.org/~acme/dwarves/${P}.tar.bz2";
+       S=${WORKDIR}
+else
+       SRC_URI="https://dev.gentoo.org/~zzam/${PN}/${P}.tar.xz";
+fi
+
+DOCS=( README README.ctracer NEWS )
+PATCHES=( "${FILESDIR}"/${PN}-1.10-python-import.patch )
+
+src_configure() {
+       local mycmakeargs=( "-D__LIB=$(get_libdir)" )
+       cmake-utils_src_configure
+}
+
+src_test() { :; }
+
+src_install() {
+       cmake-utils_src_install
+       python_fix_shebang "${D}"/usr/bin/ostra-cg \
+               "${D}"/usr/share/dwarves/runtime/python/ostra.py
+}

Reply via email to