Ignore:
Timestamp:
Apr 10, 2004, 4:43:50 PM (16 years ago)
Author:
rshaw
Message:

All Zope product ports have been updated to use the new Zope group code.
Revision bump on all products.
New products to be added later today ...

Submitted by: rshaw

File:
1 edited

Legend:

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

    r5859 r6352  
    1 # $Id: Portfile,v 1.3 2004/03/19 07:55:50 rshaw Exp $
     1# $Id: Portfile,v 1.4 2004/04/10 16:43:47 rshaw Exp $
    22PortSystem 1.0
     3PortGroup zope 1.0
    34
    4 name                    zope-externalfile
    5 version                 1.2.0
    6 categories              www zope python
     5zope.setup              ExternalFile 1.2.0
     6revision                1
    77maintainers             rshaw@opendarwin.org
    88description             This is the ExternalFile Zope Product.
     
    1313                                        the context of the Zope installation.  It also \
    1414                                        supports in-browser editing for ASCII files.
     15homepage                http://zope.org/Members/arielpartners/${zope.product}
     16master_sites    ${homepage}/${version}/
     17distname                ${zope.product}-[strsed ${version} {g/[.]/-/}]
     18use_zip                 yes
     19checksums               md5 b4da87c01e79970cb8bccf2848d88369
    1520platforms               darwin freebsd
    16 set prodname    ExternalFile
    17 homepage                http://zope.org/Members/arielpartners/${prodname}
    18 master_sites    ${homepage}/${version}/
    19 dist_subdir             zope
    20 extract.suffix  .zip
    21 use_zip                 yes
    22 distname                ${prodname}-[strsed ${version} {g/[.]/-/}]
    23 checksums               md5 b4da87c01e79970cb8bccf2848d88369
    2421
    25 # Use Python 2.3 from DarwinPorts explicitly
    26 set python              ${prefix}/bin/python2.3
    27 
    28 # Location to install Zope products and the Zope user                 
    29 set zopehome    ${prefix}/libexec/Zope
    30 set zopeinst    ${prefix}/www/Zope
    31 set zopeprod    ${zopehome}/lib/python/Products
    32 set zopeuser    zope
    33 set zopegroup   www
    34 
    35 # Depends on Zope
    36 depends_build   path:${zopehome}:zope
    37 
    38 # Depends on these Zope products
    39 # none
    40 
    41 extract.dir             ${worksrcpath}
    42 pre-extract {
    43         file mkdir ${worksrcpath}
    44 }
    45 post-extract {
    46         system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    47         system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
     22post-patch {
     23        reinplace "s|'tests'|& and name != 'extras'|" ${workpath}/compilezpy.py
    4824}
    4925
    50 use_configure   no
    51 
    52 build {
    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"
    57         system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py"
    58 }
    59 
    60 destroot {
    61         if {$env(USER) != "root"} {
    62                 ui_msg "------------------------------------------------------------"
    63                 ui_msg "Note that you are not installing as root, so files installed"
    64                 ui_msg "by this port will not end up with proper ownership and"
    65                 ui_msg "likely not work correctly with Zope."
    66                 ui_msg "------------------------------------------------------------"
    67         }
    68 
    69         # Install product
    70         xinstall -d -m 0755 ${destroot}${zopeprod}
    71         system "cp -R ${worksrcpath}/${prodname} ${destroot}${zopeprod}"
    72         if {$env(USER) == "root"} {
    73                 system "chown -R ${zopeuser} ${destroot}${zopehome}"
    74                 system "chgrp -R ${zopegroup} ${destroot}${zopehome}"
    75         }
    76 }
    77 
Note: See TracChangeset for help on using the changeset viewer.