freebsd-ports/databases/zodb3/pkg-req
Edwin Groothuis 6a07c0e8c0 [NEW PORT] zodb3
zodb3 is different from zodb which is already in the database
	ports collection.

	The ZODB package is a Python object persistence system.  It
	provides the Z Object Database separately from Zope so it
	can be used in non-Zope related Python applications to
	provide transparent object-oriented persistency.

PR:		ports/46108
Submitted by:	Martin Klaffenboeck <martin.klaffenboeck@gmx.at>
2003-02-06 00:52:52 +00:00

17 lines
553 B
Bash

#!/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.1"'`
if [ "x${PYTHON_GT}" = "x1" ]; then
exit 0
else
echo "-----------------------------------------------------------"
echo "ZODB requires Python version 2.1 or greater -"
echo " please update your Python installation before proceeding."
echo "-----------------------------------------------------------"
exit 1
fi
fi