pkgsrc/databases/py-bsddb3/Makefile
adam c015e89fb2 Changes 5.1.1:
* Recent pre-releases of Python 3.2 issue ResourceWarnings about
  fileshandles deallocated without being closed first. Fix testsuite.
* Current "*.pyc" and "*.pyo" cleaning is not working in a PEP 3147
  world ("__pycache__"). I don't think this code is actually
  necessary anymore. Deleted.
* Python 2.7.0 deprecates CObject incorrectly. See Python issue 9675.
* Testsuite for "DB->get_transactional()" should not create databases
  outside the TMP directory, neither leave the files behind.
* If something happens while creating the CObject/Capsule object,
  keep going, even without exporting the C API, instead of crashing.
* Support for "DB_FORCESYNC", "DB_FAILCHK", "DB_SET_REG_TIMEOUT",
  "DB_TXN_BULK", "DB_HOTBACKUP_IN_PROGRESS".
* Support "DB_EVENT_REG_ALIVE", "DB_EVENT_REG_PANIC",
  "DB_EVENT_REP_DUPMASTER", "DB_REPMGR_CONF_ELECTIONS",
  "DB_EVENT_REP_ELECTION_FAILED", "DB_EVENT_REP_MASTER_FAILURE".
* Support for "DB_VERB_REP_ELECT", "DB_VERB_REP_LEASE", "DB_VERB_REP_MISC",
  "DB_VERB_REP_MSGS", "DB_VERB_REP_SYNC", "DB_VERB_REP_SYSTEM",
  "DB_VERB_REPMGR_CONNFAIL", "DB_VERB_REPMGR_MISC".
* Support for "DB_STAT_LOCK_CONF", "DB_STAT_LOCK_LOCKERS",
  "DB_STAT_LOCK_OBJECTS", "DB_STAT_LOCK_PARAMS".
* Support for "DB_REP_CONF_INMEM".
* Support for "DB_TIMEOUT ".
* Support for "DB_CURSOR_BULK".
2011-02-23 10:46:17 +00:00

37 lines
1,018 B
Makefile

# $NetBSD: Makefile,v 1.41 2011/02/23 10:46:17 adam Exp $
DISTNAME= bsddb3-5.1.1
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"