pkgsrc/databases/py-gdbm/Makefile
wiz aa67e11089 Mark packages as not ready for python-3.x where applicable;
either because they themselves are not ready or because a
dependency isn't. This is annotated by
PYTHON_VERSIONS_INCOMPATIBLE=  33 # not yet ported as of x.y.z
or
PYTHON_VERSIONS_INCOMPATIBLE=  33 # py-foo, py-bar
respectively, please use the same style for other packages,
and check during updates.

Use versioned_dependencies.mk where applicable.
Use REPLACE_PYTHON instead of handcoded alternatives, where applicable.
Reorder Makefile sections into standard order, where applicable.

Remove PYTHON_VERSIONS_INCLUDE_3X lines since that will be default
with the next commit.

Whitespace cleanups and other nits corrected, where necessary.
2014-01-25 10:29:56 +00:00

42 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.33 2014/01/25 10:29:59 wiz Exp $
PKGNAME= ${PYPKGPREFIX}-gdbm-0
PKGREVISION= 5
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"