| @@ -1,33 +1,33 @@ | | | @@ -1,33 +1,33 @@ |
1 | # $NetBSD: Makefile,v 1.15 2008/09/10 11:33:01 joerg Exp $ | | 1 | # $NetBSD: Makefile,v 1.16 2008/09/10 12:40:58 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= pysqlite-2.5.0 | | 3 | DISTNAME= pysqlite-2.5.0 |
4 | PKGNAME= ${PYPKGPREFIX}-sqlite2-2.5.0 | | 4 | PKGNAME= ${PYPKGPREFIX}-sqlite2-2.5.0 |
5 | PKGREEVISION= 1 | | 5 | PKGREVISION= 1 |
6 | CATEGORIES= databases python | | 6 | CATEGORIES= databases python |
7 | MASTER_SITES= http://oss.itsystementwicklung.de/download/pysqlite/2.5/2.5.0/ | | 7 | MASTER_SITES= http://oss.itsystementwicklung.de/download/pysqlite/2.5/2.5.0/ |
8 | | | 8 | |
9 | MAINTAINER= tsarna@NetBSD.org | | 9 | MAINTAINER= tsarna@NetBSD.org |
10 | HOMEPAGE= http://pysqlite.org/ | | 10 | HOMEPAGE= http://pysqlite.org/ |
11 | COMMENT= SQLite database adapter for Python | | 11 | COMMENT= SQLite database adapter for Python |
12 | | | 12 | |
13 | PKG_DESTDIR_SUPPORT= user-destdir | | 13 | PKG_DESTDIR_SUPPORT= user-destdir |
14 | | | 14 | |
15 | PYDISTUTILSPKG= yes | | 15 | PYDISTUTILSPKG= yes |
16 | | | 16 | |
17 | .include "../../lang/python/extension.mk" | | 17 | .include "../../lang/python/extension.mk" |
18 | | | 18 | |
19 | .if defined(PYPACKAGE) && \ | | 19 | .if defined(PYPACKAGE) && \ |
20 | (${PYPACKAGE} == "python23" || ${PYPACKAGE} == "python24") | | 20 | (${PYPACKAGE} == "python23" || ${PYPACKAGE} == "python24") |
21 | pre-configure: | | 21 | pre-configure: |
22 | rm ${WRKSRC}/pysqlite2/test/py25tests.py | | 22 | rm ${WRKSRC}/pysqlite2/test/py25tests.py |
23 | .else | | 23 | .else |
24 | PLIST.python25= yes | | 24 | PLIST.python25= yes |
25 | .endif | | 25 | .endif |
26 | | | 26 | |
27 | PLIST_VARS+= python25 | | 27 | PLIST_VARS+= python25 |
28 | | | 28 | |
29 | do-postinstall-test: .PHONY | | 29 | do-postinstall-test: .PHONY |
30 | ${PYTHONBIN} -c "from pysqlite2 import test;test.test()" | | 30 | ${PYTHONBIN} -c "from pysqlite2 import test;test.test()" |
31 | | | 31 | |
32 | .include "../../databases/sqlite3/buildlink3.mk" | | 32 | .include "../../databases/sqlite3/buildlink3.mk" |
33 | .include "../../mk/bsd.pkg.mk" | | 33 | .include "../../mk/bsd.pkg.mk" |