diff options
author | wiz <wiz> | 2014-01-18 19:51:28 +0000 |
---|---|---|
committer | wiz <wiz> | 2014-01-18 19:51:28 +0000 |
commit | a07c06770cf0996693e93c343c8c2d8e082732d0 (patch) | |
tree | 1d548815b551a9c42b58deab925c73a11b388a88 /lang/python | |
parent | a1ac7be4ec05d306204a5671204bf58b145ceff0 (diff) | |
download | pkgsrc-a07c06770cf0996693e93c343c8c2d8e082732d0.tar.gz |
Revert unintended commit; pkgsrc not ready yet.
Diffstat (limited to 'lang/python')
-rw-r--r-- | lang/python/pyversion.mk | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk index 4c58a58191a..87a1b0d34fb 100644 --- a/lang/python/pyversion.mk +++ b/lang/python/pyversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: pyversion.mk,v 1.111 2014/01/18 19:50:27 wiz Exp $ +# $NetBSD: pyversion.mk,v 1.112 2014/01/18 19:51:28 wiz Exp $ # This file determines which Python version is used as a dependency for # a package. @@ -30,11 +30,19 @@ # Possible values: 33 27 26 # Default: (33) 27 26 # +# PYTHON_VERSIONS_INCLUDE_3X +# Wether the default PYTHON_VERSIONS_ACCEPTED should include +# 3.x versions for for this package or not. +# This variable must be set before including bsd.prefs.mk. +# +# Possible values: yes no +# Default: no +# # PYTHON_VERSIONS_INCOMPATIBLE # The Python versions that are NOT acceptable for the package. # # Possible values: 26 27 33 -# Default: (empty) +# Default: (depends on the platform) # # PYTHON_FOR_BUILD_ONLY # Whether Python is needed only at build time or at run time. @@ -85,7 +93,11 @@ BUILD_DEFS+= PYTHON_VERSION_DEFAULT BUILD_DEFS_EFFECTS+= PYPACKAGE PYTHON_VERSION_DEFAULT?= 27 +.if ${PYTHON_VERSIONS_INCLUDE_3X:U:tl} == "yes" PYTHON_VERSIONS_ACCEPTED?= 33 27 26 +.else +PYTHON_VERSIONS_ACCEPTED?= 27 26 +.endif PYTHON_VERSIONS_INCOMPATIBLE?= # empty by default BUILDLINK_API_DEPENDS.python26?= python26>=2.6 |