summaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authoralane <alane@FreeBSD.org>2002-09-20 18:56:41 +0000
committeralane <alane@FreeBSD.org>2002-09-20 18:56:41 +0000
commitc987b33e5f8ba909a2516631bcc9bd6d2523c3bd (patch)
tree198165dda07a45889eac533e03a4d6d0e62f34cd /Mk
parent37dd8047d1ebcd2372b4788fd980c972de8942c5 (diff)
downloadFreeBSD-ports-c987b33e5f8ba909a2516631bcc9bd6d2523c3bd.zip
FreeBSD-ports-c987b33e5f8ba909a2516631bcc9bd6d2523c3bd.tar.gz
Add variables for ZOPE. Patch supplied by maintiner
Submitted by: maintainer Approved by: maintainer
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.python.mk21
1 files changed, 21 insertions, 0 deletions
diff --git a/Mk/bsd.python.mk b/Mk/bsd.python.mk
index 2d95bf5..a9e2d38 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)
OpenPOWER on IntegriCloud