Ticket #807: Portfile.2

File Portfile.2, 2.0 KB (added by robert@…, 21 years ago)

ATTACHMENT: www/zope-plone-1.0.4

Line 
1# $Id: Portfile,v 1.11 2003/08/26 04:53:07 rshaw Exp $
2PortSystem 1.0
3name            zope-plone
4version         1.0.4
5categories      www python zope
6maintainers     robert@or.homeip.net
7description     A user friendly implementation of the CMF written on top of Zope
8long_description        Plone is a user friendly implementation of the \
9                        Content Management Framework written on top of \
10                        ZOPE.  Plone is a GUI/Interface/Implementation \
11                        of the CMF.  It benefits from all features of \
12                        ZOPE/CMF such as: RDBMS integration, Python/Perl \
13                        extensions, Object Oriented Database, Web \
14                        configurable workflow, pluggable membership and \
15                        authentication, Undos, Form validation, amongst \
16                        many many other features.
17platforms       darwin
18homepage        http://www.plone.org/
19distname        CMFPlone-${version}
20distfiles       CMFPlone${version}${extract.sufx}
21master_sites    sourceforge:plone
22checksums       md5 334d1e8a78d44ffe1d78b3b7147c0bcc
23depends_build   bin:python2.1:python21 \
24                path:${prefix}/www/Zope:zope
25depends_run     path:${prefix}/www/Zope/lib/python/Products/CMFCore:zope-cmf
26configure       {}
27
28set python      /usr/bin/env\ python2.1
29set zopehome    ${prefix}/www/Zope
30
31pre-build {
32        system  "cp ${zopehome}/inst/compilezpy.py ${worksrcpath}"
33}
34
35build {
36        system  "cd ${worksrcpath} && \
37                ${python} ${worksrcpath}/compilezpy.py"
38        system  "cd ${worksrcpath} && \
39                ${python} -O ${worksrcpath}/compilezpy.py"
40}
41
42destroot        {
43        set zopebase    ${destroot}${zopehome}
44        set productsdir ${zopebase}/lib/python/Products
45        set zopeuser    zope
46   
47        # Copy Plone products into the Products directory
48        system  "install -d ${productsdir}"
49        system  "cp -R ${worksrcpath}/CMFPlone ${productsdir}"
50        system  "cp -R ${worksrcpath}/DCWorkflow ${productsdir}"
51        system  "cp -R ${worksrcpath}/Formulator ${productsdir}"
52        system  "cd ${zopebase} && chown -R zope lib"
53        system  "cd ${zopebase} && chgrp -R www lib"
54
55        # Install docs
56        system  "install -d ${destroot}${prefix}/share/doc/Plone"
57        system  "cp -r ${worksrcpath}/CMFPlone/docs/* \
58                        ${destroot}${prefix}/share/doc/Plone"
59}
60# vim: ts=8 sw=8