summaryrefslogtreecommitdiff
path: root/databases/py-sqlite2
diff options
context:
space:
mode:
authorjoerg <joerg>2008-09-10 11:33:01 +0000
committerjoerg <joerg>2008-09-10 11:33:01 +0000
commit38acc1ad9550f15cb6bc97ec67aa410c15f07fc8 (patch)
tree16e83c608228baad75ce412eedd54647ebe83179 /databases/py-sqlite2
parentf10d9b039817fc2b467603fac00a40d5239a666c (diff)
downloadpkgsrc-38acc1ad9550f15cb6bc97ec67aa410c15f07fc8.tar.gz
Be slightly more defensive in case an unsupported Python version is
requested.
Diffstat (limited to 'databases/py-sqlite2')
-rw-r--r--databases/py-sqlite2/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/databases/py-sqlite2/Makefile b/databases/py-sqlite2/Makefile
index dff4d79a912..ccfc8883ea4 100644
--- a/databases/py-sqlite2/Makefile
+++ b/databases/py-sqlite2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2008/09/10 10:47:31 joerg Exp $
+# $NetBSD: Makefile,v 1.15 2008/09/10 11:33:01 joerg Exp $
DISTNAME= pysqlite-2.5.0
PKGNAME= ${PYPKGPREFIX}-sqlite2-2.5.0
@@ -16,7 +16,8 @@ PYDISTUTILSPKG= yes
.include "../../lang/python/extension.mk"
-.if ${PYPACKAGE} == "python23" || ${PYPACKAGE} == "python24"
+.if defined(PYPACKAGE) && \
+ (${PYPACKAGE} == "python23" || ${PYPACKAGE} == "python24")
pre-configure:
rm ${WRKSRC}/pysqlite2/test/py25tests.py
.else