aaff729625
On typical documents, it's 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. PR: ports/91687 Submitted by: Nicola Vitale <nivit@email.it>
29 lines
656 B
Makefile
29 lines
656 B
Makefile
# Ports collection makefile for: py-cElementTree
|
|
# Date created: 11 January 2006
|
|
# Whom: Nicola Vitale <nivit@email.it>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= cElementTree
|
|
PORTVERSION= 1.0.5
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= http://effbot.org/downloads/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-20051216
|
|
|
|
MAINTAINER= nivit@email.it
|
|
COMMENT= A fast C implementation of the ElementTree API
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
post-install:
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${CP} -R ${WRKSRC}/samples/ ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|