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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8AF2D158087 for ; Thu, 3 Feb 2022 20:39:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EC8672BC026; Thu, 3 Feb 2022 20:39:40 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 65E332BC026 for ; Thu, 3 Feb 2022 20:39:40 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5F4AB342F0C for ; Thu, 3 Feb 2022 20:39:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9DB3F2C8 for ; Thu, 3 Feb 2022 20:39:36 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1643920765.a93c20e50813844ee6c01536e117d7c8f22e3deb.arthurzam@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.28.ebuild X-VCS-Directories: dev-python/pyelftools/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: a93c20e50813844ee6c01536e117d7c8f22e3deb X-VCS-Branch: master Date: Thu, 3 Feb 2022 20:39:36 +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: e41615fe-df63-49ac-b646-a9905d84c1cf X-Archives-Hash: 941c730100b831f8f00c45e565c95920 commit: a93c20e50813844ee6c01536e117d7c8f22e3deb Author: Arthur Zamarin gentoo org> AuthorDate: Thu Feb 3 20:19:21 2022 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Thu Feb 3 20:39:25 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a93c20e5 dev-python/pyelftools: add 0.28 Signed-off-by: Arthur Zamarin gentoo.org> dev-python/pyelftools/Manifest | 1 + dev-python/pyelftools/pyelftools-0.28.ebuild | 34 ++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/dev-python/pyelftools/Manifest b/dev-python/pyelftools/Manifest index 82b7cec024f8..3edd13886aa2 100644 --- a/dev-python/pyelftools/Manifest +++ b/dev-python/pyelftools/Manifest @@ -1 +1,2 @@ DIST pyelftools-0.27.tar.gz 3328795 BLAKE2B 74e6e17c68b197d0ecdddedba81a96601003c41a9c095bc72dff7630511705d36d1bc2732005a87ad1420c99497d729c5b771eca7bf5409c0da77d7b348d9c1b SHA512 bb0a00e5500016e3d4f64be0a728e190f84b11a805f78d668b5a74716a30400e6794946f198ef4a3f3b8f64a63deb1b5a96180b09e56b7357b988b28e25fad0a +DIST pyelftools-0.28.gh.tar.gz 5086001 BLAKE2B 87dad42d87b9d3de2382e21d6f7115fb24e420e262735d4bd73c4e3a325d10b69c6eab5d73ff999811633d6a024c22c15ad65be637339f0c609378d54926f747 SHA512 005163a53fe12baad0998d60d531e3ce4201236b7b042e3c28d7e68f9c40586f94a2576be6918be991a3bf464f2ca55700c0475a6e8c7b05b4342a6f5bbf3354 diff --git a/dev-python/pyelftools/pyelftools-0.28.ebuild b/dev-python/pyelftools/pyelftools-0.28.ebuild new file mode 100644 index 000000000000..65a7259a11b6 --- /dev/null +++ b/dev-python/pyelftools/pyelftools-0.28.ebuild @@ -0,0 +1,34 @@ +# 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..10} ) +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 ~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 + local t + for t in all_unittests examples_test ; do + "${EPYTHON}" ./test/run_${t}.py || die "Tests fail with ${EPYTHON}" + done +} + +python_install_all() { + use examples && dodoc -r examples + distutils-r1_python_install_all +}