From 4cef9983dffd5fd8e77455c1d92d174feb770e2c Mon Sep 17 00:00:00 2001 From: wjv Date: Wed, 18 Sep 2002 12:25:25 +0000 Subject: - Update to version 0.8.1 - Add a $PKGREQ to enforce dependency on version 2.0+ of Python --- textproc/py-xml/Makefile | 11 ++++++----- textproc/py-xml/distinfo | 2 +- textproc/py-xml/pkg-plist | 1 + textproc/py-xml/pkg-req | 17 +++++++++++++++++ 4 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 textproc/py-xml/pkg-req (limited to 'textproc/py-xml') diff --git a/textproc/py-xml/Makefile b/textproc/py-xml/Makefile index 140cbaa7bb12..59c37a2d4b6c 100644 --- a/textproc/py-xml/Makefile +++ b/textproc/py-xml/Makefile @@ -6,7 +6,7 @@ # PORTNAME= xml -PORTVERSION= 0.8 +PORTVERSION= 0.8.1 CATEGORIES= textproc python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= pyxml @@ -23,11 +23,12 @@ USE_PYDISTUTILS= yes CPIO= cpio --quiet -pdum -R DOCSDIR= ${PREFIX}/share/doc/py-xml EXAMPLESDIR= ${PREFIX}/share/examples/py-xml -.if ${PYTHON_REL} < 200 -PLIST_SUB+= PACKAGE_DIR=xml -.else PLIST_SUB+= PACKAGE_DIR=_xmlplus -.endif +PYDISTUTILS_BUILDARGS+= --with-xslt +PYDISTUTILS_INSTALLARGS+= --with-xslt + +pre-install: + @ ${SH} ${PKGREQ} INSTALL post-install: .if !defined(NOPORTDOCS) diff --git a/textproc/py-xml/distinfo b/textproc/py-xml/distinfo index 298ef0dcc979..70f6123f6f7a 100644 --- a/textproc/py-xml/distinfo +++ b/textproc/py-xml/distinfo @@ -1 +1 @@ -MD5 (PyXML-0.8.tar.gz) = d9407357fb2ef666612847c15cedd6a1 +MD5 (PyXML-0.8.1.tar.gz) = a89276ec01675ad57a964901687387fa diff --git a/textproc/py-xml/pkg-plist b/textproc/py-xml/pkg-plist index 59758e9e3816..c275cb21d5a0 100644 --- a/textproc/py-xml/pkg-plist +++ b/textproc/py-xml/pkg-plist @@ -252,6 +252,7 @@ %%PORTDOCS%%share/examples/py-xml/test/test_sax2_xmlproc.py %%PORTDOCS%%share/examples/py-xml/test/test_sax_xmlproc.py %%PORTDOCS%%share/examples/py-xml/test/test_saxdrivers.py +%%PORTDOCS%%share/examples/py-xml/test/test_support.py %%PORTDOCS%%share/examples/py-xml/test/test_utils.py %%PORTDOCS%%share/examples/py-xml/test/test_xmlbuilder.py %%PORTDOCS%%share/examples/py-xml/test/test_xmlproc.py diff --git a/textproc/py-xml/pkg-req b/textproc/py-xml/pkg-req new file mode 100644 index 000000000000..af2d70f92c9e --- /dev/null +++ b/textproc/py-xml/pkg-req @@ -0,0 +1,17 @@ +#!/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"'` + 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 -- cgit