From 64caa70b1dba4b395f9672d9faf852ac651bc485 Mon Sep 17 00:00:00 2001 From: kristerw Date: Sat, 9 Jul 2005 01:11:15 +0000 Subject: 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. --- lang/python/pyversion.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lang/python') 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} -- cgit v1.2.3