diff options
author | cheusov <cheusov> | 2012-10-03 23:39:21 +0000 |
---|---|---|
committer | cheusov <cheusov> | 2012-10-03 23:39:21 +0000 |
commit | dc40a26024d85d07535fe4b732e30978908b9b14 (patch) | |
tree | da47c5dfdf13294d2ef529dc755e18f023043cfa /lang | |
parent | 94fd30713a018421c20f6ff99d487057b9cd2298 (diff) | |
download | pkgsrc-dc40a26024d85d07535fe4b732e30978908b9b14.tar.gz |
Introduce variable PYTHON_SELF_CONFLICT
for registering conflicts between python modules.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/python/pyversion.mk | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk index c3618da8a39..60425a2dcfa 100644 --- a/lang/python/pyversion.mk +++ b/lang/python/pyversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: pyversion.mk,v 1.102 2012/10/03 22:03:41 wiz Exp $ +# $NetBSD: pyversion.mk,v 1.103 2012/10/03 23:39:21 cheusov Exp $ # This file determines which Python version is used as a dependency for # a package. @@ -49,6 +49,13 @@ # Possible values: (defined) (undefined) # Default: (undefined) # +# PYTHON_SELF_CONFLICT +# If set to "yes", additional CONFLICTS entries are added for +# registering a conflict between pyNN-<modulename> packages. +# +# Possible values: yes no +# Default: no +# # === Defined variables === # # PYPKGPREFIX @@ -141,6 +148,14 @@ MULTI+= PYTHON_VERSION_REQD=${_PYTHON_VERSION} _PYTHON_VERSION= none .endif +# Additional CONFLICTS +.if ${PYTHON_SELF_CONFLICT:U:tl} == "yes" +.for i in ${PYTHON_VERSIONS_ACCEPTED:N${_PYTHON_VERSION}} +CONFLICTS += ${PKGNAME:S/py${_PYTHON_VERSION}/py${i}/:C/-[0-9].*$/-[0-9]*/} +.endfor +.endif # PYCONFLICTS + +# PLIST_VARS+= py2x py3x .if ${_PYTHON_VERSION} == "32" |