Ticket #810: Portfile.2

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

ATTACHMENT: www/zope-cmfphotoalbum-0.2

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