summaryrefslogtreecommitdiff
path: root/databases/py-sqlite2
diff options
context:
space:
mode:
authorobache <obache>2010-10-02 06:11:03 +0000
committerobache <obache>2010-10-02 06:11:03 +0000
commit07618ab837bb6aeb3cedf16e6c6e5515ffb45175 (patch)
tree6bfc937153a9a587ce5f6edb1044748dc102f223 /databases/py-sqlite2
parent180466e4e8e4ccc820ae288c762174012546099b (diff)
downloadpkgsrc-07618ab837bb6aeb3cedf16e6c6e5515ffb45175.tar.gz
back conditional PLIST for python<2.5, it was lost at updated to 2.6.0.
Diffstat (limited to 'databases/py-sqlite2')
-rw-r--r--databases/py-sqlite2/Makefile8
-rw-r--r--databases/py-sqlite2/PLIST14
2 files changed, 14 insertions, 8 deletions
diff --git a/databases/py-sqlite2/Makefile b/databases/py-sqlite2/Makefile
index f9bf80bfcb5..bf73015624b 100644
--- a/databases/py-sqlite2/Makefile
+++ b/databases/py-sqlite2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2010/09/16 11:31:16 adam Exp $
+# $NetBSD: Makefile,v 1.21 2010/10/02 06:11:03 obache Exp $
DISTNAME= pysqlite-2.6.0
PKGNAME= ${PYPKGPREFIX}-sqlite2-2.6.0
@@ -15,6 +15,12 @@ PYDISTUTILSPKG= yes
.include "../../lang/python/extension.mk"
+.if !defined(PYPACKAGE) || ${PYPACKAGE} != "python24"
+PLIST.python25= yes
+.endif
+
+PLIST_VARS+= python25
+
do-postinstall-test: .PHONY
cd ${WRKDIR} && ${PYTHONBIN} -c "from pysqlite2 import test;test.test()"
diff --git a/databases/py-sqlite2/PLIST b/databases/py-sqlite2/PLIST
index c550532296e..0178055ff69 100644
--- a/databases/py-sqlite2/PLIST
+++ b/databases/py-sqlite2/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2010/09/16 11:31:16 adam Exp $
+@comment $NetBSD: PLIST,v 1.8 2010/10/02 06:11:03 obache Exp $
${PYSITELIB}/pysqlite2/__init__.py
${PYSITELIB}/pysqlite2/__init__.pyc
${PYSITELIB}/pysqlite2/__init__.pyo
@@ -24,12 +24,12 @@ ${PYSITELIB}/pysqlite2/test/factory.pyo
${PYSITELIB}/pysqlite2/test/hooks.py
${PYSITELIB}/pysqlite2/test/hooks.pyc
${PYSITELIB}/pysqlite2/test/hooks.pyo
-${PYSITELIB}/pysqlite2/test/py25/__init__.py
-${PYSITELIB}/pysqlite2/test/py25/__init__.pyc
-${PYSITELIB}/pysqlite2/test/py25/__init__.pyo
-${PYSITELIB}/pysqlite2/test/py25/py25tests.py
-${PYSITELIB}/pysqlite2/test/py25/py25tests.pyc
-${PYSITELIB}/pysqlite2/test/py25/py25tests.pyo
+${PLIST.python25}${PYSITELIB}/pysqlite2/test/py25/__init__.py
+${PLIST.python25}${PYSITELIB}/pysqlite2/test/py25/__init__.pyc
+${PLIST.python25}${PYSITELIB}/pysqlite2/test/py25/__init__.pyo
+${PLIST.python25}${PYSITELIB}/pysqlite2/test/py25/py25tests.py
+${PLIST.python25}${PYSITELIB}/pysqlite2/test/py25/py25tests.pyc
+${PLIST.python25}${PYSITELIB}/pysqlite2/test/py25/py25tests.pyo
${PYSITELIB}/pysqlite2/test/regression.py
${PYSITELIB}/pysqlite2/test/regression.pyc
${PYSITELIB}/pysqlite2/test/regression.pyo