1 | # $Id: Portfile,v 1.3 2003/08/26 04:53:07 rshaw Exp $ |
---|
2 | PortSystem 1.0 |
---|
3 | name zope-cmfphotoalbum |
---|
4 | version 0.2 |
---|
5 | categories www python zope |
---|
6 | maintainers robert@or.homeip.net |
---|
7 | description Zope CMF based Photo Album object |
---|
8 | platforms darwin |
---|
9 | homepage http://sourceforge.net/projects/collective |
---|
10 | distname CMFPhotoAlbum-${version} |
---|
11 | master_sites sourceforge:collective |
---|
12 | checksums md5 2951e810674200854db370d9f3197bcb |
---|
13 | depends_build bin:python2.1:python21 \ |
---|
14 | path:${prefix}/www/Zope:zope |
---|
15 | depends_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 |
---|
18 | configure {} |
---|
19 | |
---|
20 | set python /usr/bin/env\ python2.1 |
---|
21 | set zopehome ${prefix}/www/Zope |
---|
22 | |
---|
23 | pre-build { |
---|
24 | system "cp ${zopehome}/inst/compilezpy.py ${workpath}" |
---|
25 | } |
---|
26 | |
---|
27 | build { |
---|
28 | system "cd ${workpath} && \ |
---|
29 | ${python} ${workpath}/compilezpy.py" |
---|
30 | system "cd ${workpath} && \ |
---|
31 | ${python} -O ${workpath}/compilezpy.py" |
---|
32 | } |
---|
33 | |
---|
34 | destroot { |
---|
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 |
---|