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-gdbm | |
parent | ced553b72215212e3adcf0830cca9fd8982312d1 (diff) | |
download | ports-4e54190b40cb1ff1a2a891114bb7d3e3fe67fe80.tar.gz ports-4e54190b40cb1ff1a2a891114bb7d3e3fe67fe80.zip |
Notes
Diffstat (limited to 'databases/py-gdbm')
-rw-r--r-- | databases/py-gdbm/Makefile | 22 | ||||
-rw-r--r-- | databases/py-gdbm/files/setup.py | 5 | ||||
-rw-r--r-- | databases/py-gdbm/files/setup3.py | 4 |
3 files changed, 18 insertions, 13 deletions
diff --git a/databases/py-gdbm/Makefile b/databases/py-gdbm/Makefile index 76feabe190db..1ed6c5afcec1 100644 --- a/databases/py-gdbm/Makefile +++ b/databases/py-gdbm/Makefile @@ -1,13 +1,9 @@ -# New ports collection makefile for: py-gdbm -# Date created: 03 October 2000 -# Whom: Thomas Gellekum <tg@FreeBSD.org> -# +# Created by: Thomas Gellekum <tg@FreeBSD.org> # $FreeBSD$ -# PORTNAME= gdbm PORTVERSION= ${PYTHON_PORTVERSION} -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= databases python MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} @@ -17,16 +13,20 @@ DISTFILES= ${PYTHON_DISTFILE} MAINTAINER= python@FreeBSD.org COMMENT= Python bindings to the GNU dbm library -LIB_DEPENDS= gdbm.4:${PORTSDIR}/databases/gdbm +LIB_DEPENDS= gdbm:${PORTSDIR}/databases/gdbm -PLIST_FILES= %%PYTHON_SITELIBDIR%%/gdbm.so -DIST_SUBDIR= python USE_PYTHON= yes USE_PYDISTUTILS=yes USE_XZ= yes -PYDISTUTILS_PKGVERSION= 0.0.0 -WRKSRC= ${PYTHON_WRKSRC}/Modules + +DIST_SUBDIR= python DISTINFO_FILE= ${PORTSDIR}/lang/python${PYTHON_SUFFIX}/distinfo +WRKSRC= ${PYTHON_WRKSRC}/Modules + +PYDISTUTILS_INSTALLARGS+= --install-lib ${PYTHON_LIBDIR}/lib-dynload +PYDISTUTILS_NOEGGINFO= yes + +PLIST_FILES= %%PYTHON_LIBDIR%%/lib-dynload/gdbm.so .include <bsd.port.pre.mk> diff --git a/databases/py-gdbm/files/setup.py b/databases/py-gdbm/files/setup.py index 2675fccfb954..0e51831223a5 100644 --- a/databases/py-gdbm/files/setup.py +++ b/databases/py-gdbm/files/setup.py @@ -13,6 +13,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"] @@ -20,7 +23,7 @@ libs = ["gdbm"] setup(name = "gdbm", description = "GDBM Extension to Python", - + ext_modules = [Extension('gdbm', ['gdbmmodule.c'], include_dirs = inc_dirs, libraries = libs, diff --git a/databases/py-gdbm/files/setup3.py b/databases/py-gdbm/files/setup3.py index 382264277fc6..8c2cea5ff32c 100644 --- a/databases/py-gdbm/files/setup3.py +++ b/databases/py-gdbm/files/setup3.py @@ -13,6 +13,8 @@ try: except: raise SystemExit("Distutils problem") +install.sub_commands = [x for x in install.sub_commands if 'egg' not in x[0]] + prefix = sysconfig.PREFIX inc_dirs = [prefix + "/include"] lib_dirs = [prefix + "/lib"] @@ -20,7 +22,7 @@ libs = ["gdbm"] setup(name = "gdbm", description = "GDBM Extension to Python", - + ext_modules = [Extension('gdbm', ['_gdbmmodule.c'], include_dirs = inc_dirs, libraries = libs, |