1 |
commit: 1d33ef5e7a09e31453bb83996fd0ad7f7f89030d |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 1 20:43:21 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 1 20:43:38 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d33ef5e |
7 |
|
8 |
dev-util/libabigail: add 2.1 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-util/libabigail/Manifest | 1 + |
13 |
dev-util/libabigail/libabigail-2.1.ebuild | 83 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 84 insertions(+) |
15 |
|
16 |
diff --git a/dev-util/libabigail/Manifest b/dev-util/libabigail/Manifest |
17 |
index 6beddf6aa0dd..ceb1e13b4493 100644 |
18 |
--- a/dev-util/libabigail/Manifest |
19 |
+++ b/dev-util/libabigail/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST libabigail-2.0.tar.gz 286383045 BLAKE2B 2ba6f59bcd7a1484c4a60c6c9f212ad76af239a552d2cc9e47748e0db52363afadd7a99ef3e123c263de34b416f71b9d679bf2a5c542c419bb38ee75f3d5c57b SHA512 288f63f3495f0cd38258c50b78f30a573e43ab60494fefa22c8cba6d6776c5f94742ffea26297a232b78d25f6804f1b3f51febd59ec487733e6ef683cef2c180 |
22 |
+DIST libabigail-2.1.tar.gz 405861148 BLAKE2B 28c8c7cfc33b5002d10b94e2eb9e16ef403dcce73c1404b8af011d8bf71b142b62a5079154af078a479b4528f8464c420322b814e75bb3127a09992e7ca8f84f SHA512 4fe1d3323f078a76a7529c15a809d0c0d3ac43cabd5ab4bb5c2d03992cbbb61bae3ec858e40796bf9f65029cbc779d258ae4559455178fb95cb8b53bf92bcc9a |
23 |
|
24 |
diff --git a/dev-util/libabigail/libabigail-2.1.ebuild b/dev-util/libabigail/libabigail-2.1.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..470bcde9663b |
27 |
--- /dev/null |
28 |
+++ b/dev-util/libabigail/libabigail-2.1.ebuild |
29 |
@@ -0,0 +1,83 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..11} ) |
36 |
+ |
37 |
+inherit autotools bash-completion-r1 python-any-r1 out-of-source |
38 |
+ |
39 |
+DESCRIPTION="Suite of tools for checking ABI differences between ELF objects" |
40 |
+HOMEPAGE="https://sourceware.org/libabigail/" |
41 |
+SRC_URI="https://mirrors.kernel.org/sourceware/libabigail/${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="Apache-2.0-with-LLVM-exceptions" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv" |
46 |
+IUSE="doc test" |
47 |
+RESTRICT="!test? ( test )" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ dev-libs/elfutils |
51 |
+ dev-libs/libxml2:2 |
52 |
+ elibc_musl? ( sys-libs/fts-standalone )" |
53 |
+DEPEND="${RDEPEND}" |
54 |
+BDEPEND=" |
55 |
+ virtual/pkgconfig |
56 |
+ doc? ( |
57 |
+ app-doc/doxygen |
58 |
+ dev-python/sphinx |
59 |
+ sys-apps/texinfo |
60 |
+ ) |
61 |
+ test? ( ${PYTHON_DEPS} )" |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ default |
65 |
+ # need to run our autotools, due to ltmain.sh including Redhat calls: |
66 |
+ # cannot read spec file '/usr/lib/rpm/redhat/redhat-hardened-ld': No such file or directory |
67 |
+ eautoreconf |
68 |
+} |
69 |
+ |
70 |
+my_src_configure() { |
71 |
+ econf \ |
72 |
+ --disable-deb \ |
73 |
+ --disable-fedabipkgdiff \ |
74 |
+ --disable-rpm \ |
75 |
+ --disable-rpm415 \ |
76 |
+ --disable-ctf \ |
77 |
+ --enable-bash-completion \ |
78 |
+ --enable-python3 \ |
79 |
+ $(use_enable doc apidoc) \ |
80 |
+ $(use_enable doc manual) |
81 |
+} |
82 |
+ |
83 |
+my_src_compile() { |
84 |
+ default |
85 |
+ use doc && emake doc |
86 |
+} |
87 |
+ |
88 |
+my_src_install() { |
89 |
+ emake DESTDIR="${D}" install |
90 |
+ |
91 |
+ if use doc; then |
92 |
+ doman doc/manuals/man/* |
93 |
+ doinfo doc/manuals/texinfo/abigail.info |
94 |
+ |
95 |
+ dodoc -r doc/manuals/html |
96 |
+ |
97 |
+ docinto html/api |
98 |
+ dodoc -r doc/api/html/. |
99 |
+ fi |
100 |
+} |
101 |
+ |
102 |
+my_src_install_all() { |
103 |
+ einstalldocs |
104 |
+ |
105 |
+ local file |
106 |
+ for file in abicompat abidiff abidw abilint abinilint abipkgdiff abisym fedabipkgdiff ; do |
107 |
+ dobashcomp bash-completion/${file} |
108 |
+ done |
109 |
+ |
110 |
+ # No static archives |
111 |
+ find "${ED}" -name '*.la' -delete || die |
112 |
+} |