Changeset 5881 for trunk/dports/zope


Ignore:
Timestamp:
Mar 20, 2004, 6:05:35 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-revisionmanager/Portfile

    r5861 r5881  
    1 # $Id: Portfile,v 1.3 2004/03/19 08:00:12 rshaw Exp $
     1# $Id: Portfile,v 1.4 2004/03/20 06:05:35 rshaw Exp $
    22PortSystem 1.0
    33
     
    2929                                        supported).
    3030platforms               darwin freebsd
    31 homepage                http://zope.org/Members/philikon/RevisionManager
    32 master_sites    http://zope.org/Members/philikon/RevisionManager/${version}/
     31set prodname    RevisionManager
     32homepage                http://zope.org/Members/philikon/${prodname}
     33master_sites    ${homepage}/${version}/
    3334dist_subdir             zope
    34 distname                RevisionManager
     35distname                ${prodname}-${version}
    3536extract.suffix  .tgz
    36 distfiles               ${distname}-${version}${extract.suffix}
    3737checksums               md5 0878bd0ba2bdb5d3edee68d4d94f9e44
    3838
    3939# Use Python 2.3 from DarwinPorts explicitly
    4040set python              ${prefix}/bin/python2.3
     41set pythonlib   ${prefix}/lib/python2.3
    4142
    4243# Location to install Zope products and the Zope user                 
     
    5455                                bin:cvs:cvs
    5556
     57platform freebsd {
     58        extract.post_args       | gtar -xf -
     59}
     60extract.dir             ${worksrcpath}
     61pre-extract {
     62        file mkdir ${worksrcpath}
     63}
     64post-extract {
     65        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
     66        system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
     67}
     68
    5669use_configure   no
    5770
    58 pre-build {
    59         file copy ${zopehome}/bin/compilezpy.py ${workpath}
     71build {
     72        file copy -force ${zopehome}/bin/compilezpy.py ${workpath}
    6073        reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
    6174        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    62 }
    63 
    64 build {
    6575        system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py"
    6676}
     
    7585        }
    7686
    77         # Install products
     87        # Install product
    7888        xinstall -d -m 0755 ${destroot}${zopeprod}
    79         system "cp -R ${workpath}/${distname} ${destroot}${zopeprod}"
     89        system "cp -R ${worksrcpath}/${prodname} ${destroot}${zopeprod}"
    8090        if {$env(USER) == "root"} {
    8191                system "chown -R ${zopeuser} ${destroot}${zopehome}"
    8292                system "chgrp -R ${zopegroup} ${destroot}${zopehome}"
    8393        }
    84 } 
     94}
    8595
Note: See TracChangeset for help on using the changeset viewer.