pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/py-sqlite2 Be slightly more defensive in cas...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e75c87fd315a
branches:  trunk
changeset: 546956:e75c87fd315a
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Sep 10 11:33:01 2008 +0000

description:
Be slightly more defensive in case an unsupported Python version is
requested.

diffstat:

 databases/py-sqlite2/Makefile |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 25cde89ee7da -r e75c87fd315a databases/py-sqlite2/Makefile
--- a/databases/py-sqlite2/Makefile     Wed Sep 10 11:04:58 2008 +0000
+++ b/databases/py-sqlite2/Makefile     Wed Sep 10 11:33:01 2008 +0000
@@ -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 @@
 
 .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



Home | Main Index | Thread Index | Old Index