Ignore:
Timestamp:
Mar 20, 2004, 6:20:56 AM (16 years ago)
Author:
rshaw
Message:

Updates Portfile format/code to match newer Zope product ports.
No installed files change, no revision bump required.

Submitted by: rshaw

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/zope/zope-zphotoslides/Portfile

    r5861 r5882  
    1 # $Id: Portfile,v 1.6 2004/03/19 08:00:15 rshaw Exp $
     1# $Id: Portfile,v 1.7 2004/03/20 06:16:59 rshaw Exp $
    22PortSystem 1.0
    33
     
    1414                                        rotate, resize...) within your browser and \
    1515                                        accessible wherever you are.
    16 platforms               darwin
     16platforms               darwin freebsd
     17set prodname    ZPhotoSlides
    1718homepage                http://www.zphotoslides.org/
    1819master_sites    sourceforge:zphotoslides
    1920dist_subdir             zope
    20 set prodname    ZPhotoSlides
    2121distname                ${prodname}-${version}
    2222checksums               md5 c2be3084f144ecfe1a97b4b6439fe659
    23 worksrcdir              ${prodname}
    2423
    2524# Use Python 2.3 from DarwinPorts explicitly
     
    4342                                bin:convert:ImageMagick
    4443
     44platform freebsd {
     45        extract.post_args       | gtar -xf -
     46}
     47extract.dir             ${worksrcpath}
     48pre-extract {
     49        file mkdir ${worksrcpath}
     50}
     51post-extract {
     52        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
     53        system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
     54}
     55
    4556patchfiles              patch-__init__.py
    4657post-patch {
    47         reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/ZPhotoSlides.py
     58        reinplace "s|/usr/local|${prefix}|" \
     59                ${worksrcpath}/${prodname}/ZPhotoSlides.py
    4860}
    4961
    5062use_configure   no
    5163
    52 pre-build {
    53         file copy ${zopehome}/bin/compilezpy.py ${workpath}
     64build {
     65        file copy -force ${zopehome}/bin/compilezpy.py ${workpath}
    5466        reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
    5567        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
    56         cd ${worksrcpath}
    57         file rename -force batch_slides.py batch_slides.py.txt
    58 }
    59 
    60 build {
     68        file rename -force ${worksrcpath}/${prodname}/batch_slides.py \
     69                ${worksrcpath}/${prodname}/batch_slides.py.txt
    6170        system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py"
    62 }
    63 
    64 post-build {
    65         cd ${worksrcpath}
    66         file rename -force batch_slides.py.txt batch_slides.py
     71        file rename -force ${worksrcpath}/${prodname}/batch_slides.py.txt \
     72                ${worksrcpath}/${prodname}/batch_slides.py
    6773}
    6874
     
    7682        }
    7783
    78         # Install products
     84        # Install product
    7985        xinstall -d -m 0755 ${destroot}${zopeprod}
    80         system "cp -R ${workpath}/${prodname} ${destroot}${zopeprod}"
     86        system "cp -R ${worksrcpath}/${prodname} ${destroot}${zopeprod}"
    8187        if {$env(USER) == "root"} {
    8288                system "chown -R ${zopeuser} ${destroot}${zopehome}"
    8389                system "chgrp -R ${zopegroup} ${destroot}${zopehome}"
    8490        }
    85 } 
     91}
    8692
Note: See TracChangeset for help on using the changeset viewer.