Changeset 4226 for trunk/dports
- Timestamp:
- Dec 16, 2003, 5:36:37 AM (20 years ago)
- Location:
- trunk/dports/www/zope-localfs
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/www/zope-localfs/Portfile
r3977 r4226 1 # $Id: Portfile,v 1. 2 2003/11/17 21:20:06 jkhExp $1 # $Id: Portfile,v 1.3 2003/12/16 05:36:37 rshaw Exp $ 2 2 PortSystem 1.0 3 3 name zope-localfs 4 version 1. 0.04 version 1.1.0 5 5 categories www python zope 6 6 maintainers rshaw@opendarwin.org … … 17 17 platforms darwin 18 18 homepage http://sourceforge.net/projects/localfs 19 distname LocalFS-1-0-020 19 extract.suffix .tgz 20 distname LocalFS-1-1-0 21 21 master_sites sourceforge:localfs 22 checksums md5 f3d27cfb5d09232bf2a01dad736c0740 23 depends_build bin:python2.1:python21 \ 24 path:${prefix}/www/Zope:zope 22 checksums md5 738c05ad9e4cb59518269bc21fa79a1d 23 24 set python ${prefix}/bin/python2.1 25 set pythonlib ${prefix}/lib/python2.1 26 set zopehome ${prefix}/www/Zope 27 set zopeprod ${zopehome}/lib/python/Products 28 set zopeuser zope 29 set zopegroup www 30 31 depends_build bin:${python}:python21 \ 32 path:${zopehome}:zope 33 34 patchfiles patch-FSObject.py 35 pre-patch { system "ln -s lib/python/Products/LocalFS ${workpath}/${distname}" } 36 25 37 configure {} 26 38 27 set python /usr/bin/env\ python2.1 28 set zopehome ${prefix}/www/Zope 39 pre-build { file copy ${zopehome}/inst/compilezpy.py ${workpath} 40 system "find ${workpath} -name '*.py\[co\]' | xargs rm" } 29 41 30 pre-build { system "cp ${zopehome}/inst/compilezpy.py\31 ${ workpath}/lib/python/Products" }42 build { system "cd ${workpath} && \ 43 ${python} ${workpath}/compilezpy.py" } 32 44 33 build { system "cd ${workpath}/lib/python/Products && \ 34 ${python} ${workpath}/lib/python/Products/compilezpy.py"35 system "c d ${workpath}/lib/python/Products && \36 ${python} -O ${workpath}/lib/python/Products/compilezpy.py" }45 destroot { file mkdir ${destroot}${zopeprod} 46 system "cp -R ${workpath}/lib/python/Products/LocalFS ${destroot}${zopeprod}" 47 system "chown -R ${zopeuser} ${destroot}${zopeprod}" 48 system "chgrp -R ${zopegroup} ${destroot}${zopeprod}" } 37 49 38 destroot { set zopebase ${destroot}${zopehome}39 set productsdir ${zopebase}/lib/python/Products40 set zopeuser zope41 42 # Copy Plone products into the Products directory43 system "install -d ${productsdir}"44 system "cp -R ${workpath}/lib/python/Products/LocalFS ${productsdir}"45 system "cd ${zopebase} && chown -R zope lib"46 system "cd ${zopebase} && chgrp -R www lib" }47
Note: See TracChangeset
for help on using the changeset viewer.