dev-lang/python-exec: Respect PYTHON_TARGETS (NFC)
authorMichał Górny <mgorny@gentoo.org>
Mon, 9 Sep 2019 16:11:24 +0000 (18:11 +0200)
committerMichał Górny <mgorny@gentoo.org>
Mon, 9 Sep 2019 18:48:07 +0000 (20:48 +0200)
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@gentoo.org>
dev-lang/python-exec/python-exec-2.4.6-r1.ebuild
dev-lang/python-exec/python-exec-9999.ebuild

index 18343cded128627540122e96cc33a66743788984..9f56ea1a1d853b4d3eac7144d226bca9ae87008f 100644 (file)
@@ -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=(
index f5c7a17a180bac9417f299416dede81759a40362..ca430aeaf2d8ace6768b7f3bac3e339312cd6eeb 100644 (file)
@@ -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=(