Ticket #811: Portfile.2

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

ATTACHMENT: www/zope-cmfquickinstallertool-1.2.1

Line 
1# $Id: Portfile,v 1.3 2003/08/26 04:53:07 rshaw Exp $
2PortSystem 1.0
3name            zope-cmfquickinstallertool
4version         1.2.1
5categories      www python zope
6maintainers     robert@or.homeip.net
7description     Zope CMF based Quick Installer Tool
8long_description        QuickInstaller serves as help for \
9                        installing/uninstalling CMF Products \
10                        inside a CMF Site.
11platforms       darwin
12homepage        http://sourceforge.net/projects/collective
13distname        CMFQuickInstallerTool_${version}
14extract.sufx    .tgz
15master_sites    sourceforge:collective
16checksums       md5 baf0d7949c238ecfe604bdcfb2398de0
17depends_build   bin:python2.1:python21 \
18                path:${prefix}/www/Zope:zope
19depends_run     path:${prefix}/www/Zope/lib/python/Products/CMFCore:zope-cmf
20configure       {}
21
22set python      /usr/bin/env\ python2.1
23set zopehome    ${prefix}/www/Zope
24
25pre-build {
26        system  "cp ${zopehome}/inst/compilezpy.py ${workpath}"
27}
28
29build {
30        system  "cd ${workpath} && \
31                ${python} ${workpath}/compilezpy.py"
32        system  "cd ${workpath} && \
33                ${python} -O ${workpath}/compilezpy.py"
34}
35
36destroot        {
37        set zopebase    ${destroot}${zopehome}
38        set productsdir ${zopebase}/lib/python/Products
39        set zopeuser    zope
40   
41        # Copy Plone products into the Products directory
42        system  "install -d ${productsdir}"
43        system  "cp -R ${workpath}/CMFQuickInstallerTool ${productsdir}"
44        system  "cd ${zopebase} && chown -R zope lib"
45        system  "cd ${zopebase} && chgrp -R www lib"
46}
47# vim: ts=8 sw=8