blob: 107ed2a86f1b7cd8b583f47eb426995fdaafe748 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# $NetBSD: Makefile,v 1.40 2019/12/15 14:42:27 adam Exp $
PKGNAME= ${PYPKGPREFIX}-gdbm-${PY_DISTVERSION}
PKGREVISION= 1
CATEGORIES= databases python
MAINTAINER= dolecek@ics.muni.cz
HOMEPAGE= https://docs.python.org/3/library/dbm.html#module-dbm.gnu
COMMENT= Python interface to gdbm - GNU database manager
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_SETUP_SUBST+= GDBMPREFIX=${BUILDLINK_PREFIX.gdbm}
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"
|