summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorBertrand Jacquin <bertrand@jacquin.bzh>2020-04-24 00:19:21 +0100
committerBertrand Jacquin <bertrand@jacquin.bzh>2020-10-18 00:21:08 +0100
commit91b6917efc7afaae7bdfa8cea0e58ce81f14720c (patch)
tree087932a25322df0e27875aa7fd6560440e4edd17 /profiles
parentprofiles/desktop: disable smartcard USE flag for dev-java/icedtea (diff)
downloadportage-91b6917efc7afaae7bdfa8cea0e58ce81f14720c.tar.xz
profiles/common: set PYTHON_TARGETS and PYTHON_SINGLE_TARGET
Diffstat (limited to 'profiles')
-rw-r--r--profiles/common/make.defaults22
1 files changed, 22 insertions, 0 deletions
diff --git a/profiles/common/make.defaults b/profiles/common/make.defaults
index 052a1aa7..f6123acc 100644
--- a/profiles/common/make.defaults
+++ b/profiles/common/make.defaults
@@ -93,3 +93,25 @@ USE_EXPAND="TARGET"
# Duplicate from base/make.defaults while removing /lib/modules
# To keep in sync
UNINSTALL_IGNORE="/var/run /var/lock"
+
+# Setting PYTHON_TARGETS is non functional, need to expand manually
+# First disable all of them, set enable needed one
+# W=python_targets ; sed -rne "s/^([a-zA-Z]([^ ]+)) .*/\t-${W}_\1/p" /usr/portage/profiles/desc/${W}.desc | sort
+USE="${USE}
+ -python_targets_pypy3
+ -python_targets_python2_7
+ -python_targets_python3_6
+ -python_targets_python3_7
+ -python_targets_python3_8
+ python_targets_python3_7"
+
+# Setting PYTHON_SINGLE_TARGET is non functional, need to expand manually
+# First disable all of them, set enable needed one
+# W=python_single_target ; sed -rne "s/^([a-zA-Z]([^ ]+)) .*/\t-${W}_\1/p" /usr/portage/profiles/desc/${W}.desc | sort
+USE="${USE}
+ -python_single_target_pypy3
+ -python_single_target_python2_7
+ -python_single_target_python3_6
+ -python_single_target_python3_7
+ -python_single_target_python3_8
+ python_single_target_python3_7"