Gentoo Archives: gentoo-commits

From: Matthias Schwarzott <zzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/pahole/
Date: Mon, 05 Sep 2022 07:35:06
Message-Id: 1662363284.6035dad288e97438e533138a4cb0995c9490a397.zzam@gentoo
1 commit: 6035dad288e97438e533138a4cb0995c9490a397
2 Author: Matthias Schwarzott <zzam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 5 07:34:07 2022 +0000
4 Commit: Matthias Schwarzott <zzam <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 5 07:34:44 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6035dad2
7
8 dev-util/pahole: add version 1.24
9
10 Signed-off-by: Matthias Schwarzott <zzam <AT> gentoo.org>
11
12 dev-util/pahole/Manifest | 1 +
13 dev-util/pahole/pahole-1.24.ebuild | 52 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 53 insertions(+)
15
16 diff --git a/dev-util/pahole/Manifest b/dev-util/pahole/Manifest
17 index b1ddadeaf0a1..b232c9e09f43 100644
18 --- a/dev-util/pahole/Manifest
19 +++ b/dev-util/pahole/Manifest
20 @@ -1 +1,2 @@
21 DIST dwarves-1.23.tar.xz 815076 BLAKE2B 2d89ac2d8cacb70a322b1c946356c0b18a2276f7a549efc2cf530c087dd718c7d01f5bcf8b9208965e066770064b6d8db7a9f6ab9a3f3a4612f6fcc8d146c1e8 SHA512 5255930d6898ce35a41e3e553363964663d2b686d12732ff6140fa1d06fcc3806adf28e24ec35ab0712eec0562c52c3943afe9ecce468b0053b852ffeb04c3dc
22 +DIST dwarves-1.24.tar.xz 875744 BLAKE2B 6766b5a5ecbf64013227e7cd459af662fc213f230b5b1279354fcaaccebfa3d74f9a2254542dc4f3f1bb4a5def1d4c77e2445fa8b531fa8b9e331cdfc23155fe SHA512 3cdca183cf68ec46fd9a0301ae4a8a30b23a8139c65ffba64ae11f85f9e942f7341dca6f88a4a3b49f32bfd880927193a80fa011726e4a33d3e5a1a146326c06
23
24 diff --git a/dev-util/pahole/pahole-1.24.ebuild b/dev-util/pahole/pahole-1.24.ebuild
25 new file mode 100644
26 index 000000000000..8a8a28a9f3a2
27 --- /dev/null
28 +++ b/dev-util/pahole/pahole-1.24.ebuild
29 @@ -0,0 +1,52 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +PYTHON_COMPAT=( python3_{8..11} )
36 +inherit cmake python-single-r1
37 +
38 +DESCRIPTION="pahole (Poke-a-Hole) and other DWARF2 utilities"
39 +HOMEPAGE="https://git.kernel.org/cgit/devel/pahole/pahole.git/"
40 +
41 +LICENSE="GPL-2" # only
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
44 +IUSE="debug"
45 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
46 +
47 +RDEPEND="${PYTHON_DEPS}
48 + >=dev-libs/elfutils-0.178
49 + sys-libs/zlib"
50 +DEPEND="${RDEPEND}"
51 +
52 +MY_PN=dwarves
53 +MY_P=${MY_PN}-${PV}
54 +S=${WORKDIR}/${MY_P}
55 +if [[ ${PV//_p} == ${PV} ]]; then
56 + SRC_URI="http://fedorapeople.org/~acme/${MY_PN}/${MY_P}.tar.xz"
57 +else
58 + SRC_URI="https://dev.gentoo.org/~zzam/${PN}/${P}.tar.xz"
59 +fi
60 +
61 +DOCS=( README README.ctracer NEWS )
62 +
63 +PATCHES=(
64 + "${FILESDIR}"/${PN}-1.10-python-import.patch
65 +)
66 +
67 +src_prepare() {
68 + cmake_src_prepare
69 + python_fix_shebang ostra/ostra-cg ostra/python/ostra.py
70 +}
71 +
72 +src_configure() {
73 + local mycmakeargs=( "-D__LIB=$(get_libdir)" )
74 + cmake_src_configure
75 +}
76 +
77 +src_test() { :; }
78 +
79 +src_install() {
80 + cmake_src_install
81 +}