1 | # $Id: Portfile,v 1.2 2003/08/14 19:48:42 rshaw Exp $ |
---|
2 | PortSystem 1.0 |
---|
3 | name zope-cmfquickinstallertool |
---|
4 | version 1.2.1 |
---|
5 | categories www python zope |
---|
6 | maintainers robert@or.homeip.net |
---|
7 | description Zope CMF based Quick Installer Tool |
---|
8 | long_description QuickInstaller serves as help for \ |
---|
9 | installing/uninstalling CMF Products \ |
---|
10 | inside a CMF Site. |
---|
11 | platforms darwin |
---|
12 | homepage http://sourceforge.net/projects/collective |
---|
13 | distname CMFQuickInstallerTool_${version} |
---|
14 | extract.sufx .tgz |
---|
15 | master_sites sourceforge:collective |
---|
16 | checksums md5 baf0d7949c238ecfe604bdcfb2398de0 |
---|
17 | depends_lib bin:python2.1:python21 |
---|
18 | depends_lib path:${prefix}/www/Zope:zope |
---|
19 | depends_lib path:${prefix}/www/Zope/lib/python/Products/CMFCore:zope-cmf |
---|
20 | configure {} |
---|
21 | |
---|
22 | set python /usr/bin/env\ python2.1 |
---|
23 | set zopehome ${prefix}/www/Zope |
---|
24 | |
---|
25 | pre-build { |
---|
26 | system "cp ${zopehome}/inst/compilezpy.py ${workpath}" |
---|
27 | } |
---|
28 | |
---|
29 | build { |
---|
30 | system "cd ${workpath} && \ |
---|
31 | ${python} ${workpath}/compilezpy.py" |
---|
32 | system "cd ${workpath} && \ |
---|
33 | ${python} -O ${workpath}/compilezpy.py" |
---|
34 | } |
---|
35 | |
---|
36 | destroot { |
---|
37 | set zopebase ${destroot}${zopehome} |
---|
38 | set productsdir ${zopebase}/lib/python/Products |
---|
39 | set zopeuser zope |
---|
40 | |
---|
41 | # Copy Plone products into the Products directory |
---|
42 | system "install -d ${productsdir}" |
---|
43 | system "cp -R ${workpath}/CMFQuickInstallerTool ${productsdir}" |
---|
44 | system "cd ${zopebase} && chown -R zope lib" |
---|
45 | system "cd ${zopebase} && chgrp -R www lib" |
---|
46 | } |
---|
47 | # vim: ts=8 sw=8 |
---|