From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CA6A91382C5 for ; Thu, 31 Dec 2020 06:07:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id ABAB0E087E; Thu, 31 Dec 2020 06:07:53 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EF675E087C for ; Thu, 31 Dec 2020 06:07:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AFEDA340DEB for ; Thu, 31 Dec 2020 06:07:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2172B474 for ; Thu, 31 Dec 2020 06:07:50 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1609394865.3768daeb38ced27ed2437771419f0fc9b872dd74.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyelftools/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pyelftools/Manifest dev-python/pyelftools/pyelftools-0.27.ebuild X-VCS-Directories: dev-python/pyelftools/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 3768daeb38ced27ed2437771419f0fc9b872dd74 X-VCS-Branch: master Date: Thu, 31 Dec 2020 06:07:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2f29add6-a489-45fd-8f0d-d5dc2c0b12f6 X-Archives-Hash: 1bd36228571cfc2d5ef3c79edcfbe696 commit: 3768daeb38ced27ed2437771419f0fc9b872dd74 Author: Sam James gentoo org> AuthorDate: Thu Dec 31 05:48:19 2020 +0000 Commit: Sam James gentoo org> CommitDate: Thu Dec 31 06:07:45 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3768daeb dev-python/pyelftools: bump to 0.27 Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> dev-python/pyelftools/Manifest | 1 + dev-python/pyelftools/pyelftools-0.27.ebuild | 30 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/dev-python/pyelftools/Manifest b/dev-python/pyelftools/Manifest index b731483b8aa..844438749bb 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 00000000000..876947e9067 --- /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 +}