diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2015-05-15 11:54:47 +0800 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2015-05-15 11:54:47 +0800 |
commit | e37ebaf66664a903369ecfd32f3fb9d15a4611b6 (patch) | |
tree | b492cb46404ae098cd4cdd772af321ca50091487 /Mk/Uses | |
parent | 7748d8e054488d584a4e24529050d2ce547fdc39 (diff) | |
download | freebsd-ports-gnome-e37ebaf66664a903369ecfd32f3fb9d15a4611b6.tar.gz freebsd-ports-gnome-e37ebaf66664a903369ecfd32f3fb9d15a4611b6.tar.zst freebsd-ports-gnome-e37ebaf66664a903369ecfd32f3fb9d15a4611b6.zip |
Add back support for PYTHON_NO_DEPENDS that was lost in the USES=python
conversion in r364450. This feature is still very useful for meta packages
to be able to easily depend on py-* packages using the correct PY_* vars.
For the sake of POLA retain the same name so previously working ports just work.
Diffstat (limited to 'Mk/Uses')
-rw-r--r-- | Mk/Uses/python.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Mk/Uses/python.mk b/Mk/Uses/python.mk index 79b1f939c999..36824605fa32 100644 --- a/Mk/Uses/python.mk +++ b/Mk/Uses/python.mk @@ -28,7 +28,7 @@ # it as RUN_DEPENDS. # # If build and run are omitted, Python will be added as BUILD_DEPENDS and -# RUN_DEPENDS. +# RUN_DEPENDS. PYTHON_NO_DEPENDS can be set to not add any dependencies. # # Variables, which can be set by a user: # @@ -243,7 +243,8 @@ _PYTHON_ARGS:= ${_PYTHON_ARGS:Nrun} # The port does not specify a build or run dependency, assume both are # required. -.if !defined(_PYTHON_BUILD_DEP) && !defined(_PYTHON_RUN_DEP) +.if !defined(_PYTHON_BUILD_DEP) && !defined(_PYTHON_RUN_DEP) && \ + !defined(PYTHON_NO_DEPENDS) _PYTHON_BUILD_DEP= yes _PYTHON_RUN_DEP= yes .endif |