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

    r5879 r6352  
    1 # $Id: Portfile,v 1.4 2004/03/20 05:50:16 rshaw Exp $
     1# $Id: Portfile,v 1.5 2004/04/10 16:43:48 rshaw Exp $
    22PortSystem 1.0
     3PortGroup zope 1.0
    34
    4 name                    zope-plonewebmail
    5 version                 0.93
    6 categories              www zope python
     5zope.setup              PloneWebMail 0.93
     6revision                1
     7categories-append       mail
    78maintainers             rshaw@opendarwin.org
    89description             Plone web email product
     
    1718                                        - Basic addressbook \
    1819                                        - i18n implementation
    19 platforms               darwin freebsd
    20 set prodname    PloneWebMail
    2120homepage                http://plonewebmail.1000asa.com/
    2221master_sites    ${homepage}/Members/lortymanager/
    23 dist_subdir             zope
    24 distname                ${prodname}-${version}
    2522checksums               md5 1230f3916221fcb4a50631896501dd43
    26 
    27 # Use Python 2.3 from DarwinPorts explicitly
    28 set python              ${prefix}/bin/python2.3
    29 set pythonlib   ${prefix}/lib/python2.3
    30 
    31 # Location to install Zope products and the Zope user                 
    32 set zopehome    ${prefix}/libexec/Zope
    33 set zopeinst    ${prefix}/www/Zope
    34 set zopeprod    ${zopehome}/lib/python/Products
    35 set zopeuser    zope
    36 set zopegroup   www
    37 
    38 # Depends on Zope
    39 depends_build   path:${zopehome}:zope
     23platforms               darwin freebsd
    4024
    4125# Depends on these Zope products
    42 depends_run             path:${zopeprod}/CMFPlone:zope-cmfplone
    43 
    44 platform freebsd {
    45         extract.post_args       | gtar -xf -
    46 }
    47 extract.dir             ${worksrcpath}
    48 pre-extract {
    49         file mkdir ${worksrcpath}
    50 }
    51 post-extract {
    52         system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    53         system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
    54 }
     26depends_lib             lib:XXX:zope-cmfplone
    5527
    5628patchfiles              patch-top_bar.diff \
    5729                                patch-addressbook.diff
    5830post-patch {
     31        cd ${worksrcpath}
     32        system "rm -rf ${zope.product}/skins/${zope.product}/img/.xvpics"
    5933        file copy ${filespath}/addcontact.png \
    60                 ${worksrcpath}/${prodname}/skins/${prodname}/img/
     34                ${zope.product}/skins/${zope.product}/img/
     35        system "find ${worksrcpath} -type f | xargs chmod a+r"
    6136}
    6237
    63 use_configure   no
    64 
    65 build {
    66         file copy -force ${zopehome}/bin/compilezpy.py ${workpath}
    67         reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
    68         system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    69         system "find ${worksrcpath} -type f | xargs chmod a+r"
    70         system "rm -rf ${worksrcpath}/${prodname}/skins/${prodname}/img/.xvpics"
    71         system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py"
    72 }
    73 
    74 destroot {
    75         if {$env(USER) != "root"} {
    76                 ui_msg "------------------------------------------------------------"
    77                 ui_msg "Note that you are not installing as root, so files installed"
    78                 ui_msg "by this port will not end up with proper ownership and"
    79                 ui_msg "likely not work correctly with Zope."
    80                 ui_msg "------------------------------------------------------------"
    81         }
    82 
    83         # Install product
    84         xinstall -d -m 0755 ${destroot}${zopeprod}
    85         system "cp -R ${worksrcpath}/${prodname} ${destroot}${zopeprod}"
    86         if {$env(USER) == "root"} {
    87                 system "chown -R ${zopeuser} ${destroot}${zopehome}"
    88                 system "chgrp -R ${zopegroup} ${destroot}${zopehome}"
    89         }
    90 }
    91 
Note: See TracChangeset for help on using the changeset viewer.