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

    r5882 r6352  
    1 # $Id: Portfile,v 1.7 2004/03/20 06:16:59 rshaw Exp $
     1# $Id: Portfile,v 1.8 2004/04/10 16:43:49 rshaw Exp $
    22PortSystem 1.0
     3PortGroup zope 1.0
    34
    4 name                    zope-zphotoslides
    5 version                 1.3
    6 categories              www zope python graphics
     5zope.setup              ZPhotoSlides 1.3
     6revision                1
     7categories-append       graphics
    78maintainers             rshaw@opendarwin.org
    89description             Zope web photo gallery product
     
    1415                                        rotate, resize...) within your browser and \
    1516                                        accessible wherever you are.
    16 platforms               darwin freebsd
    17 set prodname    ZPhotoSlides
    1817homepage                http://www.zphotoslides.org/
    1918master_sites    sourceforge:zphotoslides
    20 dist_subdir             zope
    21 distname                ${prodname}-${version}
    2219checksums               md5 c2be3084f144ecfe1a97b4b6439fe659
    23 
    24 # Use Python 2.3 from DarwinPorts explicitly
    25 set python              ${prefix}/bin/python2.3
    26 set pythonlib   ${prefix}/lib/python2.3
    27 
    28 # Location to install Zope products and the Zope user                 
    29 set zopehome    ${prefix}/libexec/Zope
    30 set zopeinst    ${prefix}/www/Zope
    31 set zopeprod    ${zopehome}/lib/python/Products
    32 set zopeuser    zope
    33 set zopegroup   www
    34 
    35 # Depends on Zope
    36 depends_build   path:${zopehome}:zope
     20platforms               darwin freebsd
    3721
    3822# Depends on these Zope products, Python modules, and external programs
    39 depends_run             path:${zopeprod}/Localizer:zope-localizer \
    40                                 path:${zopeprod}/stripogram:zope-stripogram \
    41                                 path:${pythonlib}/site-packages/PIL:py-pil \
    42                                 bin:convert:ImageMagick
    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 }
     23depends_lib             lib:XXX:zope-localizer \
     24                                lib:XXX:zope-stripogram \
     25                                lib:XXX:py-pil
     26depends_run             bin:convert:ImageMagick
    5527
    5628patchfiles              patch-__init__.py
    5729post-patch {
    5830        reinplace "s|/usr/local|${prefix}|" \
    59                 ${worksrcpath}/${prodname}/ZPhotoSlides.py
     31                ${worksrcpath}/${zope.product}/${zope.product}.py
    6032}
    6133
    6234use_configure   no
    6335
    64 build {
    65         file copy -force ${zopehome}/bin/compilezpy.py ${workpath}
    66         reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
    67         system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    68         file rename -force ${worksrcpath}/${prodname}/batch_slides.py \
    69                 ${worksrcpath}/${prodname}/batch_slides.py.txt
    70         system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py"
    71         file rename -force ${worksrcpath}/${prodname}/batch_slides.py.txt \
    72                 ${worksrcpath}/${prodname}/batch_slides.py
     36pre-build {
     37        file rename -force ${worksrcpath}/${zope.product}/batch_slides.py \
     38                ${worksrcpath}/${zope.product}/batch_slides.py.txt
     39}
     40post-build {
     41        file rename -force ${worksrcpath}/${zope.product}/batch_slides.py.txt \
     42                ${worksrcpath}/${zope.product}/batch_slides.py
    7343}
    7444
    75 destroot {
    76         if {$env(USER) != "root"} {
    77                 ui_msg "------------------------------------------------------------"
    78                 ui_msg "Note that you are not installing as root, so files installed"
    79                 ui_msg "by this port will not end up with proper ownership and"
    80                 ui_msg "likely not work correctly with Zope."
    81                 ui_msg "------------------------------------------------------------"
    82         }
    83 
    84         # Install product
    85         xinstall -d -m 0755 ${destroot}${zopeprod}
    86         system "cp -R ${worksrcpath}/${prodname} ${destroot}${zopeprod}"
    87         if {$env(USER) == "root"} {
    88                 system "chown -R ${zopeuser} ${destroot}${zopehome}"
    89                 system "chgrp -R ${zopegroup} ${destroot}${zopehome}"
    90         }
    91 }
    92 
Note: See TracChangeset for help on using the changeset viewer.