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-cvsfile/Portfile

    r5859 r6352  
    1 # $Id: Portfile,v 1.3 2004/03/19 07:55:52 rshaw Exp $
     1# $Id: Portfile,v 1.4 2004/04/10 16:43:46 rshaw Exp $
    22PortSystem 1.0
     3PortGroup zope 1.0
    34
    4 name                    zope-cvsfile
    5 version                 0.9.0
    6 categories              www zope python
     5zope.setup              CVSFile 0.9.0
     6revision                1
    77maintainers             rshaw@opendarwin.org
    88description             This is the CVSFile Zope Product.
     
    2020                                        object like File, Page Template,or DTMLMethod, but \
    2121                                        points to external content in the filesystem.
     22homepage                http://zope.org/Members/arielpartners/${zope.product}
     23master_sites    ${homepage}/${version}/
     24distname                ${zope.product}-[strsed ${version} {g/[.]/-/}]
     25use_zip                 yes
     26checksums               md5 e2841081d9b038c8a1acee97ff4b0e17
    2227platforms               darwin freebsd
    23 set prodname    CVSFile
    24 homepage                http://zope.org/Members/arielpartners/${prodname}
    25 master_sites    ${homepage}/${version}/
    26 dist_subdir             zope
    27 extract.suffix  .zip
    28 use_zip                 yes
    29 distname                ${prodname}-[strsed ${version} {g/[.]/-/}]
    30 checksums               md5 e2841081d9b038c8a1acee97ff4b0e17
    31 
    32 # Use Python 2.3 from DarwinPorts explicitly
    33 set python              ${prefix}/bin/python2.3
    34 set pythonlib   ${prefix}/lib/python2.3
    35 
    36 # Location to install Zope products and the Zope user                 
    37 set zopehome    ${prefix}/libexec/Zope
    38 set zopeinst    ${prefix}/www/Zope
    39 set zopeprod    ${zopehome}/lib/python/Products
    40 set zopeuser    zope
    41 set zopegroup   www
    42 
    43 # Depends on Zope
    44 depends_build   path:${zopehome}:zope
    4528
    4629# Depends on these Zope products and external programs
    47 depends_run             path:${zopeprod}/ExternalFile:zope-externalfile \
    48                                 bin:cvs:cvs
     30depends_lib             lib:XXX:zope-externalfile
     31depends_run             bin:cvs:cvs
    4932
    50 platform freebsd {
    51         extract.post_args       | gtar -xf -
    52 }
    53 extract.dir             ${worksrcpath}
    54 pre-extract {
    55         file mkdir ${worksrcpath}
    56 }
    57 post-extract {
    58         system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    59         system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
     33post-patch {
     34        reinplace "s|'tests'|& and name != 'extras'|" ${workpath}/compilezpy.py
    6035}
    6136
    62 use_configure   no
    63 
    64 build {
    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"
    69         system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py"
    70 }
    71 
    72 destroot {
    73         if {$env(USER) != "root"} {
    74                 ui_msg "------------------------------------------------------------"
    75                 ui_msg "Note that you are not installing as root, so files installed"
    76                 ui_msg "by this port will not end up with proper ownership and"
    77                 ui_msg "likely not work correctly with Zope."
    78                 ui_msg "------------------------------------------------------------"
    79         }
    80 
    81         # Install product
    82         xinstall -d -m 0755 ${destroot}${zopeprod}
    83         system "cp -R ${worksrcpath}/${prodname} ${destroot}${zopeprod}"
    84         if {$env(USER) == "root"} {
    85                 system "chown -R ${zopeuser} ${destroot}${zopehome}"
    86                 system "chgrp -R ${zopegroup} ${destroot}${zopehome}"
    87         }
    88 }
    89 
Note: See TracChangeset for help on using the changeset viewer.