blob: 408a37562bc056912945eb5b80779b5913d16108 (
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
33
34
35
36
37
|
# $NetBSD: Makefile,v 1.42 2011/05/04 13:09:01 adam Exp $
DISTNAME= bsddb3-5.1.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= databases python
MASTER_SITES= http://pypi.python.org/packages/source/b/bsddb3/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://pypi.python.org/pypi/bsddb3/
COMMENT= Python extension module for Berkeley DB 4
LICENSE= mit
PKG_DESTDIR_SUPPORT= user-destdir
BDB_ACCEPTED= db4 db5
PYSETUPBUILDARGS= --berkeley-db=${BDBBASE}
PYSETUPINSTALLARGS= --berkeley-db=${BDBBASE}
PYDISTUTILSPKG= yes
REPLACE_PYTHON= Lib/bsddb/dbshelve.py
REPLACE_PYTHON+= Lib3/bsddb/dbshelve.py
SUBST_CLASSES+= bdb
SUBST_STAGE.bdb= pre-configure
SUBST_FILES.bdb= ${WRKSRC}/setup2.py
SUBST_SED.bdb= -e "s,dblib = 'db',dblib = '${BDB_TYPE}',g"
do-test:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHONBIN} test.py
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bdb.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|