| @@ -1,29 +1,31 @@ | | | @@ -1,29 +1,31 @@ |
1 | # $NetBSD: Makefile,v 1.17 2008/09/21 09:24:52 obache Exp $ | | 1 | # $NetBSD: Makefile,v 1.18 2008/11/10 22:36:49 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= pysqlite-2.5.0 | | 3 | DISTNAME= pysqlite-2.5.0a |
4 | PKGNAME= ${PYPKGPREFIX}-sqlite2-2.5.0 | | 4 | PKGNAME= ${PYPKGPREFIX}-sqlite2-2.5.0a |
5 | PKGREVISION= 1 | | | |
6 | CATEGORIES= databases python | | 5 | CATEGORIES= databases python |
7 | MASTER_SITES= http://oss.itsystementwicklung.de/download/pysqlite/2.5/2.5.0/ | | 6 | MASTER_SITES= http://oss.itsystementwicklung.de/download/pysqlite/2.5/2.5.0/ |
8 | | | 7 | |
9 | MAINTAINER= tsarna@NetBSD.org | | 8 | MAINTAINER= tsarna@NetBSD.org |
10 | HOMEPAGE= http://pysqlite.org/ | | 9 | HOMEPAGE= http://pysqlite.org/ |
11 | COMMENT= SQLite database adapter for Python | | 10 | COMMENT= SQLite database adapter for Python |
12 | | | 11 | |
13 | PKG_DESTDIR_SUPPORT= user-destdir | | 12 | PKG_DESTDIR_SUPPORT= user-destdir |
14 | | | 13 | |
15 | PYDISTUTILSPKG= yes | | 14 | PYDISTUTILSPKG= yes |
16 | | | 15 | |
| | | 16 | # remove after 2.5.0a |
| | | 17 | WRKSRC= ${WRKDIR}/${DISTNAME:S/a$//} |
| | | 18 | |
17 | .include "../../lang/python/extension.mk" | | 19 | .include "../../lang/python/extension.mk" |
18 | | | 20 | |
19 | .if defined(PYPACKAGE) && \ | | 21 | .if defined(PYPACKAGE) && \ |
20 | (${PYPACKAGE} == "python23" || ${PYPACKAGE} == "python24") | | 22 | (${PYPACKAGE} == "python23" || ${PYPACKAGE} == "python24") |
21 | pre-configure: | | 23 | pre-configure: |
22 | rm ${WRKSRC}/pysqlite2/test/py25tests.py | | 24 | rm ${WRKSRC}/pysqlite2/test/py25tests.py |
23 | .else | | 25 | .else |
24 | PLIST.python25= yes | | 26 | PLIST.python25= yes |
25 | .endif | | 27 | .endif |
26 | | | 28 | |
27 | PLIST_VARS+= python25 | | 29 | PLIST_VARS+= python25 |
28 | | | 30 | |
29 | do-postinstall-test: .PHONY | | 31 | do-postinstall-test: .PHONY |