Update port: textproc/py-xml update to 0.8.4

Attached is a new set of files to replace the entire
	textproc/py-xml port.  I am the port maintainer.

	This version of the port installs PyXML 0.8.4 rather than
	0.8.3, turns off XSLT support by default (it is experimental
	and may conflict with 4Suite), adds WITHOUT_XPATH and
	WITH_XSLT options, uses USE_PYTHON with a version spec
	instead of using a pkg-req file to require the right version
	of Python, and has an improved pkg-descr.

	If this new version is accepted, please also clear PR 74568:
	http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/74568

PR:		ports/74974
Submitted by:	Mike Brown <mike@skew.org>
This commit is contained in:
Edwin Groothuis 2004-12-17 08:44:49 +00:00
parent bf3c632686
commit 29813f4125
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=124285
5 changed files with 587 additions and 575 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= xml
PORTVERSION= 0.8.3
PORTVERSION= 0.8.4
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pyxml
@ -14,22 +14,50 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= PyXML-${PORTVERSION}
MAINTAINER= mike@skew.org
COMMENT= The Python XML package, including parser, SAX, DOM, and Expat
COMMENT= PyXML: Python XML library enhancements
USE_PYTHON= yes
USE_PYTHON= 2.1+
USE_PYDISTUTILS= yes
.include <bsd.port.pre.mk>
CPIO= cpio --quiet -pdum -R
CPIOARGS= --quiet -pdum -R
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}
PLIST_SUB+= PACKAGE_DIR=_xmlplus
# PyXML's XPath support for minidom (xml.xpath) is functional and is
# installed by default, unless WITHOUT_XPATH is defined.
#
# PyXML's XSLT support for minidom (xml.xslt) is experimental, and may
# render PyXML incompatible with modern versions of 4Suite. Therefore,
# this port will not install it by default, unless WITH_XSLT is defined.
# These defaults are the same as when PyXML is installed independently.
#
# WITHOUT_XPATH is ignored if WITH_XSLT is defined.
#
# There are no mature XSLT processors that can operate directly on
# minidom documents, but such documents can be converted to formats
# that are supported. 4Suite, for example, can convert a DOM directly
# to a Domlette, and other processors can make use of the serialized
# form of the document.
#
.if defined(WITH_XSLT)
PYDISTUTILS_BUILDARGS+= --with-xslt
PYDISTUTILS_INSTALLARGS+= --with-xslt
pre-install:
@ ${SH} ${PKGREQ} INSTALL
PLIST_SUB+= XPATH=""
PLIST_SUB+= XSLT=""
.elif defined(WITHOUT_XPATH)
PYDISTUTILS_BUILDARGS+= --without-xpath --without-xslt
PYDISTUTILS_INSTALLARGS+= --without-xpath --without-xslt
PLIST_SUB+= XPATH="@comment "
PLIST_SUB+= XSLT="@comment "
.else
PYDISTUTILS_BUILDARGS+= --with-xpath --without-xslt
PYDISTUTILS_INSTALLARGS+= --with-xpath --without-xslt
PLIST_SUB+= XPATH=""
PLIST_SUB+= XSLT="@comment "
.endif
post-install:
.if !defined(NOPORTDOCS)
@ -38,10 +66,10 @@ post-install:
@ ${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
.endfor
@ cd ${WRKSRC}/doc && ${FIND} * \
| ${CPIO} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
| ${CPIO} ${CPIOARGS} ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
@ ${MKDIR} ${EXAMPLESDIR}
@ cd ${WRKSRC} && ${FIND} demo test \
| ${CPIO} ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
| ${CPIO} ${CPIOARGS} ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>

View file

@ -1,2 +1,2 @@
MD5 (PyXML-0.8.3.tar.gz) = 7083d950064ce90840d9ed48c818dc85
SIZE (PyXML-0.8.3.tar.gz) = 729172
MD5 (PyXML-0.8.4.tar.gz) = 1f7655050cebbb664db976405fdba209
SIZE (PyXML-0.8.4.tar.gz) = 734954

View file

@ -1,23 +1,23 @@
From the website:
PyXML is a collection of libraries to process XML with Python.
It effectively extends and updates Python's built-in XML libraries
(the xml.* modules). It contains, among other things:
The PyXML package is a collection of libraries to process XML with Python.
It contains, among other things
xmlproc: a validating XML 1.0 parser written in Python
Expat: a nonvalidating XML 1.0 parser written in C, plus Python bindings
PySAX: SAX 1 and SAX2 libraries with drivers for most of the parsers
4DOM: a compliant DOM Level 2 implementation written in Python
javadom: a Java-DOM-implementation-to-standard-Python-DOM adapter
pulldom: a DOM implementation that supports lazy instantiation of nodes
marshal: a module for serializing Python objects to XML formats including
WDDX and XML-RPC
sgmlop: a C helper module that can speed up xmllib (deprecated) & sgmllib
- xmlproc: a validating XML parser
- sgmlop: a C helper module that can speed-up xmllib.py and sgmllib.py by
a factor of 5
- PySAX: SAX 1 and SAX2 libraries with drivers for most of the parsers
- 4DOM: A fully compliant DOM Level 2 implementation
- javadom: An adapter from Java DOM implementations to the standard Python
DOM binding
- pulldom: a DOM implementation that supports lazy instantiation of nodes
- marshal: a module with several options for serializing Python objects to
XML, including WDDX and XML-RPC
- unicode: a helper module for Python 1.5 users who need conversions
between UTF-8 and ISO-8859-?
It also provides the latest updates/fixes for minidom (the default
xml.dom.implementation), and includes an XPath 1.0 processor for minidom
(xml.xpath). Experimental XSLT 1.0 support for minidom can be added if the
port is installed with WITH_XSLT defined (e.g. "make install WITH_XSLT=yes").
WWW: http://www.pyxml.sourceforge.net/
See also: http://www.python.org/sigs/xml-sig/
WWW: http://www.pyxml.sourceforge.net/
See also: http://www.python.org/sigs/xml-sig/
-- Jacques Vidrine <nectar@FreeBSD.ORG> (original port)
-- Johann Visagie <wjv@FreeBSD.org> (current maintainer)
-- Mike J. Brown <mike@skew.org> (current port maintainer)

File diff suppressed because it is too large Load diff

View file

@ -1,17 +0,0 @@
#!/bin/sh
PATH=$PATH:/usr/local/bin
if [ "x$1" = "xINSTALL" -o "x$2" = "xINSTALL" ]; then
PYTHON_GT=`python -c 'import string, sys; \
print string.split(sys.version)[0] >= "2.0" and 1'`
if [ "x${PYTHON_GT}" = "x1" ]; then
exit 0
else
echo "-----------------------------------------------------------"
echo "PyXML requires Python version 2.0 or greater -"
echo " please update your Python installation before proceeding."
echo "-----------------------------------------------------------"
exit 1
fi
fi