diff options
author | Alan Eldridge <alane@FreeBSD.org> | 2002-09-20 18:56:41 +0000 |
---|---|---|
committer | Alan Eldridge <alane@FreeBSD.org> | 2002-09-20 18:56:41 +0000 |
commit | 0ddb7a3d2e3ff203d5cd2e030f8659912d0ebb6c (patch) | |
tree | b52890f2824c6bcd0e7631b4f165320dc9a0c5a0 /Mk/bsd.python.mk | |
parent | Blah, fat fingered in the editor -- remove bogon (diff) |
Add variables for ZOPE. Patch supplied by maintiner
Submitted by: maintainer
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=66874
Diffstat (limited to 'Mk/bsd.python.mk')
-rw-r--r-- | Mk/bsd.python.mk | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Mk/bsd.python.mk b/Mk/bsd.python.mk index 2d95bf5b1c9e..a9e2d38818da 100644 --- a/Mk/bsd.python.mk +++ b/Mk/bsd.python.mk @@ -104,6 +104,8 @@ Python_Include_MAINTAINER= tg@FreeBSD.org # distribution will be built through the dependency processing. .if defined(PYTHON_CMD) _PYTHON_VERSION!= ${PYTHON_CMD} -c 'import sys; print sys.version[:3]' +.elif defined(USE_ZOPE) +_PYTHON_VERSION= 2.1 .else _PYTHON_VERSION!= (python -c 'import sys; print sys.version[:3]') 2> /dev/null \ || echo 2.2 @@ -222,6 +224,16 @@ PYSETUP?= setup.py PYDISTUTILS_BUILDARGS?= PYDISTUTILS_INSTALLARGS?= -c -O1 --prefix=${PREFIX} +# Zope specific variables +.if defined(USE_ZOPE) +# You can change this in the environment if you like +SZOPEBASEDIR?= www/Zope +# Don't change these. You'll probably want to define ZOPEPRODUCTNAME, +# too, but that is port-specific. +ZOPEBASEDIR= ${PREFIX}/${SZOPEBASEDIR} +ZOPEPRODUCTDIR= lib/python/Products +.endif + # dependencies PYTHON_NO_DEPENDS?= NO @@ -234,6 +246,10 @@ BUILD_DEPENDS+= ${PYDISTUTILS} .endif .endif # ${PYTHON_NO_DEPENDS} == "NO" +.if defined(USE_ZOPE) +RUN_DEPENDS+= ${PYTHONBASE}/${SZOPEBASEDIR}/z2.py:${PORTSDIR}/www/zope +.endif + # set $PREFIX as Python's one .if defined(USE_PYTHON_PREFIX) PREFIX= ${PYTHONBASE} @@ -248,6 +264,11 @@ PLIST_SUB+= PYTHON_INCLUDEDIR=${PYTHONPREFIX_INCLUDEDIR:S;${PREFIX}/;;} \ PYTHON_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} \ PYTHON_VERSION=${PYTHON_VERSION} +# Zope specific substitutions +.if defined(USE_ZOPE) +PLIST_SUB+= ZOPEBASEDIR=${SZOPEBASEDIR} +.endif + # XXX Hm, should I export some of the variables above to *_ENV? .endif # !defined(_POSTMKINCLUDED) && !defined(Python_Pre_Include) |