From 3768daeb38ced27ed2437771419f0fc9b872dd74 Mon Sep 17 00:00:00 2001 From: Sam James Date: Thu, 31 Dec 2020 05:48:19 +0000 Subject: dev-python/pyelftools: bump to 0.27 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Sam James --- dev-python/pyelftools/Manifest | 1 + dev-python/pyelftools/pyelftools-0.27.ebuild | 30 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 dev-python/pyelftools/pyelftools-0.27.ebuild diff --git a/dev-python/pyelftools/Manifest b/dev-python/pyelftools/Manifest index b731483b8aaa..844438749bba 100644 --- a/dev-python/pyelftools/Manifest +++ b/dev-python/pyelftools/Manifest @@ -1 +1,2 @@ DIST pyelftools-0.26.tar.gz 792390 BLAKE2B 523e6f64205273e8362db92900aebdc05849c5a55d48f75aeae4aa0c58d6dde35ba73c660a5993b211b210fba634360befbdfa90077a140d708c71091918e306 SHA512 dd166f56654592f6a0d7a91bc41c01b9300de6d2f08b204a61ac48eb3f4b3224f89271c5fe66adc41d71a5e2bed8ddfa4ad495098df917623f7aa90c2caffeca +DIST pyelftools-0.27.tar.gz 3328795 BLAKE2B 74e6e17c68b197d0ecdddedba81a96601003c41a9c095bc72dff7630511705d36d1bc2732005a87ad1420c99497d729c5b771eca7bf5409c0da77d7b348d9c1b SHA512 bb0a00e5500016e3d4f64be0a728e190f84b11a805f78d668b5a74716a30400e6794946f198ef4a3f3b8f64a63deb1b5a96180b09e56b7357b988b28e25fad0a diff --git a/dev-python/pyelftools/pyelftools-0.27.ebuild b/dev-python/pyelftools/pyelftools-0.27.ebuild new file mode 100644 index 000000000000..876947e90675 --- /dev/null +++ b/dev-python/pyelftools/pyelftools-0.27.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} ) +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}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="examples" + +python_test() { + # readelf_tests often fails due to host `readelf` changing output format + local t + for t in all_unittests examples_test ; do + "${PYTHON}" ./test/run_${t}.py || die "Tests fail with ${EPYTHON}" + done +} + +python_install_all() { + use examples && dodoc -r examples + distutils-r1_python_install_all +} -- cgit v1.2.3-65-gdbad