Ticket #809: Portfile

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

ATTACHMENT: www/zope-cmfphoto-0.2

Line 
1# $Id: Portfile,v 1.2 2003/08/15 05:16:18 rshaw Exp $
2PortSystem 1.0
3name            zope-cmfphoto
4version         0.2
5categories      www python zope
6maintainers     robert@or.homeip.net
7description     Zope CMF based Photo object
8platforms       darwin
9homepage        http://sourceforge.net/projects/collective
10distname        CMFPhoto-${version}
11master_sites    sourceforge:collective
12checksums       md5 56f8fe2d79dbeae6d518a1bc1d55db30
13depends_lib     bin:python2.1:python21
14depends_lib     bin:convert:ImageMagick
15depends_lib     path:${prefix}/www/Zope:zope
16depends_lib     path:${prefix}/www/Zope/lib/python/Products/CMFCore:zope-cmf
17configure       {}
18
19set python      /usr/bin/env\ python2.1
20set zopehome    ${prefix}/www/Zope
21
22pre-build {
23        system  "cp ${zopehome}/inst/compilezpy.py ${workpath}"
24}
25
26build {
27        system  "cd ${workpath} && \
28                ${python} ${workpath}/compilezpy.py"
29        system  "cd ${workpath} && \
30                ${python} -O ${workpath}/compilezpy.py"
31}
32
33destroot        {
34        set zopebase    ${destroot}${zopehome}
35        set productsdir ${zopebase}/lib/python/Products
36        set zopeuser    zope
37   
38        # Copy Plone products into the Products directory
39        system  "install -d ${productsdir}"
40        system  "cp -R ${workpath}/CMFPhoto ${productsdir}"
41        system  "cd ${zopebase} && chown -R zope lib"
42        system  "cd ${zopebase} && chgrp -R www lib"
43}
44# vim: ts=8 sw=8