summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorkristerw <kristerw>2005-07-09 01:11:15 +0000
committerkristerw <kristerw>2005-07-09 01:11:15 +0000
commitd1f812bb568a67a3a479807344eca24db3ba2219 (patch)
treeb6c8fdaad6b22927125115e1fd4e29edcfbe620e /lang/python
parent4616f1f4fa38e27fac3ee30ba7da10171fb9a66e (diff)
downloadpkgsrc-d1f812bb568a67a3a479807344eca24db3ba2219.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}