blob: 1178f2d4c4dcb460edba824e5be915ee657de45e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
# New ports collection makefile for: plone
# Date created: 09 Jan 2003
# Whom: nbm
#
# $FreeBSD$
#
PORTNAME= plone
PORTVERSION= 2.0.4
CATEGORIES= www zope
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= plone
DISTNAME= Plone-${PORTVERSION}
DIST_SUBDIR= zope
MAINTAINER= filippo@widestore.net
COMMENT= A user friendly implementation of the CMF written on top of ZOPE
RUN_DEPENDS= ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/CMFDefault/__init__.py:${PORTSDIR}/www/zope-cmf
USE_ZOPE= yes
USE_PYTHON= yes
WRKSRC= ${WRKDIR}/Plone-${PORTVERSION}
PLIST= ${WRKDIR}/pkg-plist
MODULES= CMFPlone
OPTIONS= FORMULATOR "Install Formulator port" off \
BTREEFOLDER2 "Install BTreeFolder2 port" off \
CMFQUICKINSTALLER "Install CMFQuickInstallerTool port" off \
CMFACTIONICONS "Install CMFActionIcons port" off \
CMFFORMCONTROLLER "Install CMFFormController 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
.if defined(WITH_BTREEFOLDER2)
RUN_DEPENDS+= ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/BTreeFolder2/__init__.py:${PORTSDIR}/www/zope-btreefolder2
.else
MODULES+= BTreeFolder2
.endif
.if defined(WITH_CMFQUICKINSTALLER)
RUN_DEPENDS+= ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/CMFQuickInstallerTool/__init__.py:${PORTSDIR}/www/zope-cmfquickinstaller
.else
MODULES+= CMFQuickInstallerTool
.endif
.if defined(WITH_CMFACTIONICONS)
RUN_DEPENDS+= ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/CMFActionIcons/__init__.py:${PORTSDIR}/www/zope-cmfactionicons
.else
MODULES+= CMFActionIcons
.endif
.if defined(WITH_CMFFORMCONTROLLER)
RUN_DEPENDS+= ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/CMFFormController/__init__.py:${PORTSDIR}/www/zope-cmfformcontroller
.else
MODULES+= CMFFormController
.endif
.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}/Products/$${m}/__init__.py ]; then \
cd ${WRKSRC}; \
for i in `${FIND} $${m} -type f`; do \
${ECHO_CMD} %%ZOPEBASEDIR%%/Products/$${i} >> ${PLIST}; \
done; \
for i in `${FIND} -d $${m} -type d`; do \
${ECHO_CMD} @dirrm %%ZOPEBASEDIR%%/Products/$${i} >> ${PLIST}; \
done; \
fi;\
done
do-install:
@${MKDIR} ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}
@cd ${WRKSRC}; \
for m in ${MODULES}; do \
if [ ! -f ${ZOPEBASEDIR}/Products/$${m}/__init__.py ]; then \
${CP} -R $${m} ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}; \
fi; \
done
#fix permissions when bundled CMFFormController
#is installed
.if !defined(WITH_CMFFORMCONTROLLER)
@${CHMOD} -R a+rX ${ZOPEBASEDIR}/${ZOPEPRODUCTDIR}/CMFFormController/
.endif
post-install:
.if !defined(BATCH)
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.post.mk>
|