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