Remove Zope (Zope2) supporting files.
This commit is contained in:
parent
3306cbbaf0
commit
8b78c7c287
7 changed files with 0 additions and 547 deletions
|
@ -1,32 +0,0 @@
|
|||
# $NetBSD: Makefile.common,v 1.3 2008/07/20 02:12:33 taca Exp $
|
||||
#
|
||||
# used by www/zope29/Makefile
|
||||
# used by www/zope210/Makefile
|
||||
# used by www/zope211/Makefile
|
||||
|
||||
FILES_SUBST+= RCVAR_SUFFIX=${RCVAR_SUFFIX}
|
||||
MESSAGE_SUBST+= RCVAR_SUFFIX=${RCVAR_SUFFIX}
|
||||
|
||||
PKG_GROUPS_VARS+= ZOPE_GROUP
|
||||
PKG_USERS_VARS+= ZOPE_USER
|
||||
|
||||
PKG_GROUPS= ${ZOPE_GROUP}
|
||||
PKG_USERS= ${ZOPE_USER}:${ZOPE_GROUP}
|
||||
|
||||
SUBST_CLASSES+= site
|
||||
SUBST_STAGE.site= pre-configure
|
||||
SUBST_FILES.site+= lib/python/sitecustomize.py
|
||||
SUBST_SED.site= -e "s|@ZOPE_VERSION@|${ZOPE_VERSION}|g"
|
||||
SUBST_MESSAGE.site= Update sitecustomize.py to ${ZOPE_PKG}
|
||||
|
||||
.include "../../mk/bsd.prefs.mk"
|
||||
|
||||
.if ${_USE_DESTDIR} == "no"
|
||||
PRIVILEGED_STAGES+= clean
|
||||
.endif
|
||||
|
||||
.if ${OPSYS} == "FreeBSD"
|
||||
RCVAR_SUFFIX= _enable
|
||||
.else
|
||||
RCVAR_SUFFIX= # empty
|
||||
.endif
|
|
@ -1,15 +0,0 @@
|
|||
#
|
||||
# $NetBSD: sitecustomize.py,v 1.1 2008/01/06 15:51:39 taca Exp $
|
||||
#
|
||||
# Set default character encoding for Zope.
|
||||
#
|
||||
|
||||
import os, sys
|
||||
|
||||
env = os.environ
|
||||
|
||||
try :
|
||||
encoding = env['ZOPE@ZOPE_VERSION@_DEFAULT_ENCODING']
|
||||
sys.setdefaultencoding(encoding)
|
||||
except:
|
||||
pass
|
|
@ -1,87 +0,0 @@
|
|||
#!@RCD_SCRIPTS_SHELL@
|
||||
#
|
||||
# Startup script for Zeo @ZOPE_VERSION@ server.
|
||||
#
|
||||
# $NetBSD: zeo.sh,v 1.2 2008/07/25 08:23:11 taca Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: zeo@ZOPE_VERSION@
|
||||
# REQUIRE: DAEMON
|
||||
# BEFORE: @ZOPE_PKG@
|
||||
#
|
||||
# You will need to set some variables in /etc/rc.conf to start one
|
||||
# or more instances.
|
||||
#
|
||||
# zeo@ZOPE_VERSION@@RCVAR_SUFFIX@ : bool
|
||||
# Enable Zeo ("YES") or not ("NO", the default).
|
||||
#
|
||||
# zeo@ZOPE_VERSION@_encoding : list
|
||||
# Default character encoding for zeo@ZOPE_VERSION@ (default is "utf-8").
|
||||
#
|
||||
# zeo@ZOPE_VERSION@_instances : list
|
||||
# List of dirs with Zeo's instances ("" by default).
|
||||
#
|
||||
|
||||
if [ -f /etc/rc.subr ]
|
||||
then
|
||||
. /etc/rc.subr
|
||||
fi
|
||||
|
||||
name="zeo@ZOPE_VERSION@"
|
||||
rcvar="$name@RCVAR_SUFFIX@"
|
||||
zeo_name="Zeo @ZOPE_FULL_VERSION@"
|
||||
|
||||
zeo@ZOPE_VERSION@ctl () {
|
||||
cmd = $1
|
||||
|
||||
set ${zeo@ZOPE_VERSION@_encoding}
|
||||
for instance in $zeo@ZOPE_VERSION@_instances; do
|
||||
if [ "$1" ]; then
|
||||
ZOPE@ZOPE_VERSION@_DEFAULT_ENCODING="$1"
|
||||
export ZOPE@ZOPE_VERSION@_DEFAULT_ENCODING
|
||||
else
|
||||
unset ZOPE@ZOPE_VERSION@_DEFAULT_ENCODING
|
||||
fi
|
||||
if [ -d ${instance} ]; then
|
||||
echo -n " Zeo instance ${instance} -> "
|
||||
${instance}/bin/zeoctl ${cmd}
|
||||
fi
|
||||
shift
|
||||
done
|
||||
}
|
||||
|
||||
zeo@ZOPE_VERSION@_start () {
|
||||
echo "Starting ${zeo_name}:"
|
||||
zeo@ZOPE_VERSION@ctl "start"
|
||||
}
|
||||
|
||||
zeo@ZOPE_VERSION@_stop () {
|
||||
echo "Stopping ${zeo_name}:"
|
||||
zeo@ZOPE_VERSION@ctl "stop"
|
||||
}
|
||||
|
||||
zeo@ZOPE_VERSION@_restart () {
|
||||
echo "Restarting ${zeo_name}:"
|
||||
zeo@ZOPE_VERSION@ctl "restart"
|
||||
}
|
||||
|
||||
start_cmd="zeo@ZOPE_VERSION@_start"
|
||||
stop_cmd="zeo@ZOPE_VERSION@_stop"
|
||||
restart_cmd="zeo@ZOPE_VERSION@_restart"
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${zeo@ZOPE_VERSION@_@RCVAR_SUFFIX@="NO"}
|
||||
: ${zeo@ZOPE_VERSION@_encoding="utf-8"}
|
||||
: ${zeo@ZOPE_VERSION@_instances=""}
|
||||
|
||||
cmd="$1"
|
||||
[ $# -gt 0 ] && shift
|
||||
[ -n "$*" ] && zeo@ZOPE_VERSION@_instances="$*"
|
||||
|
||||
if [ "${zeo@ZOPE_VERSION@_encoding}" ]; then
|
||||
ZOPE@ZOPE_VERSION@_DEFAULT_ENCODING=${@ZOPE_PKG@_encoding}
|
||||
export ZOPE@ZOPE_VERSION@_DEFAULT_ENCODING
|
||||
fi
|
||||
|
||||
run_rc_command "${cmd}"
|
|
@ -1,82 +0,0 @@
|
|||
#!@RCD_SCRIPTS_SHELL@
|
||||
#
|
||||
# Startup script for Zope @ZOPE_VERSION@ server.
|
||||
#
|
||||
# $NetBSD: zope.sh,v 1.2 2008/07/25 08:23:23 taca Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: @ZOPE_PKG@
|
||||
# REQUIRE: DAEMON
|
||||
|
||||
# You will need to set some variables in /etc/rc.conf to start Zope
|
||||
#
|
||||
# @ZOPE_PKG@@RCVAR_SUFFIX@ : bool
|
||||
# Enable Zope ("YES") or not ("NO", the default).
|
||||
#
|
||||
# @ZOPE_PKG@_encoding : list
|
||||
# Default character encoding for @ZOPE_PKG@ (default is "utf-8").
|
||||
# You can specify single character encoding for all Zope instances
|
||||
# or specify a list for each Zope instance. "none" means specify
|
||||
# nothing.
|
||||
#
|
||||
# @ZOPE_PKG@_instances : list
|
||||
# List of dirs with Zope's instances ("" by default).
|
||||
#
|
||||
|
||||
if [ -f /etc/rc.subr ]
|
||||
then
|
||||
. /etc/rc.subr
|
||||
fi
|
||||
|
||||
name="@ZOPE_PKG@"
|
||||
rcvar="$name@RCVAR_SUFFIX@"
|
||||
zope_name="Zope @ZOPE_FULL_VERSION@"
|
||||
start_cmd="@ZOPE_PKG@_start"
|
||||
stop_cmd="@ZOPE_PKG@_stop"
|
||||
restart_cmd="@ZOPE_PKG@_restart"
|
||||
|
||||
@ZOPE_PKG@ctl () {
|
||||
cmd=$1
|
||||
|
||||
for encoding in ${@ZOPE_PKG@_encoding}; do
|
||||
if [ "$encoding" ]; then
|
||||
ZOPE@ZOPE_VERSION@_DEFAULT_ENCODING="$encoding"
|
||||
export ZOPE@ZOPE_VERSION@_DEFAULT_ENCODING
|
||||
else
|
||||
unset ZOPE@ZOPE_VERSION@_DEFAULT_ENCODING
|
||||
fi
|
||||
for instance in ${@ZOPE_PKG@_instances}; do
|
||||
if [ -d ${instance} ]; then
|
||||
echo -n " Zope instance ${instance} -> "
|
||||
${instance}/bin/zopectl ${cmd}
|
||||
fi
|
||||
done
|
||||
done
|
||||
}
|
||||
|
||||
@ZOPE_PKG@_start () {
|
||||
echo "Starting ${zope_name}:"
|
||||
@ZOPE_PKG@ctl "start"
|
||||
}
|
||||
|
||||
@ZOPE_PKG@_stop () {
|
||||
echo "Stopping ${zope_name}:"
|
||||
@ZOPE_PKG@ctl "stop"
|
||||
}
|
||||
|
||||
@ZOPE_PKG@_restart () {
|
||||
echo "Restarting ${zope_name}:"
|
||||
@ZOPE_PKG@ctl "restart"
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${@ZOPE_PKG@@RCVAR_SUFFIX@="NO"}
|
||||
: ${@ZOPE_PKG@_encoding="utf-8"}
|
||||
: ${@ZOPE_PKG@_instances=""}
|
||||
|
||||
cmd="$1"
|
||||
[ $# -gt 0 ] && shift
|
||||
[ -n "$*" ] && @ZOPE_PKG@_instances="$*"
|
||||
|
||||
run_rc_command "${cmd}"
|
|
@ -1,91 +0,0 @@
|
|||
# $NetBSD: product.mk,v 1.4 2008/05/26 02:13:26 joerg Exp $
|
||||
#
|
||||
|
||||
.if !defined(_ZOPE_PRODUCT_MK)
|
||||
_ZOPE_PRODUCT_MK= # defined
|
||||
|
||||
#
|
||||
# ZOPE_PRODUCT_NAME
|
||||
# Zope extention (product) name.
|
||||
#
|
||||
# ZOPE_PKG_PRODUCT/ZOPE_PKG_PRODUCT_DIR
|
||||
# Basename/directory of Zope's extention package.
|
||||
#
|
||||
# ZOPE_PRODUCT_SRC
|
||||
# Source directory name relative to ${WRKSRC} of Zope's extention.
|
||||
#
|
||||
# ZOPE_PRODUCT_DST
|
||||
# Destination directory name of Zope's extention.
|
||||
#
|
||||
|
||||
.include "../../www/zope/zopeversion.mk"
|
||||
|
||||
USE_TOOLS+= pax
|
||||
|
||||
DEPENDS+= ${ZOPE_DEPENDENCY}
|
||||
|
||||
ZOPE_PKG_PRODUCT?= ${ZOPE_PRODUCTS_BASE}/${ZOPE_PRODUCT_NAME}
|
||||
ZOPE_PKG_PRODUCT_DIR= ${ZOPE_PRODUCTS_DIR}/${ZOPE_PRODUCT_NAME}
|
||||
|
||||
ZOPE_PRODUCT_SRC?= .
|
||||
ZOPE_PRODUCT_DST?= ${ZOPE_PRODUCT_NAME}
|
||||
|
||||
.if ${_ZOPE_VERSION} == "29"
|
||||
_ZOPE_PRODUCT_DSTDIR= ${BUILDLINK_PREFIX.zope29}/${ZOPE_PKG_PRODUCT}
|
||||
.elif ${_ZOPE_VERSION} == "210"
|
||||
_ZOPE_PRODUCT_DSTDIR= ${BUILDLINK_PREFIX.zope210}/${ZOPE_PKG_PRODUCT}
|
||||
.else
|
||||
PKG_SKIP_REASON+= "No valid Zope version"
|
||||
.endif
|
||||
|
||||
ZOPE_PRODUCT_SRCDIR?= ${WRKSRC}/${ZOPE_PRODUCT_SRC}
|
||||
ZOPE_PRODUCT_DSTDIR?= ${_ZOPE_PRODUCT_DSTDIR}
|
||||
|
||||
ZOPE_BYTE_COMPILE?= yes
|
||||
.if ${ZOPE_BYTE_COMPILE} == "yes" || ${ZOPE_BYTE_COMPILE} == "YES"
|
||||
ZOPE_BUILD_METHOD?= zope-simple-build
|
||||
.else
|
||||
ZOPE_BUILD_METHOD= # empty
|
||||
.endif
|
||||
|
||||
PLIST_SUBST+= ZOPE_PRODUCT_NAME=${ZOPE_PRODUCT_NAME} \
|
||||
ZOPE_PKG_PRODUCT=${ZOPE_PKG_PRODUCT}
|
||||
|
||||
.if !target(do-build)
|
||||
do-build: ${ZOPE_BUILD_METHOD}
|
||||
cd ${WRKSRC}; ${FIND} ${ZOPE_PRODUCT_SRC} -type f -print0 | \
|
||||
${XARGS} -0 -- ${CHMOD} a-w
|
||||
|
||||
zope-simple-build:
|
||||
.for m in ${ZOPE_PRODUCT_SRC}
|
||||
cd ${WRKSRC}; ${PY_COMPILE_ALL} ${m}
|
||||
.endfor
|
||||
|
||||
zope-force-build:
|
||||
.for m in ${ZOPE_PRODUCT_SRC}
|
||||
cd ${WRKSRC}; ${PY_COMPILE_ALL} ${m} >/dev/null 2>&1 || ${TRUE}
|
||||
.endfor
|
||||
|
||||
.endif
|
||||
|
||||
.PHONY: zope-install-product
|
||||
zope-install-product:
|
||||
cd ${ZOPE_PRODUCT_SRCDIR:Q} && pax -rw \
|
||||
-s ',.*/CVS/.*,,' \
|
||||
-s ',.*/CVS$$,,' \
|
||||
-s ',.*/\.cvsignore$$,,' \
|
||||
-s ',.*\.orig$$,,' \
|
||||
-s ',.*/\#.*,,' \
|
||||
-s ',.*~$$,,' \
|
||||
-s ',.*/.svn/.*,,' \
|
||||
-s ',.*/\._.*,,' \
|
||||
-s ',.*/.svn$$,,' \
|
||||
-s ',svn-commit\.tmp,,' \
|
||||
${ZOPE_PRODUCT_SRC} ${DESTDIR}${ZOPE_PRODUCT_DSTDIR}
|
||||
|
||||
.if !target(do-install)
|
||||
do-install: zope-install-product
|
||||
.endif
|
||||
|
||||
.include "../../lang/python/application.mk"
|
||||
.endif
|
|
@ -1,40 +0,0 @@
|
|||
# $NetBSD: replace.mk,v 1.2 2011/05/14 02:47:21 taca Exp $
|
||||
#
|
||||
|
||||
.if !defined(_ZOPE_REPLACE_MK)
|
||||
_ZOPE_REPLACE_MK= # defined
|
||||
|
||||
# fix shebang line.
|
||||
#
|
||||
# REPLACE_PYTHON_DIRS replace shebang line of files under specified
|
||||
# directories.
|
||||
# REPLACE_PYTHON_PAT specify pattern to match target files under
|
||||
# REPLACE_PYTHON_DIRS directories.
|
||||
#
|
||||
.if defined(REPLACE_PYTHON_DIRS) && !empty(REPLACE_PYTHON_DIRS)
|
||||
|
||||
.for f in ${REPLACE_PYTHON_PAT}
|
||||
_REPLACE_PYTHON_PAT+= -o -name "${f}"
|
||||
.endfor
|
||||
_REPLACE_PYTHON_FIND_ARGS=\( ${_REPLACE_PYTHON_PAT:S/-o//1} \)
|
||||
|
||||
pre-configure: replace-python-dirs
|
||||
|
||||
replace-python-dirs:
|
||||
${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC} ; \
|
||||
${FIND} ${REPLACE_PYTHON_DIRS} \
|
||||
-type f ${_REPLACE_FILE_FIND_ARGS} -print | \
|
||||
while read f; do \
|
||||
${SED} -e '1s| *[a-z0-9_/\.-][a-z0-9_/\.-]*/env *||g' \
|
||||
-e '1s| *[a-z0-9_/\.-]*python.*|${PYTHONBIN}|' $$f \
|
||||
> $$f.tmp; \
|
||||
if ${CMP} -s $$f $$f.tmp; then \
|
||||
${RM} $$f.tmp; \
|
||||
else \
|
||||
${MV} $$f.tmp $$f; \
|
||||
fi; \
|
||||
done
|
||||
.endif # defined(REPLACE_PYTHON_DIRS)
|
||||
|
||||
.include "../../lang/python/application.mk"
|
||||
.endif
|
|
@ -1,200 +0,0 @@
|
|||
# $NetBSD: zopeversion.mk,v 1.16 2011/05/14 02:58:08 taca Exp $
|
||||
#
|
||||
|
||||
.if !defined(_ZOPEVERSION_MK)
|
||||
_ZOPEVERSION_MK= # defined
|
||||
|
||||
.include "../../mk/bsd.prefs.mk"
|
||||
|
||||
# The following variables may be set by the pkgsrc user in mk.conf:
|
||||
#
|
||||
# ZOPE_VERSION_DEFAULT
|
||||
# The preferred Zope version to use.
|
||||
# Possible value: (all)
|
||||
#
|
||||
# ZOPE_VERSION_ACCEPTED
|
||||
# The Zope version that are acceptable for the package.
|
||||
# The order of the entries matters.
|
||||
#
|
||||
# ZOPE_VERSION_REQD
|
||||
# The specific Zope version that are acceptable for the package.
|
||||
#
|
||||
# ZOPE_USER
|
||||
# Default Zope running user.
|
||||
#
|
||||
# ZOPE_GROUP
|
||||
# Default Zope running group.
|
||||
#
|
||||
|
||||
# The following variables may not be set by the pkgsrc user in mk.conf:
|
||||
#
|
||||
# ZOPE_VERSION_SUPPORTED
|
||||
# Known Zope release which we support.
|
||||
#
|
||||
# ZOPE_PKG
|
||||
# Short name for each Zope major release; zope29, zope210 and
|
||||
# hopefully zope3.
|
||||
#
|
||||
# ZOPE_USE_PYPKGPREFIX
|
||||
# Bool variable which enable prefix Zope based package with
|
||||
# ${ZOPE_PKG}. (Experimental)
|
||||
#
|
||||
# ZOPE_COMMON
|
||||
# Basename of directory to install Zope.
|
||||
#
|
||||
# ZOPE_PRODUCTS_BASE
|
||||
# Basename of directory for Zope extention packages.
|
||||
#
|
||||
# ZOPE_DOC_BASE
|
||||
# Documentation directory for Zope packages.
|
||||
#
|
||||
#
|
||||
|
||||
ZOPE_VERSION_SUPPORTED= 29 210 211
|
||||
|
||||
ZOPE_VERSION_DEFAULT?= 29
|
||||
ZOPE_VERSION_ACCEPTED?= ${ZOPE_VERSION_SUPPORTED}
|
||||
|
||||
# current Zope version
|
||||
ZOPE29_VERSION= 2.9.12
|
||||
ZOPE210_VERSION= 2.10.13
|
||||
ZOPE211_VERSION= 2.11.8
|
||||
#ZOPE212_VERSION= 2.12.18
|
||||
#ZOPE213_VERSION= 2.13.7 # py26 py27
|
||||
|
||||
ZOPE_USER?= zope
|
||||
ZOPE_GROUP?= zope
|
||||
|
||||
ZOPE_USE_PYPKGPREFIX?= no
|
||||
|
||||
.if !empty(ZOPE_USE_PYPKGPREFIX:M[Yy][Ee][Ss])
|
||||
BUILDLINK_API_DEPENDS.zope29?= ${PYPKGPREFIX}-zope29>=${ZOPE29_VERSION}
|
||||
BUILDLINK_API_DEPENDS.zope210?= ${PYPKGPREFIX}-zope210>=${ZOPE210_VERSION}
|
||||
BUILDLINK_API_DEPENDS.zope211?= ${PYPKGPREFIX}-zope211>=${ZOPE211_VERSION}
|
||||
BUILDLINK_API_DEPENDS.zope212?= ${PYPKGPREFIX}-zope211>=${ZOPE212_VERSION}
|
||||
BUILDLINK_API_DEPENDS.zope213?= ${PYPKGPREFIX}-zope211>=${ZOPE213_VERSION}
|
||||
.else
|
||||
BUILDLINK_API_DEPENDS.zope29?= zope29>=${ZOPE29_VERSION}
|
||||
BUILDLINK_API_DEPENDS.zope210?= zope210>=${ZOPE210_VERSION}
|
||||
BUILDLINK_API_DEPENDS.zope211?= zope210>=${ZOPE211_VERSION}
|
||||
BUILDLINK_API_DEPENDS.zope212?= zope210>=${ZOPE212_VERSION}
|
||||
BUILDLINK_API_DEPENDS.zope213?= zope210>=${ZOPE213_VERSION}
|
||||
.endif
|
||||
|
||||
ZOPE_COMMON?= zope
|
||||
ZOPE_BASE= ${ZOPE_COMMON}/${ZOPE_PKG}
|
||||
ZOPE_DOC_BASE?= share/doc/${ZOPE_PKG}
|
||||
ZOPE_PRODUCTS_BASE= ${ZOPE_BASE}/Products
|
||||
|
||||
ZOPE_DIR= ${PREFIX}/${ZOPE_BASE}
|
||||
ZOPE_DOC_DIR= ${PREFIX}/${ZOPE_DOC_BASE}
|
||||
ZOPE_PRODUCTS_DIR= ${PREFIX}/${ZOPE_PRODUCTS_BASE}
|
||||
|
||||
# transform the list into individual variables
|
||||
.for zv in ${ZOPE_VERSION_ACCEPTED}
|
||||
_ZOPE_VERSION_${zv}_OK= yes
|
||||
.endfor
|
||||
|
||||
# check what is installed
|
||||
.for zv in ${ZOPE_VERSION_SUPPORTED}
|
||||
.if exists(${LOCALBASE}/${ZOPE_COMMON}/zope${zv})
|
||||
_ZOPE_VERSION_${zv}_INSTALLED= yes
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
# if a version is explicitly required, take it
|
||||
.if defined(ZOPE_VERSION_REQD)
|
||||
_ZOPE_VERSION= ${ZOPE_VERSION_REQD}
|
||||
.endif
|
||||
|
||||
#if a default is already installed, it is first choice
|
||||
.if !defined(_ZOPE_VERSION)
|
||||
.if defined(_ZOPE_VERSION_${ZOPE_VERSION_DEFAULT}_OK)
|
||||
.if defined(_ZOPE_VERSION_${ZOPE_VERSION_DEFAULT}_INSTALLED)
|
||||
_ZOPE_VERSION= ${ZOPE_VERSION_DEFAULT}
|
||||
.endif
|
||||
.endif
|
||||
.endif
|
||||
# prefer an already installed version, in order of "accepted"
|
||||
.if !defined(_ZOPE_VERSION)
|
||||
.for zv in ${ZOPE_VERSION_ACCEPTED}
|
||||
.if defined(_ZOPE_VERSION_${zv}_INSTALLED)
|
||||
_ZOPE_VERSION?= ${zv}
|
||||
.else
|
||||
# keep information as last resort - see below
|
||||
_ZOPE_VERSION_FIRSTACCEPTED?= ${zv}
|
||||
.endif
|
||||
.endfor
|
||||
.endif
|
||||
# if the default is OK for the addon pkg, take this
|
||||
.if !defined(_ZOPE_VERSION)
|
||||
.if defined(_ZOPE_VERSION_${ZOPE_VERSION_DEFAULT}_OK)
|
||||
_ZOPE_VERSION= ${ZOPE_VERSION_DEFAULT}
|
||||
.endif
|
||||
.endif
|
||||
# take the first one accepted by the package
|
||||
.if !defined(_ZOPE_VERSION)
|
||||
_ZOPE_VERSION= ${_ZOPE_VERSION_FIRSTACCEPTED}
|
||||
.endif
|
||||
|
||||
#
|
||||
ZOPE_VERSION?= ${_ZOPE_VERSION}
|
||||
ZOPE_PKG:= zope${ZOPE_VERSION}
|
||||
|
||||
# force the selected ZOPE version for recursive builds
|
||||
ZOPE_VERSION_REQD:= ${ZOPE_VERSION}
|
||||
|
||||
ZOPE_PKGSRC_DIR= ../../www/${ZOPE_PKG}
|
||||
.if !empty(ZOPE_USE_PYPKGPREFIX:M[Yy][Ee][Ss])
|
||||
ZOPE_PKG_PREFIX= ${PYPKGPREFIX}-${ZOPE_PKG}
|
||||
.else
|
||||
ZOPE_PKG_PREFIX= ${ZOPE_PKG}
|
||||
.endif
|
||||
|
||||
.if ${_ZOPE_VERSION} == "29"
|
||||
ZOPE_FULL_VERSION= ${ZOPE29_VERSION}
|
||||
ZOPE_DEPENDENCY= ${BUILDLINK_API_DEPENDS.zope29}:${ZOPE_PKGSRC_DIR}
|
||||
EVAL_PREFIX+= BUILDLINK_PREFIX.zope29=${ZOPE_PKG}
|
||||
BUILDLINK_PREFIX.zope29_DEFAULT= ${LOCALBASE}
|
||||
.elif ${_ZOPE_VERSION} == "210"
|
||||
ZOPE_FULL_VERSION= ${ZOPE210_VERSION}
|
||||
ZOPE_DEPENDENCY= ${BUILDLINK_API_DEPENDS.zope210}:${ZOPE_PKGSRC_DIR}
|
||||
EVAL_PREFIX+= BUILDLINK_PREFIX.zope210=${ZOPE_PKG}
|
||||
BUILDLINK_PREFIX.zope211_DEFAULT= ${LOCALBASE}
|
||||
.elif ${_ZOPE_VERSION} == "211"
|
||||
ZOPE_FULL_VERSION= ${ZOPE211_VERSION}
|
||||
ZOPE_DEPENDENCY= ${BUILDLINK_API_DEPENDS.zope211}:${ZOPE_PKGSRC_DIR}
|
||||
EVAL_PREFIX+= BUILDLINK_PREFIX.zope211=${ZOPE_PKG}
|
||||
BUILDLINK_PREFIX.zope211_DEFAULT= ${LOCALBASE}
|
||||
.else
|
||||
PKG_SKIP_REASON+= "No valid Zope version"
|
||||
.endif
|
||||
|
||||
BUILD_DEFS+= ZOPE_VERSION
|
||||
BUILD_DEFS_EFFECTS+= ZOPE_PKG
|
||||
|
||||
FILES_SUBST+= ZOPE_PKG=${ZOPE_PKG} ZOPE_VERSION=${ZOPE_VERSION} \
|
||||
ZOPE_FULL_VERSION=${ZOPE_FULL_VERSION}
|
||||
|
||||
MESSAGE_SUBST+= ZOPE_VERSION=${ZOPE_VERSION} \
|
||||
ZOPE_COMMON=${ZOPE_COMMON} \
|
||||
ZOPE_PKG=${ZOPE_PKG} \
|
||||
ZOPE_DIR=${ZOPE_DIR} \
|
||||
ZOPE_PRODUCTS_DIR=${ZOPE_PRODUCTS_DIR} \
|
||||
ZOPE_GROUP=${ZOPE_GROUP:Q} \
|
||||
ZOPE_USER=${ZOPE_USER:Q}
|
||||
|
||||
PLIST_SUBST+= ZOPE_VERSION=${ZOPE_VERSION} \
|
||||
ZOPE_BASE=${ZOPE_BASE} \
|
||||
ZOPE_COMMON=${ZOPE_COMMON} \
|
||||
ZOPE_DOC_BASE=${ZOPE_DOC_BASE} \
|
||||
ZOPE_PRODUCTS_BASE=${ZOPE_PRODUCTS_BASE}
|
||||
|
||||
PRINT_PLIST_AWK+= /^${ZOPE_BASE:S|/|\\/|g}/ \
|
||||
{ gsub(/${ZOPE_BASE:S|/|\\/|g}/, "$${ZOPE_BASE}"); \
|
||||
print; next; }
|
||||
|
||||
#
|
||||
ZOPE_PY_COMPILE= ${PYTHONBIN} ${ZOPE_DIR}/bin/compilezpy.py
|
||||
|
||||
.endif
|
Loading…
Reference in a new issue