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

    r5878 r6352  
    1 # $Id: Portfile,v 1.4 2004/03/20 04:54:53 rshaw Exp $
     1# $Id: Portfile,v 1.5 2004/04/10 16:43:47 rshaw Exp $
    22PortSystem 1.0
     3PortGroup zope 1.0
    34
    4 name                    zope-localfs
    5 version                 1.1.0
    6 revision                1
    7 categories              www zope python
     5zope.setup              LocalFS 1.1.0
     6revision                2
    87maintainers             rshaw@opendarwin.org
    98description             Zope Local File System folder
     
    1716                                        It also allows you to upload files to the file \
    1817                                        system.
    19 platforms               darwin freebsd
    20 set prodname    LocalFS
    21 homepage                http://sourceforge.net/projects/localfs
    22 master_sites    sourceforge:localfs
    23 dist_subdir             zope
    24 distname                ${prodname}-[strsed ${version} {g/[.]/-/}]
     18homepage                http://sourceforge.net/projects/[string tolower ${zope.product}]
     19master_sites    sourceforge:[string tolower ${zope.product}]
     20distname                ${zope.product}-[strsed ${version} {g/[.]/-/}]
    2521extract.suffix  .tgz
    2622checksums               md5 738c05ad9e4cb59518269bc21fa79a1d
     23platforms               darwin freebsd
    2724
    28 # Use Python 2.3 from DarwinPorts explicitly
    29 set python              ${prefix}/bin/python2.3
    30 set pythonlib   ${prefix}/lib/python2.3
    31 
    32 # Location to install Zope products and the Zope user                 
    33 set zopehome    ${prefix}/libexec/Zope
    34 set zopeinst    ${prefix}/www/Zope
    35 set zopeprod    ${zopehome}/lib/python/Products
    36 set zopeuser    zope
    37 set zopegroup   www
    38 
    39 # Depends on Zope
    40 depends_build   path:${zopehome}:zope
    41 
    42 # Depends on these Zope products
    43 # none
    44 
    45 platform freebsd {
    46         extract.post_args       | gtar -xf -
    47 }
    48 extract.dir             ${worksrcpath}
    49 pre-extract {
    50         file mkdir ${worksrcpath}
    51 }
    5225post-extract {
    53         if {[file exist ${worksrcpath}/lib/python/Products/${prodname}]} {
    54                 file rename ${worksrcpath}/lib/python/Products/${prodname} \
    55                         ${worksrcpath}/${prodname}
     26        if {[file exist ${worksrcpath}/lib/python/Products/${zope.product}]} {
     27                file rename ${worksrcpath}/lib/python/Products/${zope.product} \
     28                        ${worksrcpath}/${zope.product}
     29                file delete -force ${worksrcpath}/lib
    5630        }
    57         system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    58         system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
    5931}
    6032
    6133patchfiles              patch-FSObject.py
    6234
    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 "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py"
     35variant cvs {
     36        zope.setup_cvs  sourceforge:localfs \
     37                                        src/lib/python/Products/${zope.product}
     38        patchfiles              patch-FSObject.py-cvs
    7039}
    7140
    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 
    90 variant cvs {
    91         version         [clock format [clock seconds] -format %Y%m%d]
    92         distname        ${prodname}-${version}
    93 
    94         fetch.type      cvs
    95         cvs.root        :pserver:anonymous@cvs.sourceforge.net:/cvsroot/localfs
    96         cvs.module      src/lib/python/Products/${prodname}
    97         cvs.args        -d ${prodname}
    98         cvs.dir         ${worksrcpath}
    99         pre-fetch {
    100                 file mkdir ${worksrcpath}
    101         }
    102 
    103         patchfiles      patch-FSObject.py-cvs
    104 }
    105 
Note: See TracChangeset for help on using the changeset viewer.