blob: f7f6b08dd6f246421d1f31f73a9bc96f22a12f2d (
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
38
39
|
# $NetBSD: Makefile,v 1.55 2017/09/10 08:02:30 adam Exp $
DISTNAME= bsddb3-6.2.5
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_PYPI:=b/bsddb3/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.jcea.es/programacion/pybsddb.htm
COMMENT= Python bindings for Oracle Berkeley DB
LICENSE= modified-bsd
BDB_ACCEPTED= db6 db5 db4
PYSETUPBUILDARGS= --berkeley-db=${BDBBASE}
PYSETUPINSTALLARGS= --berkeley-db=${BDBBASE}
PYSETUPBUILDARGS+= --berkeley-db-incdir=${BDBBASE}/include/${BDB_TYPE}
PYSETUPINSTALLARGS+= --berkeley-db-incdir=${BDBBASE}/include/${BDB_TYPE}
REPLACE_PYTHON= Lib/bsddb/dbshelve.py
REPLACE_PYTHON+= Lib3/bsddb/dbshelve.py
REPLACE_PYTHON+= Lib/bsddb/test/test_dbtables.py
REPLACE_PYTHON+= Lib3/bsddb/test/test_dbtables.py
SUBST_CLASSES+= bdb
SUBST_STAGE.bdb= pre-configure
SUBST_FILES.bdb= ${WRKSRC}/setup2.py ${WRKSRC}/setup3.py
SUBST_SED.bdb= -e "s,dblib = 'db',dblib = '${BDB_TYPE}',g"
MAKE_ENV+= YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION=1
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"
|