Changeset 5880 for trunk/dports/zope


Ignore:
Timestamp:
Mar 20, 2004, 5:59:01 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-zopetree/Portfile

    r5861 r5880  
    1 # $Id: Portfile,v 1.3 2004/03/19 08:00:14 rshaw Exp $
     1# $Id: Portfile,v 1.4 2004/03/20 05:59:01 rshaw Exp $
    22PortSystem 1.0
    33
     
    1111                                        simpler to use than ZTUtils.Tree.
    1212platforms               darwin freebsd
    13 homepage                http://zope.org/Members/philikon/ZopeTree
    14 master_sites    http://zope.org/Members/philikon/ZopeTree/${version}/
     13set prodname    ZopeTree
     14homepage                http://zope.org/Members/philikon/${prodname}
     15master_sites    ${homepage}/${version}/
    1516dist_subdir             zope
    16 distname                ZopeTree
     17distname                ${prodname}-${version}
    1718extract.suffix  .tgz
    18 distfiles               ${distname}-${version}${extract.suffix}
    1919checksums               md5 455f4c7cca5b2ecf4aa6ac9c305d2831
    2020
    2121# Use Python 2.3 from DarwinPorts explicitly
    2222set python              ${prefix}/bin/python2.3
     23set pythonlib   ${prefix}/lib/python2.3
    2324
    2425# Location to install Zope products and the Zope user                 
     
    3536# none
    3637
     38platform freebsd {
     39        extract.post_args       | gtar -xf -
     40}
     41extract.dir             ${worksrcpath}
     42pre-extract {
     43        file mkdir ${worksrcpath}
     44}
     45post-extract {
     46        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
     47        system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
     48}
     49
    3750use_configure   no
    3851
    39 pre-build {
    40         file copy ${zopehome}/bin/compilezpy.py ${workpath}
     52build {
     53        file copy -force ${zopehome}/bin/compilezpy.py ${workpath}
    4154        reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
    4255        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    43 }
    44 
    45 build {
    4656        system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py"
    4757}
     
    5666        }
    5767
    58         # Install products
     68        # Install product
    5969        xinstall -d -m 0755 ${destroot}${zopeprod}
    60         system "cp -R ${workpath}/${distname} ${destroot}${zopeprod}"
     70        system "cp -R ${worksrcpath}/${prodname} ${destroot}${zopeprod}"
    6171        if {$env(USER) == "root"} {
    6272                system "chown -R ${zopeuser} ${destroot}${zopehome}"
    6373                system "chgrp -R ${zopegroup} ${destroot}${zopehome}"
    6474        }
    65 } 
     75}
    6676
Note: See TracChangeset for help on using the changeset viewer.