pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/python Let to be failed if no suituable python ve...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ec6fb7255291
branches:  trunk
changeset: 634159:ec6fb7255291
user:      obache <obache%pkgsrc.org@localhost>
date:      Sat May 10 04:25:40 2014 +0000

description:
Let to be failed if no suituable python version.

diffstat:

 lang/python/pyversion.mk |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r e433216ea9e4 -r ec6fb7255291 lang/python/pyversion.mk
--- a/lang/python/pyversion.mk  Sat May 10 04:09:41 2014 +0000
+++ b/lang/python/pyversion.mk  Sat May 10 04:25:40 2014 +0000
@@ -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 @@
 # 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 @@
 #
 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



Home | Main Index | Thread Index | Old Index