diff options
author | Johann Visagie <wjv@FreeBSD.org> | 2002-04-12 09:38:20 +0000 |
---|---|---|
committer | Johann Visagie <wjv@FreeBSD.org> | 2002-04-12 09:38:20 +0000 |
commit | 9929338062ca0bf39e950c01a4605a02fbcbd74e (patch) | |
tree | 3ad4e092bc0e9ebdfe4017b160a6d9996186c038 /textproc/py-asv/pkg-req | |
parent | eea0fcbd00e62d7be3c9d1001a23c05acb903084 (diff) | |
download | ports-9929338062ca0bf39e950c01a4605a02fbcbd74e.tar.gz ports-9929338062ca0bf39e950c01a4605a02fbcbd74e.zip |
- Add a PKGREQ script to limit dependency to Python 2.0 and greater.
- Bump PORTREVISION (again, sorry)
Notes
Notes:
svn path=/head/; revision=57614
Diffstat (limited to 'textproc/py-asv/pkg-req')
-rw-r--r-- | textproc/py-asv/pkg-req | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/textproc/py-asv/pkg-req b/textproc/py-asv/pkg-req new file mode 100644 index 000000000000..bf09a351750d --- /dev/null +++ b/textproc/py-asv/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 "ASV requires Python version 2.0 or greater -" + echo " please update your Python installation before proceeding." + echo "-----------------------------------------------------------" + exit 1 + fi +fi |