diff options
author | joerg <joerg@pkgsrc.org> | 2008-09-10 10:47:31 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-09-10 10:47:31 +0000 |
commit | c8c471a5710b7b4e186437aae23ab147dde248b6 (patch) | |
tree | bdd1eb9804dd36d94d22c1b6a2afc997b218b2ce /databases/py-sqlite2 | |
parent | 93c3e8a03d01a32d7d893a770b037b6be8544bc9 (diff) | |
download | pkgsrc-c8c471a5710b7b4e186437aae23ab147dde248b6.tar.gz |
Don't try to build and install the Python 2.5+ tests on 2.3 and 2.4 to
unbreak PLIST for those versions. Bump revision.
Diffstat (limited to 'databases/py-sqlite2')
-rw-r--r-- | databases/py-sqlite2/Makefile | 15 | ||||
-rw-r--r-- | databases/py-sqlite2/PLIST | 8 |
2 files changed, 17 insertions, 6 deletions
diff --git a/databases/py-sqlite2/Makefile b/databases/py-sqlite2/Makefile index e1ba7388ac3..dff4d79a912 100644 --- a/databases/py-sqlite2/Makefile +++ b/databases/py-sqlite2/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.13 2008/09/06 16:12:44 wiz Exp $ +# $NetBSD: Makefile,v 1.14 2008/09/10 10:47:31 joerg Exp $ DISTNAME= pysqlite-2.5.0 PKGNAME= ${PYPKGPREFIX}-sqlite2-2.5.0 +PKGREEVISION= 1 CATEGORIES= databases python MASTER_SITES= http://oss.itsystementwicklung.de/download/pysqlite/2.5/2.5.0/ @@ -13,9 +14,19 @@ PKG_DESTDIR_SUPPORT= user-destdir PYDISTUTILSPKG= yes +.include "../../lang/python/extension.mk" + +.if ${PYPACKAGE} == "python23" || ${PYPACKAGE} == "python24" +pre-configure: + rm ${WRKSRC}/pysqlite2/test/py25tests.py +.else +PLIST.python25= yes +.endif + +PLIST_VARS+= python25 + do-postinstall-test: .PHONY ${PYTHONBIN} -c "from pysqlite2 import test;test.test()" .include "../../databases/sqlite3/buildlink3.mk" -.include "../../lang/python/extension.mk" .include "../../mk/bsd.pkg.mk" diff --git a/databases/py-sqlite2/PLIST b/databases/py-sqlite2/PLIST index 26a8f9682fb..dc3f588c9d4 100644 --- a/databases/py-sqlite2/PLIST +++ b/databases/py-sqlite2/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.4 2008/09/06 16:12:44 wiz Exp $ +@comment $NetBSD: PLIST,v 1.5 2008/09/10 10:47:31 joerg Exp $ ${PYSITELIB}/pysqlite2/__init__.py ${PYSITELIB}/pysqlite2/__init__.pyc ${PYSITELIB}/pysqlite2/__init__.pyo @@ -24,9 +24,9 @@ ${PYSITELIB}/pysqlite2/test/factory.pyo ${PYSITELIB}/pysqlite2/test/hooks.py ${PYSITELIB}/pysqlite2/test/hooks.pyc ${PYSITELIB}/pysqlite2/test/hooks.pyo -${PYSITELIB}/pysqlite2/test/py25tests.py -${PYSITELIB}/pysqlite2/test/py25tests.pyc -${PYSITELIB}/pysqlite2/test/py25tests.pyo +${PLIST.python25}${PYSITELIB}/pysqlite2/test/py25tests.py +${PLIST.python25}${PYSITELIB}/pysqlite2/test/py25tests.pyc +${PLIST.python25}${PYSITELIB}/pysqlite2/test/py25tests.pyo ${PYSITELIB}/pysqlite2/test/regression.py ${PYSITELIB}/pysqlite2/test/regression.pyc ${PYSITELIB}/pysqlite2/test/regression.pyo |