From 3822f85be834f2ecc87c7390897fd923019e3dd8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 4 Aug 2019 10:02:44 +0200 Subject: [PATCH] dev-lang/python-exec: EAPI 7, stop using python-r1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Bump to EAPI 7. Replace cheap hack on top of python-r1 with cheap-as-well but probably cleaner hack on top of python-utils-r1. This should silence CI warnings. Signed-off-by: Michał Górny --- .../python-exec/python-exec-2.4.6-r1.ebuild | 128 ++++++++++++++++++ dev-lang/python-exec/python-exec-9999.ebuild | 17 +-- 2 files changed, 134 insertions(+), 11 deletions(-) create mode 100644 dev-lang/python-exec/python-exec-2.4.6-r1.ebuild diff --git a/dev-lang/python-exec/python-exec-2.4.6-r1.ebuild b/dev-lang/python-exec/python-exec-2.4.6-r1.ebuild new file mode 100644 index 000000000000..b40c64f6530b --- /dev/null +++ b/dev-lang/python-exec/python-exec-2.4.6-r1.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit python-utils-r1 + +DESCRIPTION="Python script wrapper" +HOMEPAGE="https://github.com/mgorny/python-exec/" +SRC_URI="https://github.com/mgorny/python-exec/releases/download/v${PV}/${P}.tar.bz2" + +LICENSE="BSD-2" +SLOT="2" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +# Internal Python project hack. Do not copy it. Ever. +IUSE="${_PYTHON_ALL_IMPLS[@]/#/python_targets_}" + +# eselect-python because of /usr/bin/python* collisions and new config +# python versions because of missing $scriptdir/python* symlinks +RDEPEND=" + !> "${ED}"etc/python-exec/python-exec.conf || die + fi + fi +} diff --git a/dev-lang/python-exec/python-exec-9999.ebuild b/dev-lang/python-exec/python-exec-9999.ebuild index c0f5a62b4d0b..95c958dd98ec 100644 --- a/dev-lang/python-exec/python-exec-9999.ebuild +++ b/dev-lang/python-exec/python-exec-9999.ebuild @@ -1,15 +1,9 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -# Kids, don't do this at home! -inherit python-utils-r1 -PYTHON_COMPAT=( "${_PYTHON_ALL_IMPLS[@]}" ) - -# Inherited purely to have PYTHON_TARGET flags which will satisfy USE -# dependencies and trigger necessary rebuilds. -inherit autotools git-r3 python-r1 +inherit autotools git-r3 python-utils-r1 DESCRIPTION="Python script wrapper" HOMEPAGE="https://github.com/mgorny/python-exec/" @@ -19,7 +13,8 @@ EGIT_REPO_URI="https://github.com/mgorny/python-exec.git" LICENSE="BSD-2" SLOT="2" KEYWORDS="" -IUSE="" +# Internal Python project hack. Do not copy it. Ever. +IUSE="${_PYTHON_ALL_IMPLS[@]/#/python_targets_}" # eselect-python because of /usr/bin/python* collisions and new config # python versions because of missing $scriptdir/python* symlinks @@ -37,7 +32,7 @@ src_prepare() { src_configure() { local pyimpls=() i EPYTHON - for i in "${PYTHON_COMPAT[@]}"; do + for i in "${_PYTHON_ALL_IMPLS[@]}"; do python_export "${i}" EPYTHON pyimpls+=( "${EPYTHON}" ) done -- 2.26.2