diff options
author | drochner <drochner@pkgsrc.org> | 2002-01-16 20:09:08 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2002-01-16 20:09:08 +0000 |
commit | a7fe9403458ad251f9831c88113756a6286fd28e (patch) | |
tree | 839402e9087c02fa84230bc1a17f3c730239aefe /lang/python | |
parent | 318e02f3957b4127572a119674d6abbc430c3379 (diff) | |
download | pkgsrc-a7fe9403458ad251f9831c88113756a6286fd28e.tar.gz |
allow to override the python minor versions
Diffstat (limited to 'lang/python')
-rw-r--r-- | lang/python/pyversion.mk | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk index fdb73375f5c..9bc1a798d37 100644 --- a/lang/python/pyversion.mk +++ b/lang/python/pyversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: pyversion.mk,v 1.3 2002/01/16 18:45:09 drochner Exp $ +# $NetBSD: pyversion.mk,v 1.4 2002/01/16 20:09:08 drochner Exp $ .if !defined(PYTHON_PYVERSION_MK) PYTHON_PYVERSION_MK= defined @@ -8,6 +8,10 @@ PYTHON_PYVERSION_MK= defined PYTHON_VERSION_DEFAULT?= 21 PYTHON_VERSIONS_ACCEPTED?= 22 21 20 +BUILDLINK_DEPENDS.python20?= python20>=2.0 +BUILDLINK_DEPENDS.python21?= python21>=2.1 +BUILDLINK_DEPENDS.python22?= python22>=2.2 + # transform the list into individual variables .for pv in ${PYTHON_VERSIONS_ACCEPTED} _PYTHON_VERSION_${pv}_OK= yes @@ -66,15 +70,15 @@ _PYTHON_VERSION= ${_PYTHON_VERSION_FIRSTACCEPTED} # set variables for the version we decided to use # .if ${_PYTHON_VERSION} == "22" -DEPENDS+= python22>=2.2:../../lang/python22 +DEPENDS+= ${BUILDLINK_DEPENDS.python22}:../../lang/python22 PYTHONBIN= ${LOCALBASE}/bin/python2.2 PYPKGPREFIX= py22 .elif ${_PYTHON_VERSION} == "21" -DEPENDS+= python21>=2.1:../../lang/python21 +DEPENDS+= ${BUILDLINK_DEPENDS.python21}:../../lang/python21 PYTHONBIN= ${LOCALBASE}/bin/python2.1 PYPKGPREFIX= py21 .elif ${_PYTHON_VERSION} == "20" -DEPENDS+= python20>=2.0:../../lang/python20 +DEPENDS+= ${BUILDLINK_DEPENDS.python20}:../../lang/python20 PYTHONBIN= ${LOCALBASE}/bin/python2.0 PYPKGPREFIX= py20 .endif |