diff options
author | mat <mat@FreeBSD.org> | 2017-12-04 19:07:07 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2017-12-04 19:07:07 +0800 |
commit | 7e45919bf68952b138c55d37869e6efab94af897 (patch) | |
tree | 10927d3da0980a68d9da7c551eef8c81eede40fe /Mk | |
parent | d53c0ba31994714239b7d680758123ca3ef647dd (diff) | |
download | freebsd-ports-gnome-7e45919bf68952b138c55d37869e6efab94af897.tar.gz freebsd-ports-gnome-7e45919bf68952b138c55d37869e6efab94af897.tar.zst freebsd-ports-gnome-7e45919bf68952b138c55d37869e6efab94af897.zip |
Correctly fix the Python 3 being the default but in fact not problem.
Sponsored by: Absolight
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/python.mk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mk/Uses/python.mk b/Mk/Uses/python.mk index 9cd7bf7c8ad1..c84f1474c2e8 100644 --- a/Mk/Uses/python.mk +++ b/Mk/Uses/python.mk @@ -428,10 +428,10 @@ _ALL_PYTHON_FLAVORS= ${_PYTHON_VERSIONS:S/.//:S/^/py/} . if defined(BUILD_ALL_PYTHON_FLAVORS) || defined(_PYTHON_FEATURE_ALLFLAVORS) FLAVORS= ${_ALL_PYTHON_FLAVORS} . else -. for _v in ${PYTHON3_DEFAULT} ${PYTHON2_DEFAULT} ${PYTHON_DEFAULT} +. for _v in ${PYTHON_DEFAULT} ${PYTHON2_DEFAULT} ${PYTHON3_DEFAULT} _f= py${_v:S/.//} -. if ${_ALL_PYTHON_FLAVORS:M${_f}} -FLAVORS:= ${_f} ${FLAVORS:N${_f}} +. if ${_ALL_PYTHON_FLAVORS:M${_f}} && !${FLAVORS:M${_f}} +FLAVORS:= ${FLAVORS} ${_f} . endif . endfor . endif |