Changeset 5876


Ignore:
Timestamp:
Mar 20, 2004, 4:20:22 AM (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-externaleditor
Files:
2 edited

Legend:

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

    r5861 r5876  
    1 # $Id: Portfile,v 1.6 2004/03/19 08:00:09 rshaw Exp $
     1# $Id: Portfile,v 1.7 2004/03/20 04:20:22 rshaw Exp $
    22PortSystem 1.0
    33
     
    1212                                        the ZMI to modify Zope objects. Its one of those \
    1313                                        "have your cake and eat it too" kind of things.
    14 platforms               darwin
    15 distname                ExternalEditor
    16 extract.suffix  .tgz
    17 distfiles               ${distname}-${version}${extract.suffix}
    18 homepage                http://zope.org/Members/Caseman/${distname}
     14platforms               darwin freebsd
     15set prodname    ExternalEditor
     16homepage                http://zope.org/Members/Caseman/${prodname}
    1917master_sites    ${homepage}/${version}
    2018dist_subdir             zope
     19distname                ${prodname}-${version}
     20extract.suffix  .tgz
    2121checksums               md5 1dac15db90bb3c320955c114f2053963
    2222
    2323# Use Python 2.3 from DarwinPorts explicitly
    2424set python              ${prefix}/bin/python2.3
     25set pythonlib   ${prefix}/lib/python2.3
    2526
    2627# Location to install Zope products and the Zope user                 
     
    4142        extract.post_args       | gtar -xf -
    4243}
     44extract.dir             ${worksrcpath}
     45pre-extract {
     46        file mkdir ${worksrcpath}
     47}
     48post-extract {
     49        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
     50        system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
     51}
    4352
    4453patchfiles              patch-ExternalEditor.py
     
    4655use_configure   no
    4756
    48 pre-build {
    49         file copy ${zopehome}/bin/compilezpy.py ${workpath}
     57build {
     58        file copy -force ${zopehome}/bin/compilezpy.py ${workpath}
    5059        reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
    5160        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    52 }
    53 
    54 build {
    5561        system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py"
    5662}
     
    6571        }
    6672
    67         # Install products
     73        # Install product
    6874        xinstall -d -m 0755 ${destroot}${zopeprod}
    69         system "cp -R ${workpath}/${distname} ${destroot}${zopeprod}"
     75        system "cp -R ${worksrcpath}/${prodname} ${destroot}${zopeprod}"
    7076        if {$env(USER) == "root"} {
    7177                system "chown -R ${zopeuser} ${destroot}${zopehome}"
     
    7783        ui_msg "be used to edit Zope documents."
    7884        ui_msg "------------------------------------------------------------"
    79 } 
     85}
    8086
     87variant cvs {
     88        version         [clock format [clock seconds] -format %Y%m%d]
     89        distname        ${prodname}-${version}
     90
     91        fetch.type      cvs
     92        cvs.root        :pserver:anonymous@cvs.zope.org:/cvs-repository
     93        cvs.module      Products/${prodname}
     94        cvs.args        -d ${prodname}
     95        cvs.dir         ${worksrcpath}
     96        pre-fetch {
     97                file mkdir ${worksrcpath}
     98        }
     99}
     100
  • trunk/dports/zope/zope-externaleditor/files/patch-ExternalEditor.py

    r5731 r5876  
    1 --- ExternalEditor.py.orig      Fri Mar  5 12:02:24 2004
    2 +++ ExternalEditor.py   Fri Mar  5 12:01:54 2004
     1--- ExternalEditor/ExternalEditor.py.orig       Fri Mar  5 12:02:24 2004
     2+++ ExternalEditor/ExternalEditor.py    Fri Mar  5 12:01:54 2004
    33@@ -17,6 +17,7 @@
    44 # Zope External Editor Product by Casey Duncan
Note: See TracChangeset for help on using the changeset viewer.