blob: 8d9d210e3889f63e7d224b5b281dc5158a924657 (
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
|
# $NetBSD: Makefile,v 1.27 2011/05/04 11:38:05 obache Exp $
#
PKGNAME= ${PYPKGPREFIX}-gdbm-0
PKGREVISION= 3
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
PKG_DESTDIR_SUPPORT= user-destdir
EVAL_PREFIX+= GDBMDIR=gdbm
USE_TOOLS+= patch
EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/gdbmmodule.c
PYDISTUTILSPKG= yes
PY_PATCHPLIST= yes
PY_SETUP_SUBST+= GDBMPREFIX=${GDBMDIR}
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"
|