1 |
commit: a93c20e50813844ee6c01536e117d7c8f22e3deb |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 3 20:19:21 2022 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 3 20:39:25 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a93c20e5 |
7 |
|
8 |
dev-python/pyelftools: add 0.28 |
9 |
|
10 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
11 |
|
12 |
dev-python/pyelftools/Manifest | 1 + |
13 |
dev-python/pyelftools/pyelftools-0.28.ebuild | 34 ++++++++++++++++++++++++++++ |
14 |
2 files changed, 35 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pyelftools/Manifest b/dev-python/pyelftools/Manifest |
17 |
index 82b7cec024f8..3edd13886aa2 100644 |
18 |
--- a/dev-python/pyelftools/Manifest |
19 |
+++ b/dev-python/pyelftools/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pyelftools-0.27.tar.gz 3328795 BLAKE2B 74e6e17c68b197d0ecdddedba81a96601003c41a9c095bc72dff7630511705d36d1bc2732005a87ad1420c99497d729c5b771eca7bf5409c0da77d7b348d9c1b SHA512 bb0a00e5500016e3d4f64be0a728e190f84b11a805f78d668b5a74716a30400e6794946f198ef4a3f3b8f64a63deb1b5a96180b09e56b7357b988b28e25fad0a |
22 |
+DIST pyelftools-0.28.gh.tar.gz 5086001 BLAKE2B 87dad42d87b9d3de2382e21d6f7115fb24e420e262735d4bd73c4e3a325d10b69c6eab5d73ff999811633d6a024c22c15ad65be637339f0c609378d54926f747 SHA512 005163a53fe12baad0998d60d531e3ce4201236b7b042e3c28d7e68f9c40586f94a2576be6918be991a3bf464f2ca55700c0475a6e8c7b05b4342a6f5bbf3354 |
23 |
|
24 |
diff --git a/dev-python/pyelftools/pyelftools-0.28.ebuild b/dev-python/pyelftools/pyelftools-0.28.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..65a7259a11b6 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pyelftools/pyelftools-0.28.ebuild |
29 |
@@ -0,0 +1,34 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DISTUTILS_USE_PEP517=setuptools |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+inherit distutils-r1 |
38 |
+ |
39 |
+DESCRIPTION="pure-Python library for analyzing ELF files and DWARF debugging information" |
40 |
+HOMEPAGE="https://pypi.org/project/pyelftools/ |
41 |
+ https://github.com/eliben/pyelftools" |
42 |
+# PyPI tarball lacks some test files |
43 |
+SRC_URI=" |
44 |
+ https://github.com/eliben/pyelftools/archive/v${PV}.tar.gz |
45 |
+ -> ${P}.gh.tar.gz" |
46 |
+ |
47 |
+LICENSE="public-domain" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
50 |
+IUSE="examples" |
51 |
+ |
52 |
+python_test() { |
53 |
+ # readelf_tests often fails due to host `readelf` changing output format |
54 |
+ local t |
55 |
+ for t in all_unittests examples_test ; do |
56 |
+ "${EPYTHON}" ./test/run_${t}.py || die "Tests fail with ${EPYTHON}" |
57 |
+ done |
58 |
+} |
59 |
+ |
60 |
+python_install_all() { |
61 |
+ use examples && dodoc -r examples |
62 |
+ distutils-r1_python_install_all |
63 |
+} |