diff options
Diffstat (limited to 'www/zope29/Makefile')
-rw-r--r-- | www/zope29/Makefile | 40 |
1 files changed, 14 insertions, 26 deletions
diff --git a/www/zope29/Makefile b/www/zope29/Makefile index 0f50c4cca47..1c67e3cef25 100644 --- a/www/zope29/Makefile +++ b/www/zope29/Makefile @@ -1,15 +1,16 @@ -# $NetBSD: Makefile,v 1.14 2007/12/25 06:02:54 taca Exp $ +# $NetBSD: Makefile,v 1.15 2008/01/06 15:57:45 taca Exp $ # FreeBSD Id: ports/www/zope29/Makefile,v 1.86 2006/08/03 15:53:04 garga Exp DISTNAME= Zope-${ZOPE29_VERSION}-final PKGNAME= ${ZOPE_PKG_PREFIX}-${ZOPE29_VERSION} +PKGREVISION= 1 CATEGORIES= www python MASTER_SITES= http://www.zope.org/Products/Zope/${ZOPE29_VERSION}/ EXTRACT_SUFX= .tgz -MAINTAINER= pkgsrc-users@NetBSD.org +MAINTAINER= taca@NetBSD.org HOMEPAGE= http://www.zope.org/ -COMMENT= Zope, the Z Object Publishing Environment +COMMENT= Zope ${ZOPE29_VERSION}, the Z Object Publishing Environment DEPENDS+= ${PYPKGPREFIX}-expat>=0:../../textproc/py-expat @@ -17,20 +18,15 @@ PYTHON_VERSIONS_ACCEPTED= 24 ZOPE_VERSION= 29 HAS_CONFIGURE= yes -CONFIGURE_ARGS= --prefix=${ZOPE_DIR} --with-python=${PYTHONBIN} --quiet +CONFIGURE_ARGS= --prefix=${ZOPE_DIR} --with-python=${PYTHONBIN} BUILD_TARGET= build version_txt MAKE_FILE= makefile -PRIVILEGED_STAGES+= clean -PKG_GROUPS_VARS+= ZOPE_GROUP -PKG_USERS_VARS+= ZOPE_USER - -PKG_GROUPS= ${ZOPE_GROUP} -PKG_USERS= ${ZOPE_USER}:${ZOPE_GROUP} -RCD_SCRIPTS= zope${ZOPE_VERSION} zeo${ZOPE_VERSION} - -FILES_SUBST+= RCVAR_SUFFIX=${RCVAR_SUFFIX} VER=${ZOPE29_VERSION} -MESSAGE_SUBST+= RCVAR_SUFFIX=${RCVAR_SUFFIX} ZOPE_VERSION=${ZOPE_VERSION} +INSTALLATION_DIRS= ${ZOPE_DOC_DIR}/zeo ${ZOPE_DOC_DIR}/zope +OWN_DIRS+= ${ZOPE_PRODUCTS_DIR} +RCD_SCRIPTS= zope${ZOPE_VERSION} zeo${ZOPE_VERSION} +RCD_SCRIPT_SRC.zope${ZOPE_VERSION}= ../zope/files/zope.sh +RCD_SCRIPT_SRC.zeo${ZOPE_VERSION}= ../zope/files/zeo.sh SUBST_CLASSES+= param SUBST_STAGE.param= pre-configure @@ -44,18 +40,11 @@ REPLACE_PYTHON+= test.py lib/python/Zope2/Startup/zopectl.py \ lib/python/zdaemon/zdctl.py lib/python/zdaemon/zdrun.py REPLACE_PYTHON_DIRS+= ${WRKSRC}/lib/python/ZConfig/scripts ${WRKSRC}/utilities -.include "../../mk/bsd.prefs.mk" - -.if ${OPSYS} == "FreeBSD" -RCVAR_SUFFIX= _enable -.else -RCVAR_SUFFIX= # empty -.endif - -OWN_DIRS+= ${ZOPE_PRODUCTS_DIR} +pre-patch: + ${CP} ../zope/files/sitecustomize.py ${WRKSRC}/lib/python + ${RM} -f ${WRKSRC}/skel/bin/runzope.bat.in post-patch: - ${CP} ${FILESDIR}/sitecustomize.py ${WRKSRC}/lib/python ${FIND} ${WRKSRC}/doc ${WRKSRC}/lib ${WRKSRC}/skel/import \ -type f -print0 | ${XARGS} -0 -- ${CHMOD} -x @@ -66,8 +55,6 @@ pre-install: ${FIND} ${WRKSRC} -name '*.orig' -print0 | ${XARGS} -0 -- ${RM} post-install: - ${INSTALL_DATA_DIR} ${ZOPE_DOC_DIR}/zeo - ${INSTALL_DATA_DIR} ${ZOPE_DOC_DIR}/zope cd ${WRKSRC}/doc/ZEO; ${PAX} -rw *.txt ${ZOPE_DOC_DIR}/zeo cd ${WRKSRC}/doc; ${PAX} -rw *.txt ${ZOPE_DOC_DIR}/zope ${FIND} ${ZOPE_DIR} ${ZOPE_DOC_DIR} -type f -print0 \ @@ -75,6 +62,7 @@ post-install: ${FIND} ${ZOPE_DIR} -type f -name '*.pyc' -print0 | \ ${XARGS} -0 -- ${CHMOD} a-x +.include "../../www/zope/Makefile.common" .include "../../www/zope/replace.mk" .include "../../www/zope/zopeversion.mk" .include "../../lang/python/application.mk" |