git: 223c60c5d65d - main - Mk/Uses/python.mk: Cosmetic change
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 11 Sep 2023 18:22:26 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=223c60c5d65d885c2155535b60933bf9039066aa
commit 223c60c5d65d885c2155535b60933bf9039066aa
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-09-11 18:21:54 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-09-11 18:21:54 +0000
Mk/Uses/python.mk: Cosmetic change
---
Mk/Uses/python.mk | 25 +++++++++++++++++++++----
1 file changed, 21 insertions(+), 4 deletions(-)
diff --git a/Mk/Uses/python.mk b/Mk/Uses/python.mk
index 1665683f0827..57254be9b048 100644
--- a/Mk/Uses/python.mk
+++ b/Mk/Uses/python.mk
@@ -314,10 +314,26 @@ _PYTHON_BASECMD= ${LOCALBASE}/bin/python
_PYTHON_RELPORTDIR= lang/python
# List all valid USE_PYTHON features here
-_VALID_PYTHON_FEATURES= allflavors autoplist concurrent cython cython_run cython_test \
- distutils flavors noegginfo noflavors nose nose2 \
- optsuffix pep517 py3kplist pytest pytest4 pythonprefix \
- unittest unittest2
+_VALID_PYTHON_FEATURES= allflavors \
+ autoplist \
+ concurrent \
+ cython \
+ cython_run \
+ cython_test \
+ distutils \
+ flavors \
+ noegginfo \
+ noflavors \
+ nose \
+ nose2 \
+ optsuffix \
+ pep517 \
+ py3kplist \
+ pytest \
+ pytest4 \
+ pythonprefix \
+ unittest \
+ unittest2
_INVALID_PYTHON_FEATURES=
. for var in ${USE_PYTHON}
. if empty(_VALID_PYTHON_FEATURES:M${var})
@@ -581,6 +597,7 @@ _PYTHONPKGLIST= ${WRKDIR}/.PLIST.pymodtmp
# - it uses USE_PYTHON=distutils
#
+# cython* support
. if defined(_PYTHON_FEATURE_CYTHON)
BUILD_DEPENDS+= cython-${PYTHON_VER}:lang/cython@${PY_FLAVOR}
. endif