Ticket #812: Portfile

File Portfile, 1.7 KB (added by robert@…, 21 years ago)

ATTACHMENT: www/zope-localfs-1.0.0

Line 
1# $Id: Portfile,v 1.1 2003/08/13 05:53:17 rshaw Exp $
2PortSystem 1.0
3name            zope-localfs
4version         1.0.0
5categories      www python zope
6maintainers     robert@or.homeip.net
7description     Zope Local File System folder
8long_description        The Local File System is an add-in product for \
9                        the Zope web application server. It allows users \
10                        to access the contents of the file system on a \
11                        Zope server as if they were contained in the \
12                        Zope Object Database. It allows you to serve \
13                        files and browse directories from the local file \
14                        system (or network shares on Windows platforms). \
15                        It also allows you to upload files to the file \
16                        system.
17platforms       darwin
18homepage        http://sourceforge.net/projects/localfs
19distname        LocalFS-1-0-0
20extract.sufx    .tgz
21master_sites    sourceforge:localfs
22checksums       md5 f3d27cfb5d09232bf2a01dad736c0740
23depends_lib     bin:python2.1:python21
24depends_lib     path:${prefix}/www/Zope:zope
25configure       {}
26
27set python      /usr/bin/env\ python2.1
28set zopehome    ${prefix}/www/Zope
29
30pre-build {
31        system  "cp ${zopehome}/inst/compilezpy.py \
32                ${workpath}/lib/python/Products"
33}
34
35build {
36        system  "cd ${workpath}/lib/python/Products && \
37                ${python} ${workpath}/lib/python/Products/compilezpy.py"
38        system  "cd ${workpath}/lib/python/Products && \
39                ${python} -O ${workpath}/lib/python/Products/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 ${workpath}/lib/python/Products/LocalFS ${productsdir}"
50        system  "cd ${zopebase} && chown -R zope lib"
51        system  "cd ${zopebase} && chgrp -R www lib"
52}
53# vim: ts=8 sw=8