summaryrefslogtreecommitdiff
path: root/lang
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
commit71f8ad14d93995543b771d8384d8641ba0c78c63 (patch)
treeb6c8fdaad6b22927125115e1fd4e29edcfbe620e /lang
parenta8be7b925db5422a9b4a8a332fa1f5111f1eef68 (diff)
downloadpkgsrc-71f8ad14d93995543b771d8384d8641ba0c78c63.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')
-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}