summaryrefslogtreecommitdiff
path: root/databases/py-sqlite2/Makefile
blob: dff4d79a912295f9d71fe4ea7d4fd3c8f9f4a65d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $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/

MAINTAINER=	tsarna@NetBSD.org
HOMEPAGE=	http://pysqlite.org/
COMMENT=	SQLite database adapter for Python

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 "../../mk/bsd.pkg.mk"