aboutsummaryrefslogtreecommitdiffstats
path: root/www/plone3/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/plone3/Makefile')
-rw-r--r--www/plone3/Makefile104
1 files changed, 85 insertions, 19 deletions
diff --git a/www/plone3/Makefile b/www/plone3/Makefile
index 69e47d83a13e..c43841477f8d 100644
--- a/www/plone3/Makefile
+++ b/www/plone3/Makefile
@@ -6,45 +6,111 @@
#
PORTNAME= plone
-PORTVERSION= 1.0.5
+PORTVERSION= 2.0
CATEGORIES= www zope
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= plone
-DISTNAME= CMFPlone1.0.5
+DISTNAME= CMFPlone-${PORTVERSION}-final
DIST_SUBDIR= zope
MAINTAINER= filippo@widestore.net
COMMENT= A user friendly implementation of the CMF written on top of ZOPE
-RUN_DEPENDS= ${LOCALBASE}/${SZOPEBASEDIR}/lib/python/Products/CMFDefault/__init__.py:${PORTSDIR}/www/zope-cmf13
+RUN_DEPENDS= ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/CMFDefault/__init__.py:${PORTSDIR}/www/zope-cmf
-CONFLICTS= zope-formulator-*
-
-USE_PYTHON= yes
USE_ZOPE= yes
-PYTHON_VERSION= python2.1
+USE_PYTHON= yes
+
+WRKSRC= ${WRKDIR}/CMFPlone-${PORTVERSION}-final
+PLIST= ${WRKDIR}/pkg-plist
+MODULES= CMFPlone CMFFormController
+
+OPTIONS= FORMULATOR "Install Formulator port" off \
+ BTREEFOLDER2 "Install BTreeFolder2 port" off \
+ CMFQUICKINSTALLER "Install CMFQuickInstallerTool port" off \
+ CMFACTIONICONS "Install CMFActionIcons port" off \
+ GROUPUSERFOLDER "Install GroupUserFolder port" off \
+ PLTRANSSERVICE "Install PlacelessTranslationService port" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_FORMULATOR)
+RUN_DEPENDS+= ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/Formulator/__init__.py:${PORTSDIR}/www/zope-formulator
+.else
+MODULES+= Formulator
+.endif
-WRKSRC= ${WRKDIR}/CMFPlone-1.0.5
-MODULES= CMFPlone DCWorkflow Formulator i18n
+.if defined(WITH_BTREEFOLDER2)
+RUN_DEPENDS+= ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/BTreeFolder2/__init__.py:${PORTSDIR}/www/zope-btreefolder2
+.else
+MODULES+= BTreeFolder2
+.endif
-# You can change this in the environment if you like.
-SZOPEBASEDIR?= www/Zope
+.if defined(WITH_CMFQUICKINSTALLER)
+RUN_DEPENDS+= ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/CMFQuickInstallerTool/__init__.py:${PORTSDIR}/www/zope-cmfquickinstaller
+.else
+MODULES+= CMFQuickInstallerTool
+.endif
-# Don't change these
-ZOPEBASEDIR= ${PREFIX}/${SZOPEBASEDIR}
-ZOPEPRODUCTNAME=
-ZOPEPRODUCTDIR= lib/python/Products
+.if defined(WITH_CMFACTIONICONS)
+RUN_DEPENDS+= ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/CMFActionIcons/__init__.py:${PORTSDIR}/www/zope-cmfactionicons
+.else
+MODULES+= CMFActionIcons
+.endif
-PLIST_SUB= ZOPEBASEDIR=${SZOPEBASEDIR}
+.if defined(WITH_GROUPUSERFOLDER)
+RUN_DEPENDS+= ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/GroupUserFolder/__init__.py:${PORTSDIR}/www/zope-groupuserfolder
+.else
+MODULES+= GroupUserFolder
+.endif
+
+.if defined(WITH_PLTRANSSERVICE)
+RUN_DEPENDS+= ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/PlacelessTranslationService/__init__.py:${PORTSDIR}/www/zope-placelesstranslationservice
+.else
+MODULES+= PlacelessTranslationService
+.endif
+
+pre-everything::
+.if !defined(BATCH)
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "If you are upgrading from an earlier version"
+ @${ECHO_MSG} "backup your site before proceeding."
+ @${ECHO_MSG} "If you haven't done so, please press CTRL-C now."
+ @${ECHO_MSG} ""
+.endif
do-build:
@for m in ${MODULES}; do \
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/$$m; \
done
+pre-install:
+ @${RM} -f ${PLIST}
+ @${TOUCH} ${PLIST}
+ @for m in ${MODULES}; do \
+ if [ ! -f ${ZOPEBASEDIR}/lib/python/Products/$${m}/__init__.py ]; then \
+ cd ${WRKSRC}; \
+ for i in `${FIND} $${m} -type f`; do \
+ ${ECHO_CMD} %%ZOPEBASEDIR%%/lib/python/Products/$${i} >> ${PLIST}; \
+ done; \
+ for i in `${FIND} -d $${m} -type d`; do \
+ ${ECHO_CMD} @dirrm %%ZOPEBASEDIR%%/lib/python/Products/$${i} >> ${PLIST}; \
+ done; \
+ fi;\
+ done
+
do-install:
@${MKDIR} ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}
- @(cd ${WRKSRC} && ${CP} -R ${MODULES} \
- ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR})
+ @cd ${WRKSRC}; \
+ for m in ${MODULES}; do \
+ if [ ! -f ${ZOPEBASEDIR}/lib/python/Products/$${m}/__init__.py ]; then \
+ ${CP} -R $${m} ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}; \
+ fi; \
+ done
+
+post-install:
+.if !defined(BATCH)
+ @${CAT} ${PKGMESSAGE}
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>