summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorkristerw <kristerw@pkgsrc.org>2005-07-09 01:11:15 +0000
committerkristerw <kristerw@pkgsrc.org>2005-07-09 01:11:15 +0000
commit64caa70b1dba4b395f9672d9faf852ac651bc485 (patch)
treeb6c8fdaad6b22927125115e1fd4e29edcfbe620e /lang/python
parente8e50f2407a9e7101f81537253feb880bf89fdf1 (diff)
downloadpkgsrc-64caa70b1dba4b395f9672d9faf852ac651bc485.tar.gz
Prevent include of nonexisting file when the requested python version
is not available for the platform. Mark packages as "unavailable" instead of "broken" when they depend on a python version that is not available for the platform.
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/pyversion.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk
index 1dddb12d430..2ee7cbdd108 100644
--- a/lang/python/pyversion.mk
+++ b/lang/python/pyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.36 2005/06/23 11:10:32 seb Exp $
+# $NetBSD: pyversion.mk,v 1.37 2005/07/09 01:11:15 kristerw Exp $
.if !defined(PYTHON_PYVERSION_MK)
PYTHON_PYVERSION_MK= defined
@@ -134,7 +134,7 @@ BUILD_DEPENDS+= py15-distutils-*:../../devel/py-distutils
.endif
.else
# force an error
-PKG_FAIL_REASON+= "No valid Python version"
+PKG_SKIP_REASON+= "No valid Python version"
.endif
PTHREAD_OPTS= require
@@ -142,7 +142,9 @@ PTHREAD_OPTS= require
.if defined(PYTHON_FOR_BUILD_ONLY)
BUILDLINK_DEPMETHOD.python?= build
.endif
+.if defined(PYPKGSRCDIR)
.include "${PYPKGSRCDIR}/buildlink3.mk"
+.endif
PYTHONBIN= ${LOCALBASE}/bin/python${PYVERSSUFFIX}