3e16d07880
* Support Berkeley DB 5.3.x. * Drop support for Berkeley DB 4.2 and Python 2.3. Our reference is Red Had Enterprise Linux 5, until march 2014. * Support for "DBEnv->set_intermediate_dir()", available in Berkeley DB 4.3-4.6. Patch by Garret Cooper. * Support for "DB->set_dup_compare()". Original patches by Nikita M. Kozlovsky and Ben Schmeckpeper. * Fixed a testsuite compatibility problem with BDB 5.2. * If we are running Solaris or derivatives, and 64bit python, try to find the library under "/usr/local/Berkeley.*.*/64/". * Solaris 10 Update 10 exposes a very old race condition in the replication master election tests. Some details in https://forums.oracle.com/forums/thread.jspa?messageID=9902860 . Workaround proposed in a private email from Paula Bingham (Oracle), in 20110929. * When doing the full matrix test for a release, stop the verification if any test failed.
37 lines
1,018 B
Makefile
37 lines
1,018 B
Makefile
# $NetBSD: Makefile,v 1.44 2012/01/18 13:48:36 adam Exp $
|
|
|
|
DISTNAME= bsddb3-5.3.0
|
|
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"
|