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

    r5860 r6352  
    1 # $Id: Portfile,v 1.2 2004/03/19 07:57:04 rshaw Exp $
     1# $Id: Portfile,v 1.3 2004/04/10 16:43:47 rshaw Exp $
    22PortSystem 1.0
     3PortGroup zope 1.0
    34
    4 name                    zope-groupuserfolder
    5 version                 2.0
    6 categories              www zope python
     5zope.setup              GroupUserFolder 2.0
     6revision                1
    77maintainers             rshaw@opendarwin.org
    88description             GroupUserFolder product for Zope CMF/Plone
     
    1111                                        users are "flagged" as GROUP and then normal users \
    1212                                        will be able to belong to one or several groups.
    13 platforms               darwin freebsd
    14 set prodname    GroupUserFolder
    1513homepage                http://sourceforge.net/projects/collective
    1614master_sites    sourceforge:collective
    17 dist_subdir             zope
    18 distname                ${prodname}-${version}
    1915checksums               md5 452d4886bcc8c75d0de965158e7c5b59
    20 
    21 # Use Python 2.3 from DarwinPorts explicitly
    22 set python              ${prefix}/bin/python2.3
    23 set pythonlib   ${prefix}/lib/python2.3
    24 
    25 # Location to install Zope products and the Zope user                 
    26 set zopehome    ${prefix}/libexec/Zope
    27 set zopeinst    ${prefix}/www/Zope
    28 set zopeprod    ${zopehome}/lib/python/Products
    29 set zopeuser    zope
    30 set zopegroup   www
    31 
    32 # Depends on Zope
    33 depends_build   path:${zopehome}:zope
     16platforms               darwin freebsd
    3417
    3518# Depends on these Zope products
    36 depends_run             path:${zopeprod}/CMFCore:zope-cmf
     19depends_lib             lib:XXX:zope-cmf
    3720
    38 platform freebsd {
    39         extract.post_args       | gtar -xf -
    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"
     21variant cvs {
     22        zope.setup_cvs  collective
    4823}
    4924
    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         system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    56         system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py"
    57 }
    58 
    59 destroot {
    60         if {$env(USER) != "root"} {
    61                 ui_msg "------------------------------------------------------------"
    62                 ui_msg "Note that you are not installing as root, so files installed"
    63                 ui_msg "by this port will not end up with proper ownership and"
    64                 ui_msg "likely not work correctly with Zope."
    65                 ui_msg "------------------------------------------------------------"
    66         }
    67 
    68         # Install product
    69         xinstall -d -m 0755 ${destroot}${zopeprod}
    70         system "cp -R ${worksrcpath}/${prodname} ${destroot}${zopeprod}"
    71         if {$env(USER) == "root"} {
    72                 system "chown -R ${zopeuser} ${destroot}${zopehome}"
    73                 system "chgrp -R ${zopegroup} ${destroot}${zopehome}"
    74         }
    75 }
    76 
    77 variant cvs {
    78         version         [clock format [clock seconds] -format %Y%m%d]
    79         distname        ${prodname}-${version}
    80 
    81         fetch.type      cvs
    82         cvs.root        :pserver:anonymous@cvs.sourceforge.net:/cvsroot/collective
    83         cvs.module      ${prodname}
    84         cvs.dir         ${worksrcpath}
    85         pre-fetch {
    86                 file mkdir ${worksrcpath}
    87         }
    88 }
    89 
Note: See TracChangeset for help on using the changeset viewer.