diff options
author | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2013-03-01 20:12:01 +0000 |
---|---|---|
committer | Li-Wen Hsu <lwhsu@FreeBSD.org> | 2013-03-01 20:12:01 +0000 |
commit | 4e54190b40cb1ff1a2a891114bb7d3e3fe67fe80 (patch) | |
tree | 9e4d3fe5352ce6de3984761a86925f44ac9e3e62 /databases/py-bsddb | |
parent | ced553b72215212e3adcf0830cca9fd8982312d1 (diff) | |
download | ports-4e54190b40cb1ff1a2a891114bb7d3e3fe67fe80.tar.gz ports-4e54190b40cb1ff1a2a891114bb7d3e3fe67fe80.zip |
Notes
Diffstat (limited to 'databases/py-bsddb')
-rw-r--r-- | databases/py-bsddb/Makefile | 21 | ||||
-rw-r--r-- | databases/py-bsddb/files/setup.py | 5 |
2 files changed, 17 insertions, 9 deletions
diff --git a/databases/py-bsddb/Makefile b/databases/py-bsddb/Makefile index e894b6ebc801..a86b21332ffb 100644 --- a/databases/py-bsddb/Makefile +++ b/databases/py-bsddb/Makefile @@ -3,29 +3,34 @@ PORTNAME= bsddb PORTVERSION= ${PYTHON_PORTVERSION} -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= databases python MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTFILES= ${PYTHON_DISTFILE} -MAINTAINER?= python@FreeBSD.org -COMMENT= Python bindings to the Berkeley DB library +MAINTAINER= python@FreeBSD.org +COMMENT= Standard Python bindings to the Berkeley DB library USE_BDB= yes -USE_PYTHON?= yes +USE_PYTHON= yes USE_PYDISTUTILS=yes USE_XZ= yes -PYDISTUTILS_PKGNAME= _bsddb -PYDISTUTILS_PKGVERSION= 0.0.0 + DIST_SUBDIR= python -WRKSRC= ${PYTHON_WRKSRC}/Modules DISTINFO_FILE= ${PORTSDIR}/lang/python${PYTHON_SUFFIX}/distinfo +WRKSRC= ${PYTHON_WRKSRC}/Modules + +PYDISTUTILS_INSTALLARGS+= --install-lib ${PYTHON_LIBDIR}/lib-dynload +PYDISTUTILS_NOEGGINFO= yes +PYDISTUTILS_PKGNAME= _bsddb + MAKE_ENV= BSDDB_VERSION=${BDB_LIB_NAME} -PLIST_FILES= %%PYTHON_SITELIBDIR%%/_bsddb.so EXTRA_PATCHES+= ${FILESDIR}/extra-patch-py${PYTHON_SUFFIX}-_bsddb.c +PLIST_FILES= %%PYTHON_LIBDIR%%/lib-dynload/_bsddb.so + .include <bsd.port.pre.mk> .if ${PYTHON_REL} >= 300 diff --git a/databases/py-bsddb/files/setup.py b/databases/py-bsddb/files/setup.py index 6878938bb2d7..3f2f606dca31 100644 --- a/databases/py-bsddb/files/setup.py +++ b/databases/py-bsddb/files/setup.py @@ -14,6 +14,9 @@ try: except: raise SystemExit, "Distutils problem" +install.sub_commands = filter(lambda (cmd, avl): 'egg' not in cmd, + install.sub_commands) + prefix = sysconfig.PREFIX inc_dirs = [prefix + "/include"] lib_dirs = [prefix + "/lib"] @@ -21,7 +24,7 @@ libs = [os.environ['BSDDB_VERSION']] setup(name = "_bsddb", description = "BSDDB Extension to Python", - + ext_modules = [Extension('_bsddb', ['_bsddb.c'], include_dirs = inc_dirs, libraries = libs, |