diff options
author | obache <obache> | 2014-05-10 04:25:40 +0000 |
---|---|---|
committer | obache <obache> | 2014-05-10 04:25:40 +0000 |
commit | d03e43b7111b9fb7308de9f200c46c7fa5648f95 (patch) | |
tree | 369216d708665cedb6c2b688230a405ed6dc1d4e /lang/python | |
parent | e91d318ec7a2698987677f5db85581df85a27e6e (diff) | |
download | pkgsrc-d03e43b7111b9fb7308de9f200c46c7fa5648f95.tar.gz |
Let to be failed if no suituable python version.
Diffstat (limited to 'lang/python')
-rw-r--r-- | lang/python/pyversion.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk index af54796e7d6..2e2e7b41c9d 100644 --- a/lang/python/pyversion.mk +++ b/lang/python/pyversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: pyversion.mk,v 1.114 2014/05/09 05:23:41 obache Exp $ +# $NetBSD: pyversion.mk,v 1.115 2014/05/10 04:25:40 obache Exp $ # This file determines which Python version is used as a dependency for # a package. @@ -130,6 +130,7 @@ MULTI+= PYTHON_VERSION_REQD=${_PYTHON_VERSION} # No supported version found, annotate to simplify statements below. .if !defined(_PYTHON_VERSION) _PYTHON_VERSION= none +PKG_FAIL_REASON+= "No valid Python version" .endif # Additional CONFLICTS @@ -142,12 +143,14 @@ CONFLICTS += ${PKGNAME:S/py${_PYTHON_VERSION}/py${i}/:C/-[0-9].*$/-[0-9]*/} # PLIST_VARS+= py2x py3x +.if empty(_PYTHON_VERSION:Mnone) PYPACKAGE= python${_PYTHON_VERSION} PYVERSSUFFIX= ${_PYTHON_VERSION:C/^([0-9])/\1./1} BUILDLINK_API_DEPENDS.${PYPACKAGE}?= ${PYPACKAGE}>=${PYVERSSUFFIX} PYPKGSRCDIR= ../../lang/${PYPACKAGE} PYDEPENDENCY= ${BUILDLINK_API_DEPENDS.${PYPACKAGE}}:${PYPKGSRCDIR} PYPKGPREFIX= py${_PYTHON_VERSION} +.endif .if !empty(_PYTHON_VERSION:M3*) PLIST.py3x= yes .endif |