diff options
author | drochner <drochner> | 2002-01-28 09:30:08 +0000 |
---|---|---|
committer | drochner <drochner> | 2002-01-28 09:30:08 +0000 |
commit | be7dae53678fd7742d975f44772ff6d003dddac7 (patch) | |
tree | fe5860441007f7a6027e99095bbd0f169dad1062 /databases/py-gdbm/Makefile | |
parent | 9132700f40f0d6a30cdd9c25c2ea9a732c61c62c (diff) | |
download | pkgsrc-be7dae53678fd7742d975f44772ff6d003dddac7.tar.gz |
use distutils to build the extension module, to make it work with
newer Python versions too,
XXX we have to override the do-patch rule to avoid patch errors
(we use EXTRACT_ELEMENTS, so we don't generally have all the
original files)
Diffstat (limited to 'databases/py-gdbm/Makefile')
-rw-r--r-- | databases/py-gdbm/Makefile | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/databases/py-gdbm/Makefile b/databases/py-gdbm/Makefile index 49a5e4422e7..d566030fff4 100644 --- a/databases/py-gdbm/Makefile +++ b/databases/py-gdbm/Makefile @@ -1,24 +1,30 @@ -# $NetBSD: Makefile,v 1.14 2001/02/16 14:17:37 wiz Exp $ +# $NetBSD: Makefile,v 1.15 2002/01/28 09:30:08 drochner Exp $ # -DISTNAME= ${PY_DISTNAME} -PKGNAME= py-gdbm-${PY_VERSION} -WRKSRC= ${PY_WRKSRC} +PKGNAME= ${PYPKGPREFIX}-gdbm-0 CATEGORIES= databases -MASTER_SITES= ${PY_MASTER_SITES} MAINTAINER= dolecek@ics.muni.cz HOMEPAGE= http://www.python.org/doc/lib/module-gdbm.html COMMENT= Python interface to gdbm - GNU database manager DEPENDS+= gdbm>=1.7.3:../../databases/gdbm +EVAL_PREFIX+= GDBMDIR=gdbm -EXTRACT_ELEMENTS= ${PY_MODULES}/gdbmmodule.c +EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/gdbmmodule.c +PYDISTUTILSPKG= yes +PYBINMODULE= yes +PY_PATCHPLIST= yes -do-configure: python-std-do-configure +PY_SETUP_SUBST+= GDBMPREFIX=${GDBMDIR} -do-install: - ${INSTALL_DATA} ${WRKSRC}/gdbmmodule.so ${PY_LIBDIR}/lib-dynload +# ignore errors due to missing files (EXTRACT_ELEMENTS!) +do-patch: + (cd ${WRKSRC}; \ + for f in ${PATCHDIR}/patch-*;do \ + ${PATCH} --batch <$$f || true; \ + done) -.include "../../lang/python/Makefile.inc" +.include "../../lang/python/srcdist.mk" +.include "../../lang/python/extension.buildlink.mk" .include "../../mk/bsd.pkg.mk" |