diff options
author | wjv <wjv@FreeBSD.org> | 2001-09-18 10:51:37 +0000 |
---|---|---|
committer | wjv <wjv@FreeBSD.org> | 2001-09-18 10:51:37 +0000 |
commit | b8d30c3a53787d53af33e90dc451dce61403f69a (patch) | |
tree | 6e805d43be880362b8bca69137099dbeab6acb12 /www/quixote/pkg-req | |
parent | 8041a2f8f3c0a5df77eeaad7f8ebf6ec67493a96 (diff) | |
download | FreeBSD-ports-b8d30c3a53787d53af33e90dc451dce61403f69a.zip FreeBSD-ports-b8d30c3a53787d53af33e90dc451dce61403f69a.tar.gz |
Add quixote 0.3, a framework for developing web applications in Python.
Diffstat (limited to 'www/quixote/pkg-req')
-rw-r--r-- | www/quixote/pkg-req | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/www/quixote/pkg-req b/www/quixote/pkg-req new file mode 100644 index 0000000..f714eed --- /dev/null +++ b/www/quixote/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 "Quixote requires Python version 2.0 or greater -" + echo " please update your Python installation before proceeding." + echo "-----------------------------------------------------------" + exit 1 + fi +fi |