diff options
Diffstat (limited to 'dev-python/pyelftools')
-rw-r--r-- | dev-python/pyelftools/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pyelftools/pyelftools-0.29.ebuild | 36 |
2 files changed, 38 insertions, 0 deletions
diff --git a/dev-python/pyelftools/Manifest b/dev-python/pyelftools/Manifest index f3e2d49c07db..a771372d8629 100644 --- a/dev-python/pyelftools/Manifest +++ b/dev-python/pyelftools/Manifest @@ -1,3 +1,5 @@ DIST pyelftools-0.28.gh.tar.gz 5086001 BLAKE2B 87dad42d87b9d3de2382e21d6f7115fb24e420e262735d4bd73c4e3a325d10b69c6eab5d73ff999811633d6a024c22c15ad65be637339f0c609378d54926f747 SHA512 005163a53fe12baad0998d60d531e3ce4201236b7b042e3c28d7e68f9c40586f94a2576be6918be991a3bf464f2ca55700c0475a6e8c7b05b4342a6f5bbf3354 +DIST pyelftools-0.29.gh.tar.gz 14176561 BLAKE2B 441260492f8cd512445249700a79f1d823ef96f6213ab9183e17160b76efe51493c28d2ae8ecea79acf45e78987b4c24940441e9bc0a3deaeda0ee4fb72b58c3 SHA512 0eba3b029a734abe9f8df92cd58bc967f10bf9f61c3a419bdbc5e637200844dddd947bcb485e8ebbe2eeaa7f7e91efc6500316af51aace1db051a658cf61153e EBUILD pyelftools-0.28.ebuild 991 BLAKE2B 6caf74dbd7ed007de77efb2b767ec07d2640f4078b77d489e5c9c68ac82969749a1bc3e25d723302c0cc75588c4d88539063392dab95bff9fc54f5766c99e288 SHA512 cf4ce27e860ec1f10f231735c342cbc10fa52c7c53ed9107e05f449af13840d9150daeec5f2e5be81dfc1eaac65f41a6d0ce1fe4e36aaa91bc4c09be88cdd02d +EBUILD pyelftools-0.29.ebuild 971 BLAKE2B 47c4d9d8e9b87191bb60f7e3e83ae11171978645ad713a4a5f06ef5dd2ee8238cec06ad6b23aa3384a8ed33c7d73c14d2f4baff3220b12c438414d7c2cb49dc6 SHA512 40470518450c4384d2090b1954b35655d315ce1711b9577894a602567abeab4bfc482d08d80e868c09d1d2c8f92aa848f36b3b756692e6b52675bcdbe59d3969 MISC metadata.xml 395 BLAKE2B 18e95b29b16eeee438d7391b2370b4955f631578117df6bdf841f50af5c52c688a16e5819b521a37b7737ae0cbe8705c399c2483dd2c066e6e21a7c9b81ec477 SHA512 6ae9650404b3213bb2e1dcc730e782672cb35bc24e3f4b35b02a74d7866ddbda2fc2dc37809856a7e064968502f02d78e2cd1b7a078f44beadd62566913b9f08 diff --git a/dev-python/pyelftools/pyelftools-0.29.ebuild b/dev-python/pyelftools/pyelftools-0.29.ebuild new file mode 100644 index 000000000000..919519a56c65 --- /dev/null +++ b/dev-python/pyelftools/pyelftools-0.29.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) + +inherit distutils-r1 + +DESCRIPTION="pure-Python library for analyzing ELF files and DWARF debugging information" +HOMEPAGE=" + https://pypi.org/project/pyelftools/ + https://github.com/eliben/pyelftools/ +" +# PyPI tarball lacks some test files +SRC_URI=" + https://github.com/eliben/pyelftools/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="examples" + +python_test() { + # readelf_tests often fails due to host `readelf` changing output format + "${EPYTHON}" test/run_all_unittests.py || die + "${EPYTHON}" test/run_examples_test.py || die +} + +python_install_all() { + use examples && dodoc -r examples + distutils-r1_python_install_all +} |