pkgsrc/databases/py-gdbm/Makefile
obache 18e32422ce Change version number from fixed `0' to main Python distribution version,
same as other buitin module (already changed over a half year ago).
2014-12-21 01:22:33 +00:00

41 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.34 2014/12/21 01:22:33 obache Exp $
PKGNAME= ${PYPKGPREFIX}-gdbm-${PY_DISTVERSION}
CATEGORIES= databases python
MAINTAINER= dolecek@ics.muni.cz
HOMEPAGE= http://www.python.org/doc/lib/module-gdbm.html
COMMENT= Python interface to gdbm - GNU database manager
EVAL_PREFIX+= GDBMDIR=gdbm
USE_TOOLS+= patch
.include "../../lang/python/pyversion.mk"
.if !empty(PYPKGPREFIX:Mpy3?)
GDBM_MODNAME= _gdbm
.else
GDBM_MODNAME= gdbm
.endif
EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/${GDBM_MODNAME}module.c
PYDISTUTILSPKG= yes
PY_PATCHPLIST= yes
PY_SETUP_SUBST+= GDBMPREFIX=${GDBMDIR}
PY_SETUP_SUBST+= GDBM_MODNAME=${GDBM_MODNAME}
PLIST_SUBST+= GDBM_MODNAME=${GDBM_MODNAME}
PYSETUPINSTALLARGS+= --install-lib ${PREFIX}/${PYLIB}/lib-dynload
# ignore errors due to missing files (EXTRACT_ELEMENTS!)
do-patch:
set -e; \
cd ${WRKSRC}; \
for f in ${PATCHDIR}/patch-*; do \
${PATCH} --batch < "$$f" || ${TRUE}; \
done
.include "../../databases/gdbm/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../lang/python/srcdist.mk"
.include "../../mk/bsd.pkg.mk"