1 |
commit: 3935126f0bda0fbc93998d58e61daa0e18385c15 |
2 |
Author: Patrick Lauer <patrick <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 7 16:16:05 2021 +0000 |
4 |
Commit: 罗百科 <patrick <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 7 16:16:48 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3935126f |
7 |
|
8 |
dev-util/pahole: Bump to 1.22, add live ebuild |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org> |
12 |
|
13 |
dev-util/pahole/Manifest | 1 + |
14 |
dev-util/pahole/pahole-1.22.ebuild | 52 ++++++++++++++++++++++++++++++++++++++ |
15 |
dev-util/pahole/pahole-9999.ebuild | 44 ++++++++++++++++++++++++++++++++ |
16 |
3 files changed, 97 insertions(+) |
17 |
|
18 |
diff --git a/dev-util/pahole/Manifest b/dev-util/pahole/Manifest |
19 |
index ba18f4d0c77..795a1994d30 100644 |
20 |
--- a/dev-util/pahole/Manifest |
21 |
+++ b/dev-util/pahole/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST dwarves-1.20.tar.xz 688728 BLAKE2B c57f390f7e1d20c861a4acb8cd7fe238a3f7c3f2d915d96fc051dba2587942e8fabfa4f524d18555c486863fa02bc4ab63d90e90d477f376dc5e547aa36cccac SHA512 306bb74c498527a5a9bdae4d304e90511336cab627d9acad5237d93cbb48efe11dbca4418c540fa03e3ecdd168ce224cabe9fd2f6fbb50520d0dd17741c80817 |
24 |
DIST dwarves-1.21.tar.xz 910480 BLAKE2B b6dcdaf008a7714838904b0bc1050e6af4617e00e168f45a3f1a5d4611a05c898182f3395b2f10478240e05c22ce82a3a7381a1ea7ab41684e3b05ea6e73620c SHA512 69f510025f5790a004c356546f7d92996ad84c4ff1636876b48f1c7d81bf66c83da70f11a1912d65b46f81bea79418782021396a018e74baae5cad9221af14e1 |
25 |
+DIST dwarves-1.22.tar.xz 922016 BLAKE2B 79ba94bcbec6ddc9ebcc6d9e72ed63c8704ca9a97bb3df1910114e89cdd4e7cc75024e4281f15f06be8f5b4656dd957a44d561a16beff1af14d8c7dc32fbd184 SHA512 d45b19505cd59eb2cbb42304ab599661355a4085262cb202757822ec1c05476c851dea85e922f9421efb8a978ab475a6a6545757c6ab080f13ac77c5f7186606 |
26 |
|
27 |
diff --git a/dev-util/pahole/pahole-1.22.ebuild b/dev-util/pahole/pahole-1.22.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..6e645bb8300 |
30 |
--- /dev/null |
31 |
+++ b/dev-util/pahole/pahole-1.22.ebuild |
32 |
@@ -0,0 +1,52 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
39 |
+inherit multilib cmake python-single-r1 |
40 |
+ |
41 |
+DESCRIPTION="pahole (Poke-a-Hole) and other DWARF2 utilities" |
42 |
+HOMEPAGE="https://git.kernel.org/cgit/devel/pahole/pahole.git/" |
43 |
+ |
44 |
+LICENSE="GPL-2" # only |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
47 |
+IUSE="debug" |
48 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
49 |
+ |
50 |
+RDEPEND="${PYTHON_DEPS} |
51 |
+ >=dev-libs/elfutils-0.178 |
52 |
+ sys-libs/zlib" |
53 |
+DEPEND="${RDEPEND}" |
54 |
+ |
55 |
+MY_PN=dwarves |
56 |
+MY_P=${MY_PN}-${PV} |
57 |
+S=${WORKDIR}/${MY_P} |
58 |
+if [[ ${PV//_p} == ${PV} ]]; then |
59 |
+ SRC_URI="http://fedorapeople.org/~acme/${MY_PN}/${MY_P}.tar.xz" |
60 |
+else |
61 |
+ SRC_URI="https://dev.gentoo.org/~zzam/${PN}/${P}.tar.xz" |
62 |
+fi |
63 |
+ |
64 |
+DOCS=( README README.ctracer NEWS ) |
65 |
+ |
66 |
+PATCHES=( |
67 |
+ "${FILESDIR}"/${PN}-1.10-python-import.patch |
68 |
+) |
69 |
+ |
70 |
+src_prepare() { |
71 |
+ cmake_src_prepare |
72 |
+ python_fix_shebang ostra/ostra-cg ostra/python/ostra.py |
73 |
+} |
74 |
+ |
75 |
+src_configure() { |
76 |
+ local mycmakeargs=( "-D__LIB=$(get_libdir)" ) |
77 |
+ cmake_src_configure |
78 |
+} |
79 |
+ |
80 |
+src_test() { :; } |
81 |
+ |
82 |
+src_install() { |
83 |
+ cmake_src_install |
84 |
+} |
85 |
|
86 |
diff --git a/dev-util/pahole/pahole-9999.ebuild b/dev-util/pahole/pahole-9999.ebuild |
87 |
new file mode 100644 |
88 |
index 00000000000..7ce8b9b051b |
89 |
--- /dev/null |
90 |
+++ b/dev-util/pahole/pahole-9999.ebuild |
91 |
@@ -0,0 +1,44 @@ |
92 |
+# Copyright 1999-2021 Gentoo Authors |
93 |
+# Distributed under the terms of the GNU General Public License v2 |
94 |
+ |
95 |
+EAPI=7 |
96 |
+ |
97 |
+PYTHON_COMPAT=( python3_{7,8,9} ) |
98 |
+inherit multilib cmake python-single-r1 git-r3 |
99 |
+ |
100 |
+DESCRIPTION="pahole (Poke-a-Hole) and other DWARF2 utilities" |
101 |
+HOMEPAGE="https://git.kernel.org/cgit/devel/pahole/pahole.git/" |
102 |
+EGIT_REPO_URI="git://git.kernel.org/pub/scm/devel/pahole/pahole.git" |
103 |
+ |
104 |
+LICENSE="GPL-2" # only |
105 |
+SLOT="0" |
106 |
+KEYWORDS="" |
107 |
+IUSE="debug" |
108 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
109 |
+ |
110 |
+RDEPEND="${PYTHON_DEPS} |
111 |
+ >=dev-libs/elfutils-0.178 |
112 |
+ sys-libs/zlib" |
113 |
+DEPEND="${RDEPEND}" |
114 |
+ |
115 |
+DOCS=( README README.ctracer NEWS ) |
116 |
+ |
117 |
+PATCHES=( |
118 |
+ "${FILESDIR}"/${PN}-1.10-python-import.patch |
119 |
+) |
120 |
+ |
121 |
+src_prepare() { |
122 |
+ cmake_src_prepare |
123 |
+ python_fix_shebang ostra/ostra-cg ostra/python/ostra.py |
124 |
+} |
125 |
+ |
126 |
+src_configure() { |
127 |
+ local mycmakeargs=( "-D__LIB=$(get_libdir)" ) |
128 |
+ cmake_src_configure |
129 |
+} |
130 |
+ |
131 |
+src_test() { :; } |
132 |
+ |
133 |
+src_install() { |
134 |
+ cmake_src_install |
135 |
+} |