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

    r5852 r6352  
    1 # $Id: Portfile,v 1.1 2004/03/19 07:16:49 rshaw Exp $
     1# $Id: Portfile,v 1.2 2004/04/10 16:43:45 rshaw Exp $
    22PortSystem 1.0
     3PortGroup zope 1.0
    34
    4 name                    zope-cmfactionicons
    5 version                 0.9
    6 categories              www zope python
     5zope.setup              CMFActionIcons 0.9
     6revision                1
    77maintainers             rshaw@opendarwin.org
    88description             CMFActionIcons product for use with Zope CMF/Plone
     
    2121                                        - ZPT macros which build either horizontal or \
    2222                                        vertical icon bars for a set of actions.
     23homepage                http://zope.org/Members/tseaver/${zope.product}
     24master_sites    ${homepage}/${zope.product}-${version}/
     25zope.need_subdir        no
     26checksums               md5 4c33a6daefd75e5ee63a3afb693628f8
    2327platforms               darwin freebsd
    24 set prodname    CMFActionIcons
    25 homepage                http://zope.org/Members/tseaver/${prodname}
    26 master_sites    ${homepage}/${prodname}-${version}/
    27 dist_subdir             zope
    28 distname                ${prodname}-${version}
    29 checksums               md5 4c33a6daefd75e5ee63a3afb693628f8
    30 
    31 # Use Python 2.3 from DarwinPorts explicitly
    32 set python              ${prefix}/bin/python2.3
    33 set pythonlib   ${prefix}/lib/python2.3
    34 
    35 # Location to install Zope products and the Zope user                 
    36 set zopehome    ${prefix}/libexec/Zope
    37 set zopeinst    ${prefix}/www/Zope
    38 set zopeprod    ${zopehome}/lib/python/Products
    39 set zopeuser    zope
    40 set zopegroup   www
    41 
    42 # Depends on Zope
    43 depends_build   path:${zopehome}:zope
    4428
    4529# Depends on these Zope products
    46 depends_run             path:${zopeprod}/CMFCore:zope-cmf
     30depends_lib             lib:XXX:zope-cmf
    4731
    48 platform freebsd {
    49         extract.post_args       | gtar -xf -
    50 }
    51 post-extract {
    52         system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    53         system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
     32variant cvs {
     33        zope.setup_cvs  zope
    5434}
    5535
    56 use_configure   no
    57 
    58 build {
    59         file copy -force ${zopehome}/bin/compilezpy.py ${workpath}
    60         reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
    61         system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    62         system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py"
    63 }
    64 
    65 destroot {
    66         if {$env(USER) != "root"} {
    67                 ui_msg "------------------------------------------------------------"
    68                 ui_msg "Note that you are not installing as root, so files installed"
    69                 ui_msg "by this port will not end up with proper ownership and"
    70                 ui_msg "likely not work correctly with Zope."
    71                 ui_msg "------------------------------------------------------------"
    72         }
    73 
    74         # Install product
    75         xinstall -d -m 0755 ${destroot}${zopeprod}
    76         system "cp -R ${worksrcpath}/${prodname} ${destroot}${zopeprod}"
    77         if {$env(USER) == "root"} {
    78                 system "chown -R ${zopeuser} ${destroot}${zopehome}"
    79                 system "chgrp -R ${zopegroup} ${destroot}${zopehome}"
    80         }
    81 }
    82 
    83 variant cvs {
    84         version         [clock format [clock seconds] -format %Y%m%d]
    85         distname        ${prodname}-${version}
    86 
    87         fetch.type      cvs
    88         cvs.root        :pserver:anonymous@cvs.zope.org:/cvs-repository
    89         cvs.module      Products/${prodname}
    90         cvs.args        -d ${prodname}
    91         cvs.dir         ${worksrcpath}
    92         pre-fetch {
    93                 file mkdir ${worksrcpath}
    94         }
    95 }
    96 
Note: See TracChangeset for help on using the changeset viewer.