python-single-r1.eclass: Always output use-cond in PYTHON_DEPS
authorMichał Górny <mgorny@gentoo.org>
Sun, 19 Feb 2017 13:01:05 +0000 (14:01 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 19 Feb 2017 13:03:52 +0000 (14:03 +0100)
Output a USE conditional in PYTHON_DEPS even when using only a single
target. While this does not make a strict difference since the target
flag is in REQUIRED_USE anyway, it results in more unified output
and makes it easier to catch mistakes if someone plays with the eclass
in the future.

eclass/python-single-r1.eclass

index db08cab1e85c0041651245f8341e417f84df7418..0f319d2a23236f1fafd95ced8049664ff430e01c 100644 (file)
@@ -197,7 +197,7 @@ _python_single_set_globals() {
                # variables without PYTHON_SINGLE_TARGET.
                PYTHON_REQUIRED_USE="${flags_mt[*]}"
                python_export "${_PYTHON_SUPPORTED_IMPLS[0]}" PYTHON_PKG_DEP
-               PYTHON_DEPS="${PYTHON_PKG_DEP} "
+               PYTHON_DEPS="${flags_mt[*]}? ( ${PYTHON_PKG_DEP} ) "
                # Force on the python_single_target_* flag for this impl, so
                # that any dependencies that inherit python-single-r1 and
                # happen to have multiple implementations will still need