cb46869c1e
The cElementTree module is a C implementation of the ElementTree API, optimized for fast parsing and low memory use. On typical documents, cElementTree is 15-20 times faster than the Python version of ElementTree, and uses 2-5 times less memory. On modern hardware, that means that documents in the 50-100 megabyte range can be manipulated in memory, and that documents in the 0-1 megabyte range load in zero time (0.0 seconds). This allows you to drastically simplify many kinds of XML applications.
36 lines
925 B
Makefile
36 lines
925 B
Makefile
# $NetBSD: Makefile,v 1.1.1.1 2010/04/11 12:41:45 obache Exp $
|
|
#
|
|
|
|
PKGNAME= ${PYPKGPREFIX}-cElementTree-0
|
|
CATEGORIES= textproc python
|
|
|
|
MAINTAINER= obache@NetBSD.org
|
|
HOMEPAGE= http://www.effbot.org/zone/celementtree.htm
|
|
COMMENT= C implementation of Python ElementTree API
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
PYTHON_VERSIONS_ACCEPTED= 26 25
|
|
|
|
EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/_elementtree.c
|
|
|
|
USE_TOOLS+= patch
|
|
|
|
PYDISTUTILSPKG= yes
|
|
PY_PATCHPLIST= yes
|
|
PY_SETUP_SUBST+= EXPATPREFIX=${BUILDLINK_DIR}
|
|
PY_SETUP_SUBST+= EXPATRTPREFIX=${BUILDLINK_PREFIX.expat}
|
|
|
|
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
|
|
|
|
# ignore errors due to missing files (EXTRACT_ELEMENTS!)
|
|
do-patch:
|
|
(cd ${WRKSRC}; \
|
|
for f in ${PATCHDIR}/patch-*;do \
|
|
${PATCH} --batch <$$f || ${TRUE}; \
|
|
done)
|
|
|
|
.include "../../textproc/expat/buildlink3.mk"
|
|
.include "../../lang/python/extension.mk"
|
|
.include "../../lang/python/srcdist.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|