Changeset 5867


Ignore:
Timestamp:
Mar 19, 2004, 8:05:55 PM (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

File:
1 edited

Legend:

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

    r5861 r5867  
    1 # $Id: Portfile,v 1.3 2004/03/19 08:00:16 rshaw Exp $
     1# $Id: Portfile,v 1.4 2004/03/19 20:05:55 rshaw Exp $
    22PortSystem 1.0
    33
     
    1212                                        old manual export / transfer / import procedure.
    1313platforms               darwin freebsd
     14set prodname    ZSyncer
    1415homepage                http://sourceforge.net/projects/zsyncer
    1516master_sites    sourceforge:zsyncer
    1617dist_subdir             zope
    17 distname                ZSyncer
     18distname                ${prodname}-${version}
    1819extract.suffix  .tgz
    19 distfiles               ${distname}-${version}${extract.suffix}
    2020checksums               md5 68a2915facf142b2099db27370309a29
    2121
    2222# Use Python 2.3 from DarwinPorts explicitly
    2323set python              ${prefix}/bin/python2.3
     24set pythonlib   ${prefix}/lib/python2.3
    2425
    2526# Location to install Zope products and the Zope user                 
     
    3940        extract.post_args       | gtar -xf -
    4041}
     42extract.dir             ${worksrcpath}
     43pre-extract {
     44        file mkdir ${worksrcpath}
     45}
     46post-extract {
     47        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
     48        system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
     49}
    4150
    4251use_configure   no
    4352
    44 pre-build {
    45         file copy ${zopehome}/bin/compilezpy.py ${workpath}
     53build {
     54        file copy -force ${zopehome}/bin/compilezpy.py ${workpath}
    4655        reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
    4756        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    48 }
    49 
    50 build {
    5157        system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py"
    5258}
     
    6167        }
    6268
    63         # Install products
     69        # Install product
    6470        xinstall -d -m 0755 ${destroot}${zopeprod}
    65         system "cp -R ${workpath}/${distname} ${destroot}${zopeprod}"
     71        system "cp -R ${worksrcpath}/${prodname} ${destroot}${zopeprod}"
    6672        if {$env(USER) == "root"} {
    6773                system "chown -R ${zopeuser} ${destroot}${zopehome}"
    6874                system "chgrp -R ${zopegroup} ${destroot}${zopehome}"
    6975        }
    70 } 
     76}
    7177
     78variant cvs {
     79        version         [clock format [clock seconds] -format %Y%m%d]
     80        distname        ${prodname}-${version}
     81
     82        fetch.type      cvs
     83        cvs.root        :pserver:anonymous@cvs.sourceforge.net:/cvsroot/zsyncer
     84        cvs.module      ${prodname}
     85        cvs.dir         ${worksrcpath}
     86        pre-fetch {
     87                file mkdir ${worksrcpath}
     88        }
     89}
     90
Note: See TracChangeset for help on using the changeset viewer.