Changeset 5878


Ignore:
Timestamp:
Mar 20, 2004, 4:54:54 AM (16 years ago)
Author:
rshaw
Message:

Updates Portfile format/code to match newer Zope product ports.
Adds "cvs" variant to build bleeding egde version of product.
No installed files change, no revision bump required.

Submitted by: rshaw

Location:
trunk/dports/zope/zope-localfs
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/zope/zope-localfs/Portfile

    r5861 r5878  
    1 # $Id: Portfile,v 1.3 2004/03/19 08:00:10 rshaw Exp $
     1# $Id: Portfile,v 1.4 2004/03/20 04:54:53 rshaw Exp $
    22PortSystem 1.0
    33
     
    1818                                        system.
    1919platforms               darwin freebsd
     20set prodname    LocalFS
    2021homepage                http://sourceforge.net/projects/localfs
    2122master_sites    sourceforge:localfs
    2223dist_subdir             zope
    23 distname                LocalFS-1-1-0
     24distname                ${prodname}-[strsed ${version} {g/[.]/-/}]
    2425extract.suffix  .tgz
    2526checksums               md5 738c05ad9e4cb59518269bc21fa79a1d
     
    2728# Use Python 2.3 from DarwinPorts explicitly
    2829set python              ${prefix}/bin/python2.3
     30set pythonlib   ${prefix}/lib/python2.3
    2931
    3032# Location to install Zope products and the Zope user                 
     
    4446        extract.post_args       | gtar -xf -
    4547}
    46 
    47 worksrcdir              lib/python/Products/LocalFS
     48extract.dir             ${worksrcpath}
     49pre-extract {
     50        file mkdir ${worksrcpath}
     51}
     52post-extract {
     53        if {[file exist ${worksrcpath}/lib/python/Products/${prodname}]} {
     54                file rename ${worksrcpath}/lib/python/Products/${prodname} \
     55                        ${worksrcpath}/${prodname}
     56        }
     57        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
     58        system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
     59}
    4860
    4961patchfiles              patch-FSObject.py
     
    5163use_configure   no
    5264
    53 pre-build {
    54         file copy ${zopehome}/bin/compilezpy.py ${workpath}
     65build {
     66        file copy -force ${zopehome}/bin/compilezpy.py ${workpath}
    5567        reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
    5668        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    57 }
    58 
    59 build {
    6069        system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py"
    6170}
     
    7079        }
    7180
    72         # Install products
     81        # Install product
    7382        xinstall -d -m 0755 ${destroot}${zopeprod}
    74         system "cp -R ${worksrcpath} ${destroot}${zopeprod}"
     83        system "cp -R ${worksrcpath}/${prodname} ${destroot}${zopeprod}"
    7584        if {$env(USER) == "root"} {
    7685                system "chown -R ${zopeuser} ${destroot}${zopehome}"
     
    7988}
    8089
     90variant cvs {
     91        version         [clock format [clock seconds] -format %Y%m%d]
     92        distname        ${prodname}-${version}
     93
     94        fetch.type      cvs
     95        cvs.root        :pserver:anonymous@cvs.sourceforge.net:/cvsroot/localfs
     96        cvs.module      src/lib/python/Products/${prodname}
     97        cvs.args        -d ${prodname}
     98        cvs.dir         ${worksrcpath}
     99        pre-fetch {
     100                file mkdir ${worksrcpath}
     101        }
     102
     103        patchfiles      patch-FSObject.py-cvs
     104}
     105
  • trunk/dports/zope/zope-localfs/files/patch-FSObject.py

    r5475 r5878  
    1 --- FSObject.py.orig    Sat Sep 14 11:23:19 2002
    2 +++ FSObject.py Mon Dec 15 21:03:42 2003
     1--- LocalFS/FSObject.py.orig    Sat Sep 14 11:23:19 2002
     2+++ LocalFS/FSObject.py Mon Dec 15 21:03:42 2003
    33@@ -180,16 +180,18 @@
    44             self._fs_update_mtime()
Note: See TracChangeset for help on using the changeset viewer.