summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2012-08-01 19:07:20 +0000
committerdrochner <drochner@pkgsrc.org>2012-08-01 19:07:20 +0000
commitfabb771f0a3a9a5135e125d05ca34ef5bca74b76 (patch)
treec1b168a725edd0449b072cc1bc7974a8f680ce26 /lang
parent878659b140be826882ae1e9c849a2d0a41317a87 (diff)
downloadpkgsrc-fabb771f0a3a9a5135e125d05ca34ef5bca74b76.tar.gz
oops - forgot to commit a framework change needed by py-dbus:
provide py2x and py3x PLIST_VARS to let pkgs deal easily with files installed for one major version but not for the other
Diffstat (limited to 'lang')
-rw-r--r--lang/python/pyversion.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk
index 225a2a6aac9..61503cddc3f 100644
--- a/lang/python/pyversion.mk
+++ b/lang/python/pyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.99 2012/05/06 13:18:30 obache Exp $
+# $NetBSD: pyversion.mk,v 1.100 2012/08/01 19:07:20 drochner Exp $
# This file determines which Python version is used as a dependency for
# a package.
@@ -134,36 +134,43 @@ MULTI+= PYTHON_VERSION_REQD=${_PYTHON_VERSION}
_PYTHON_VERSION= none
.endif
+PLIST_VARS+= py2x py3x
+
.if ${_PYTHON_VERSION} == "32"
PYPKGSRCDIR= ../../lang/python32
PYDEPENDENCY= ${BUILDLINK_API_DEPENDS.python32}:${PYPKGSRCDIR}
PYPACKAGE= python32
PYVERSSUFFIX= 3.2
PYPKGPREFIX= py32
+PLIST.py3x= yes
.elif ${_PYTHON_VERSION} == "31"
PYPKGSRCDIR= ../../lang/python31
PYDEPENDENCY= ${BUILDLINK_API_DEPENDS.python31}:${PYPKGSRCDIR}
PYPACKAGE= python31
PYVERSSUFFIX= 3.1
PYPKGPREFIX= py31
+PLIST.py3x= yes
.elif ${_PYTHON_VERSION} == "27"
PYPKGSRCDIR= ../../lang/python27
PYDEPENDENCY= ${BUILDLINK_API_DEPENDS.python27}:${PYPKGSRCDIR}
PYPACKAGE= python27
PYVERSSUFFIX= 2.7
PYPKGPREFIX= py27
+PLIST.py2x= yes
.elif ${_PYTHON_VERSION} == "26"
PYPKGSRCDIR= ../../lang/python26
PYDEPENDENCY= ${BUILDLINK_API_DEPENDS.python26}:${PYPKGSRCDIR}
PYPACKAGE= python26
PYVERSSUFFIX= 2.6
PYPKGPREFIX= py26
+PLIST.py2x= yes
.elif ${_PYTHON_VERSION} == "25"
PYPKGSRCDIR= ../../lang/python25
PYDEPENDENCY= ${BUILDLINK_API_DEPENDS.python25}:${PYPKGSRCDIR}
PYPACKAGE= python25
PYVERSSUFFIX= 2.5
PYPKGPREFIX= py25
+PLIST.py2x= yes
.else
PKG_FAIL_REASON+= "No valid Python version"
PYPKGPREFIX=