Changeset 5859


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

Location:
trunk/dports/zope
Files:
2 edited

Legend:

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

    r5827 r5859  
    1 # $Id: Portfile,v 1.2 2004/03/15 19:03:26 rshaw Exp $
     1# $Id: Portfile,v 1.3 2004/03/19 07:55:52 rshaw Exp $
    22PortSystem 1.0
    33
     
    2121                                        points to external content in the filesystem.
    2222platforms               darwin freebsd
    23 homepage                http://zope.org/Members/arielpartners/CVSFile
    24 master_sites    http://zope.org/Members/arielpartners/CVSFile/${version}/
    25 dist_subdir             zope/${name}
    26 distname                CVSFile
     23set prodname    CVSFile
     24homepage                http://zope.org/Members/arielpartners/${prodname}
     25master_sites    ${homepage}/${version}/
     26dist_subdir             zope
    2727extract.suffix  .zip
    2828use_zip                 yes
    29 distfiles               ${distname}-[strsed ${version} {g/[.]/-/}]${extract.suffix}
     29distname                ${prodname}-[strsed ${version} {g/[.]/-/}]
    3030checksums               md5 e2841081d9b038c8a1acee97ff4b0e17
    3131
    3232# Use Python 2.3 from DarwinPorts explicitly
    3333set python              ${prefix}/bin/python2.3
     34set pythonlib   ${prefix}/lib/python2.3
    3435
    3536# Location to install Zope products and the Zope user                 
     
    4748                                bin:cvs:cvs
    4849
    49 use_configure   no
    50 
    51 pre-build {
    52         file copy ${zopehome}/bin/compilezpy.py ${workpath}
    53         reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
    54         reinplace "s|'tests'|& and name != 'extras'|" ${workpath}/compilezpy.py
     50platform freebsd {
     51        extract.post_args       | gtar -xf -
     52}
     53extract.dir             ${worksrcpath}
     54pre-extract {
     55        file mkdir ${worksrcpath}
     56}
     57post-extract {
    5558        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    5659        system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
    5760}
    5861
     62use_configure   no
     63
    5964build {
     65        file copy -force ${zopehome}/bin/compilezpy.py ${workpath}
     66        reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
     67        reinplace "s|'tests'|& and name != 'extras'|" ${workpath}/compilezpy.py
     68        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    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 ${workpath}/${distname} ${destroot}${zopeprod}"
     83        system "cp -R ${worksrcpath}/${prodname} ${destroot}${zopeprod}"
    7584        if {$env(USER) == "root"} {
    7685                system "chown -R ${zopeuser} ${destroot}${zopehome}"
    7786                system "chgrp -R ${zopegroup} ${destroot}${zopehome}"
    7887        }
    79 } 
     88}
    8089
  • 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.