commit:     6cbb1015f80c550e41873048a7b5b660f98c4ea5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Sep  9 16:11:24 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Sep  9 18:48:07 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cbb1015

dev-lang/python-exec: Respect PYTHON_TARGETS (NFC)

Actually use PYTHON_TARGETS when building implementation list.  This is
NFC since all targets are package.use.forced but it lets advanced users
customize behavior via un-forcing those flags.

Bug: https://bugs.gentoo.org/693910
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-lang/python-exec/python-exec-2.4.6-r1.ebuild | 6 ++++--
 dev-lang/python-exec/python-exec-9999.ebuild     | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

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
index 18343cded12..9f56ea1a1d8 100644
--- a/dev-lang/python-exec/python-exec-2.4.6-r1.ebuild
+++ b/dev-lang/python-exec/python-exec-2.4.6-r1.ebuild
@@ -27,8 +27,10 @@ RDEPEND="
 src_configure() {
        local pyimpls=() i EPYTHON
        for i in "${_PYTHON_ALL_IMPLS[@]}"; do
-               python_export "${i}" EPYTHON
-               pyimpls+=( "${EPYTHON}" )
+               if use "python_targets_${i}"; then
+                       python_export "${i}" EPYTHON
+                       pyimpls+=( "${EPYTHON}" )
+               fi
        done
 
        local myconf=(

diff --git a/dev-lang/python-exec/python-exec-9999.ebuild 
b/dev-lang/python-exec/python-exec-9999.ebuild
index f5c7a17a180..ca430aeaf2d 100644
--- a/dev-lang/python-exec/python-exec-9999.ebuild
+++ b/dev-lang/python-exec/python-exec-9999.ebuild
@@ -33,8 +33,10 @@ src_prepare() {
 src_configure() {
        local pyimpls=() i EPYTHON
        for i in "${_PYTHON_ALL_IMPLS[@]}"; do
-               python_export "${i}" EPYTHON
-               pyimpls+=( "${EPYTHON}" )
+               if use "python_targets_${i}"; then
+                       python_export "${i}" EPYTHON
+                       pyimpls+=( "${EPYTHON}" )
+               fi
        done
 
        local myconf=(

Reply via email to