1 |
commit: 3768daeb38ced27ed2437771419f0fc9b872dd74 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 31 05:48:19 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 31 06:07:45 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3768daeb |
7 |
|
8 |
dev-python/pyelftools: bump to 0.27 |
9 |
|
10 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
dev-python/pyelftools/Manifest | 1 + |
14 |
dev-python/pyelftools/pyelftools-0.27.ebuild | 30 ++++++++++++++++++++++++++++ |
15 |
2 files changed, 31 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pyelftools/Manifest b/dev-python/pyelftools/Manifest |
18 |
index b731483b8aa..844438749bb 100644 |
19 |
--- a/dev-python/pyelftools/Manifest |
20 |
+++ b/dev-python/pyelftools/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST pyelftools-0.26.tar.gz 792390 BLAKE2B 523e6f64205273e8362db92900aebdc05849c5a55d48f75aeae4aa0c58d6dde35ba73c660a5993b211b210fba634360befbdfa90077a140d708c71091918e306 SHA512 dd166f56654592f6a0d7a91bc41c01b9300de6d2f08b204a61ac48eb3f4b3224f89271c5fe66adc41d71a5e2bed8ddfa4ad495098df917623f7aa90c2caffeca |
23 |
+DIST pyelftools-0.27.tar.gz 3328795 BLAKE2B 74e6e17c68b197d0ecdddedba81a96601003c41a9c095bc72dff7630511705d36d1bc2732005a87ad1420c99497d729c5b771eca7bf5409c0da77d7b348d9c1b SHA512 bb0a00e5500016e3d4f64be0a728e190f84b11a805f78d668b5a74716a30400e6794946f198ef4a3f3b8f64a63deb1b5a96180b09e56b7357b988b28e25fad0a |
24 |
|
25 |
diff --git a/dev-python/pyelftools/pyelftools-0.27.ebuild b/dev-python/pyelftools/pyelftools-0.27.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..876947e9067 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pyelftools/pyelftools-0.27.ebuild |
30 |
@@ -0,0 +1,30 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{6,7,8,9} ) |
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/ https://github.com/eliben/pyelftools" |
41 |
+# PyPI tarball lacks some test files |
42 |
+SRC_URI="https://github.com/eliben/pyelftools/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="public-domain" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
47 |
+IUSE="examples" |
48 |
+ |
49 |
+python_test() { |
50 |
+ # readelf_tests often fails due to host `readelf` changing output format |
51 |
+ local t |
52 |
+ for t in all_unittests examples_test ; do |
53 |
+ "${PYTHON}" ./test/run_${t}.py || die "Tests fail with ${EPYTHON}" |
54 |
+ done |
55 |
+} |
56 |
+ |
57 |
+python_install_all() { |
58 |
+ use examples && dodoc -r examples |
59 |
+ distutils-r1_python_install_all |
60 |
+} |