diff options
author | mat <mat@FreeBSD.org> | 2017-12-04 23:27:29 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2017-12-04 23:27:29 +0800 |
commit | 5b591e35ba114d43933ef4432935d67bbcb43389 (patch) | |
tree | 4444037446311bfecadaa5643d6e4f97789ae325 /Mk | |
parent | 5a22065ca4d16764f8abf2bce0b434b145404d4d (diff) | |
download | freebsd-ports-gnome-5b591e35ba114d43933ef4432935d67bbcb43389.tar.gz freebsd-ports-gnome-5b591e35ba114d43933ef4432935d67bbcb43389.tar.zst freebsd-ports-gnome-5b591e35ba114d43933ef4432935d67bbcb43389.zip |
Add a USES=python:env, that will not add a dependency on Python.
It has the same effect than setting PYTHON_NO_DEPENDS, but in a more
compact way.
Sponsored by: Absolight
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/Uses/python.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Mk/Uses/python.mk b/Mk/Uses/python.mk index 0c6730cbf32f..86d2defec52a 100644 --- a/Mk/Uses/python.mk +++ b/Mk/Uses/python.mk @@ -28,6 +28,11 @@ # it to RUN_DEPENDS. # test Indicates that Python is needed at test time and adds # it to TEST_DEPENDS. +# env Indicates that the port does not require a dependency on Python +# itself but needs the environment set up. This is mainly used +# when depending on flavored python ports, or when a correct +# PYTHON_CMD is required. It has the same effect than setting +# PYTHON_NO_DEPENDS. # # If build, run and test are omitted, Python will be added as BUILD_DEPENDS, # RUN_DEPENDS and TEST_DEPENDS. PYTHON_NO_DEPENDS can be set to not add any @@ -282,6 +287,11 @@ _PYTHON_ARGS:= ${_PYTHON_ARGS:Nrun} _PYTHON_TEST_DEP= yes _PYTHON_ARGS:= ${_PYTHON_ARGS:Ntest} .endif +.if ${_PYTHON_ARGS:Menv} +PYTHON_NO_DEPENDS= yes +_PYTHON_ARGS:= ${_PYTHON_ARGS:Nenv} +.endif +.endif # The port does not specify a build, run or test dependency, assume all are # required. |