Changeset 5868


Ignore:
Timestamp:
Mar 19, 2004, 8:22:44 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

Location:
trunk/dports/zope/zope-localizer
Files:
2 edited

Legend:

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

    r5861 r5868  
    1 # $Id: Portfile,v 1.5 2004/03/19 08:00:10 rshaw Exp $
     1# $Id: Portfile,v 1.6 2004/03/19 20:22:44 rshaw Exp $
    22PortSystem 1.0
    33
     
    1212                                        interfaces and to manage multilingual content.
    1313platforms               darwin freebsd
     14set prodname    Localizer
    1415homepage                http://www.localizer.org/
    1516master_sites    sourceforge:lleu
    1617dist_subdir             zope
    17 set prodname    Localizer
    1818distname                ${prodname}-${version}
    1919extract.suffix  .tgz
    2020checksums               md5 87d82f24d94eee8a7fa334c4c5422b69
    21 worksrcdir              ${prodname}
    2221
    2322# Use Python 2.3 from DarwinPorts explicitly
     
    4140        extract.post_args       | gtar -xf -
    4241}
     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}
    4350
    4451patchfiles              patch-__init__.py
     
    4653use_configure   no
    4754
    48 pre-build {
    49         file copy ${zopehome}/bin/compilezpy.py ${workpath}
     55build {
     56        file copy -force ${zopehome}/bin/compilezpy.py ${workpath}
    5057        reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
    5158        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    52 }
    53 
    54 build {
    5559        system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py"
    5660}
     
    6771        }
    6872
    69         # Install products
     73        # Install product
    7074        xinstall -d -m 0755 ${destroot}${zopeprod}
    71         system "cp -R ${workpath}/${prodname} ${destroot}${zopeprod}"
     75        system "cp -R ${worksrcpath}/${prodname} ${destroot}${zopeprod}"
    7276        if {$env(USER) == "root"} {
    7377                system "chown -R ${zopeuser} ${destroot}${zopehome}"
    7478                system "chgrp -R ${zopegroup} ${destroot}${zopehome}"
    7579        }
    76 } 
     80}
    7781
     82variant cvs {
     83        version         [clock format [clock seconds] -format %Y%m%d]
     84        distname        ${prodname}-${version}
     85
     86        fetch.type      cvs
     87        cvs.root        :pserver:anonymous@cvs.sourceforge.net:/cvsroot/lleu
     88        cvs.module      ${prodname}
     89        cvs.dir         ${worksrcpath}
     90        pre-fetch {
     91                file mkdir ${worksrcpath}
     92        }
     93
     94        patchfiles-delete       ${patchfiles}
     95}
     96
  • trunk/dports/zope/zope-localizer/files/patch-__init__.py

    r5824 r5868  
    1 --- __init__.py.orig    Mon Mar 15 10:00:01 2004
    2 +++ __init__.py Mon Mar 15 10:00:42 2004
     1--- Localizer/__init__.py.orig  Mon Mar 15 10:00:01 2004
     2+++ Localizer/__init__.py       Mon Mar 15 10:00:42 2004
    33@@ -158,9 +158,9 @@
    44 
Note: See TracChangeset for help on using the changeset viewer.