From 91b6917efc7afaae7bdfa8cea0e58ce81f14720c Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Fri, 24 Apr 2020 00:19:21 +0100 Subject: profiles/common: set PYTHON_TARGETS and PYTHON_SINGLE_TARGET --- profiles/common/make.defaults | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'profiles') 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" -- cgit v1.2.3