2009-03-05 19:51:26 +01:00
|
|
|
# $NetBSD: Makefile,v 1.26 2009/03/05 18:51:28 joerg Exp $
|
1998-05-23 23:46:05 +02:00
|
|
|
#
|
|
|
|
|
2002-01-28 10:30:08 +01:00
|
|
|
PKGNAME= ${PYPKGPREFIX}-gdbm-0
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
2004-07-22 11:15:59 +02:00
|
|
|
CATEGORIES= databases python
|
1998-05-23 23:46:05 +02:00
|
|
|
|
|
|
|
MAINTAINER= dolecek@ics.muni.cz
|
1998-08-20 17:16:34 +02:00
|
|
|
HOMEPAGE= http://www.python.org/doc/lib/module-gdbm.html
|
2001-02-16 15:17:22 +01:00
|
|
|
COMMENT= Python interface to gdbm - GNU database manager
|
1998-05-23 23:46:05 +02:00
|
|
|
|
2008-06-12 04:14:13 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2002-01-28 10:30:08 +01:00
|
|
|
EVAL_PREFIX+= GDBMDIR=gdbm
|
1998-05-23 23:46:05 +02:00
|
|
|
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= patch
|
2004-06-12 04:35:29 +02:00
|
|
|
|
2002-01-28 10:30:08 +01:00
|
|
|
EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/gdbmmodule.c
|
|
|
|
PYDISTUTILSPKG= yes
|
|
|
|
PY_PATCHPLIST= yes
|
1998-11-13 01:47:51 +01:00
|
|
|
|
2002-01-28 10:30:08 +01:00
|
|
|
PY_SETUP_SUBST+= GDBMPREFIX=${GDBMDIR}
|
1998-05-23 23:46:05 +02:00
|
|
|
|
2002-01-28 10:30:08 +01:00
|
|
|
# ignore errors due to missing files (EXTRACT_ELEMENTS!)
|
|
|
|
do-patch:
|
2006-06-16 12:58:23 +02:00
|
|
|
set -e; \
|
|
|
|
cd ${WRKSRC}; \
|
|
|
|
for f in ${PATCHDIR}/patch-*; do \
|
|
|
|
${PATCH} --batch < "$$f" || ${TRUE}; \
|
|
|
|
done
|
1998-05-23 23:46:05 +02:00
|
|
|
|
2005-03-30 21:11:29 +02:00
|
|
|
.include "../../databases/gdbm/buildlink3.mk"
|
2002-09-22 01:46:45 +02:00
|
|
|
.include "../../lang/python/extension.mk"
|
2002-12-10 16:08:19 +01:00
|
|
|
.include "../../lang/python/srcdist.mk"
|
1998-05-23 23:46:05 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|