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

    r5851 r6352  
    1 # $Id: Portfile,v 1.1 2004/03/19 07:15:37 rshaw Exp $
     1# $Id: Portfile,v 1.2 2004/04/10 16:43:46 rshaw Exp $
    22PortSystem 1.0
     3PortGroup zope 1.0
    34
    4 name                    zope-cmfplone
    5 version                 2.0-final
    6 categories              www zope python
     5zope.setup              CMFPlone 2.0-final
     6revision                1
    77maintainers             rshaw@opendarwin.org
    88description             A user friendly implementation of the CMF written on top of Zope
     
    1616                                        authentication, Undos, Form validation, amongst \
    1717                                        many many other features.
    18 platforms               darwin freebsd
    19 set prodname    CMFPlone
    2018homepage                http://www.plone.org/
    2119master_sites    sourceforge:plone
    22 dist_subdir             zope
    23 distname                ${prodname}-${version}
     20zope.need_subdir        no
    2421checksums               md5 6636de881af4ca76c79223c994699099
    25 
    26 # Use Python 2.3 from DarwinPorts explicitly
    27 set python              ${prefix}/bin/python2.3
    28 set pythonlib   ${prefix}/lib/python2.3
    29 
    30 # Location to install Zope products and the Zope user                 
    31 set zopehome    ${prefix}/libexec/Zope
    32 set zopeinst    ${prefix}/www/Zope
    33 set zopeprod    ${zopehome}/lib/python/Products
    34 set zopeuser    zope
    35 set zopegroup   www
    36 
    37 # Depends on Zope
    38 depends_build   path:${zopehome}:zope
     22platforms               darwin freebsd
    3923
    4024# Depends on these Zope products
    41 depends_run             path:${zopeprod}/CMFCore:zope-cmf \
    42                                 path:${zopeprod}/Formulator:zope-formulator \
    43                                 path:${zopeprod}/CMFActionIcons:zope-cmfactionicons \
    44                                 path:${zopeprod}/CMFQuickInstallerTool:zope-cmfquickinstallertool \
    45                                 path:${zopeprod}/GroupUserFolder:zope-groupuserfolder \
    46                                 path:${zopeprod}/BTreeFolder2:zope-btreefolder2 \
    47                                 path:${zopeprod}/CMFFormController:zope-cmfformcontroller \
    48                                 path:${zopeprod}/PloneErrorReporting:zope-ploneerrorreporting
     25depends_lib             lib:XXX:zope-cmf \
     26                                lib:XXX:zope-formulator \
     27                                lib:XXX:zope-cmfactionicons \
     28                                lib:XXX:zope-cmfquickinstallertool \
     29                                lib:XXX:zope-groupuserfolder \
     30                                lib:XXX:zope-btreefolder2 \
     31                                lib:XXX:zope-cmfformcontroller \
     32                                lib:XXX:zope-ploneerrorreporting
    4933
    50 platform freebsd {
    51         extract.post_args       | gtar -xf -
    52 }
    53 post-extract {
    54         system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    55         system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
     34variant cvs {
     35        zope.setup_cvs          sourceforge:plone
     36        zope.need_subdir        no
    5637}
    5738
    58 use_configure   no
    59 
    60 build {
    61         file copy -force ${zopehome}/bin/compilezpy.py ${workpath}
    62         reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
    63         system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    64         system "cd ${worksrcpath}/${prodname} && ${python} ${workpath}/compilezpy.py"
    65 }
    66 
    67 destroot {
    68         if {$env(USER) != "root"} {
    69                 ui_msg "------------------------------------------------------------"
    70                 ui_msg "Note that you are not installing as root, so files installed"
    71                 ui_msg "by this port will not end up with proper ownership and"
    72                 ui_msg "likely not work correctly with Zope."
    73                 ui_msg "------------------------------------------------------------"
    74         }
    75 
    76         # Install product
    77         xinstall -d -m 0755 ${destroot}${zopeprod}
    78         system "cp -R ${worksrcpath}/${prodname} ${destroot}${zopeprod}"
    79         if {$env(USER) == "root"} {
    80                 system "chown -R ${zopeuser} ${destroot}${zopehome}"
    81                 system "chgrp -R ${zopegroup} ${destroot}${zopehome}"
    82         }
    83 }
    84 
    85 variant cvs {
    86         version         [clock format [clock seconds] -format %Y%m%d]
    87         distname        ${prodname}-${version}
    88 
    89         fetch.type      cvs
    90         cvs.root        :pserver:anonymous@cvs.sourceforge.net:/cvsroot/plone
    91         cvs.module      ${prodname}
    92         cvs.dir         ${worksrcpath}
    93         pre-fetch {
    94                 file mkdir ${worksrcpath}
    95         }
    96 }
    97 
Note: See TracChangeset for help on using the changeset viewer.