diff options
author | joerg <joerg> | 2008-04-18 12:24:21 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-04-18 12:24:21 +0000 |
commit | 17fd944d6df43df58c3270acd4919aa280e31e37 (patch) | |
tree | 7e769fcc66a24a17b3ff7fe16f040e849ea36710 /lang | |
parent | e297d6790c7111e5ac99287156f24b1b20bd3458 (diff) | |
download | pkgsrc-17fd944d6df43df58c3270acd4919aa280e31e37.tar.gz |
As all Python packages are required to include lang/python/pyversion.mk
anyway, simplify logic a bit:
Add Python 2.5 to the default list, but also mark it as incompatible if
wip/python25 is not present. Move the Darwin handling after setting a
default value.
Provide a new variable _PYTHON_VERSIONS_ACCEPTED that is filtered by
PYTHON_VERSIONS_INCOMPATIBLE. This helps to avoid providing broken
dependencies when a version is not supported as PYPKGPREFIX wouldn't be
set in that case.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/python/pyversion.mk | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk index 66368c22bff..7a56840ade5 100644 --- a/lang/python/pyversion.mk +++ b/lang/python/pyversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: pyversion.mk,v 1.55 2008/04/11 15:37:30 abs Exp $ +# $NetBSD: pyversion.mk,v 1.56 2008/04/18 12:24:21 joerg Exp $ # This file determines which Python version is used as a dependency for # a package. @@ -62,15 +62,16 @@ BUILD_DEFS+= PYTHON_VERSION_DEFAULT BUILD_DEFS_EFFECTS+= PYPACKAGE PYTHON_VERSION_DEFAULT?= 24 +PYTHON_VERSIONS_ACCEPTED?= 25 24 23 22 21 20 +PYTHON_VERSIONS_INCOMPATIBLE?= # empty by default + .if ${OPSYS} == "Darwin" PYTHON_VERSIONS_INCOMPATIBLE+= 22 21 20 15 .endif -.if exists(../../wip/python25/Makefile) -PYTHON_VERSIONS_ACCEPTED?= 25 24 23 22 21 20 -.else -PYTHON_VERSIONS_ACCEPTED?= 24 23 22 21 20 + +.if !exists(../../wip/python25/Makefile) +PYTHON_VERSIONS_INCOMPATIBLE+= 25 .endif -PYTHON_VERSIONS_INCOMPATIBLE?= # empty by default BUILDLINK_API_DEPENDS.python15?= python15>=1.5 BUILDLINK_API_DEPENDS.python20?= python20>=2.0 @@ -84,6 +85,7 @@ BUILDLINK_API_DEPENDS.python25?= python25>=2.5.1 .for pv in ${PYTHON_VERSIONS_ACCEPTED} .if empty(PYTHON_VERSIONS_INCOMPATIBLE:M${pv}) _PYTHON_VERSION_${pv}_OK= yes +_PYTHON_VERSIONS_ACCEPTED+= ${pv} .endif .endfor |