Ignore:
Timestamp:
Mar 19, 2004, 7:55:52 AM (16 years ago)
Author:
rshaw
Message:

Updates Portfile format/code to match newer Zope product ports.
No installed files change, no revision bump required.

Submitted by: rshaw

File:
1 edited

Legend:

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

    r5827 r5859  
    1 # $Id: Portfile,v 1.2 2004/03/15 19:03:27 rshaw Exp $
     1# $Id: Portfile,v 1.3 2004/03/19 07:55:50 rshaw Exp $
    22PortSystem 1.0
    33
     
    1414                                        supports in-browser editing for ASCII files.
    1515platforms               darwin freebsd
    16 homepage                http://zope.org/Members/arielpartners/ExternalFile
    17 master_sites    http://zope.org/Members/arielpartners/ExternalFile/${version}/
    18 dist_subdir             zope/${name}
    19 distname                ExternalFile
     16set prodname    ExternalFile
     17homepage                http://zope.org/Members/arielpartners/${prodname}
     18master_sites    ${homepage}/${version}/
     19dist_subdir             zope
    2020extract.suffix  .zip
    2121use_zip                 yes
    22 distfiles               ${distname}-[strsed ${version} {g/[.]/-/}]${extract.suffix}
     22distname                ${prodname}-[strsed ${version} {g/[.]/-/}]
    2323checksums               md5 b4da87c01e79970cb8bccf2848d88369
    2424
     
    3939# none
    4040
    41 use_configure   no
    42 
    43 pre-build {
    44         file copy ${zopehome}/bin/compilezpy.py ${workpath}
    45         reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
    46         reinplace "s|'tests'|& and name != 'extras'|" ${workpath}/compilezpy.py
     41extract.dir             ${worksrcpath}
     42pre-extract {
     43        file mkdir ${worksrcpath}
     44}
     45post-extract {
    4746        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    4847        system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
    4948}
    5049
     50use_configure   no
     51
    5152build {
     53        file copy -force ${zopehome}/bin/compilezpy.py ${workpath}
     54        reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
     55        reinplace "s|'tests'|& and name != 'extras'|" ${workpath}/compilezpy.py
     56        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    5257        system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py"
    5358}
     
    6267        }
    6368
    64         # Install products
     69        # Install product
    6570        xinstall -d -m 0755 ${destroot}${zopeprod}
    66         system "cp -R ${workpath}/${distname} ${destroot}${zopeprod}"
     71        system "cp -R ${worksrcpath}/${prodname} ${destroot}${zopeprod}"
    6772        if {$env(USER) == "root"} {
    6873                system "chown -R ${zopeuser} ${destroot}${zopehome}"
Note: See TracChangeset for help on using the changeset viewer.