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 31DF7138334 for ; Sun, 4 Aug 2019 13:58:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 57E35E0885; Sun, 4 Aug 2019 13:58:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 3AC23E0872 for ; Sun, 4 Aug 2019 13:58:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 B48B6349888 for ; Sun, 4 Aug 2019 13:58:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3A06C2A5 for ; Sun, 4 Aug 2019 13:58:11 +0000 (UTC) From: "Alexey Shvetsov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexey Shvetsov" Message-ID: <1564926436.70abcf669f792f3782c985b9c46590e09f52b713.alexxy@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyelftools/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pyelftools/pyelftools-0.24-r1.ebuild X-VCS-Directories: dev-python/pyelftools/ X-VCS-Committer: alexxy X-VCS-Committer-Name: Alexey Shvetsov X-VCS-Revision: 70abcf669f792f3782c985b9c46590e09f52b713 X-VCS-Branch: master Date: Sun, 4 Aug 2019 13:58:11 +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: 51fb2312-21cb-474d-93ea-a902067aab29 X-Archives-Hash: d3316a85142a6584d8bc3c97e635d43b commit: 70abcf669f792f3782c985b9c46590e09f52b713 Author: Alexey Shvetsov gentoo org> AuthorDate: Sun Aug 4 13:47:16 2019 +0000 Commit: Alexey Shvetsov gentoo org> CommitDate: Sun Aug 4 13:47:16 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70abcf66 dev-python/pyelftools: works with py3.7 Package-Manager: Portage-2.3.70, Repoman-2.3.16 Signed-off-by: Alexey Shvetsov gentoo.org> dev-python/pyelftools/pyelftools-0.24-r1.ebuild | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/dev-python/pyelftools/pyelftools-0.24-r1.ebuild b/dev-python/pyelftools/pyelftools-0.24-r1.ebuild new file mode 100644 index 00000000000..d8bfc6dcef8 --- /dev/null +++ b/dev-python/pyelftools/pyelftools-0.24-r1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) +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" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~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 +}