diff options
author | Johann Visagie <wjv@FreeBSD.org> | 2002-09-18 12:25:25 +0000 |
---|---|---|
committer | Johann Visagie <wjv@FreeBSD.org> | 2002-09-18 12:25:25 +0000 |
commit | e06ac271e03b92d040fc388c06a76c354643c98b (patch) | |
tree | 836a3277850a770b56aa2430562141962e17b91a /textproc/py-xml/pkg-req | |
parent | fix build problem when latex2html is installed (diff) |
- Update to version 0.8.1
- Add a $PKGREQ to enforce dependency on version 2.0+ of Python
Notes
Notes:
svn path=/head/; revision=66594
Diffstat (limited to 'textproc/py-xml/pkg-req')
-rw-r--r-- | textproc/py-xml/pkg-req | 17 |
1 files changed, 17 insertions, 0 deletions
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 |