Changeset 5882 for trunk/dports


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

Location:
trunk/dports/zope
Files:
3 edited

Legend:

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

    r5861 r5882  
    1 # $Id: Portfile,v 1.3 2004/03/19 08:00:13 rshaw Exp $
     1# $Id: Portfile,v 1.4 2004/03/20 06:20:56 rshaw Exp $
    22PortSystem 1.0
    33
     
    1111                                        support on Mac OS X.
    1212platforms               darwin freebsd
    13 homepage                http://www.zope.org/Members/svenasse/UserSniffer
    14 master_sites    http://zope.org/Members/svenasse/UserSniffer/${version}
     13set prodname    UserSniffer
     14homepage                http://zope.org/Members/svenasse/${prodname}
     15master_sites    ${homepage}/${version}
    1516dist_subdir             zope
    16 distname                UserSniffer
     17distname                ${prodname}
    1718extract.suffix  .tgz
    18 distfiles               ${distname}${extract.suffix}
    1919checksums               md5 db661c65c07cd5f60df67ca7104781f2
    2020
    2121# Use Python 2.3 from DarwinPorts explicitly
    2222set python              ${prefix}/bin/python2.3
     23set pythonlib   ${prefix}/lib/python2.3
    2324
    2425# Location to install Zope extensions and the Zope user                 
     
    3839        extract.post_args       | gtar -xf -
    3940}
     41extract.dir             ${worksrcpath}
     42pre-extract {
     43        file mkdir ${worksrcpath}
     44}
     45post-extract {
     46        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
     47        system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
     48}
    4049
    4150use_configure   no
    4251
    43 pre-build {
    44         file copy ${zopehome}/bin/compilezpy.py ${workpath}
     52build {
     53        file copy -force ${zopehome}/bin/compilezpy.py ${workpath}
    4554        reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
    46 }
    47 
    48 build {
    49         system "cd ${workpath} && ${python} ${workpath}/compilezpy.py"
     55        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
     56        system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py"
    5057}
    5158
     
    5966        }
    6067
    61         # Install products
     68        # Install extension
    6269        xinstall -d -m 0755 ${destroot}${zopeext}
    63         system "cp -R ${workpath}/${distname}.* ${destroot}${zopeext}"
     70        system "cp -R ${worksrcpath}/${prodname}.* ${destroot}${zopeext}"
    6471        if {$env(USER) == "root"} {
    6572                system "chown -R ${zopeuser} ${destroot}${zopeinst}"
  • 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
  • trunk/dports/zope/zope-zphotoslides/files/patch-__init__.py

    r5825 r5882  
    1 --- __init__.py.orig    Mon Mar 15 08:47:41 2004
    2 +++ __init__.py Mon Mar 15 08:48:10 2004
     1--- ZPhotoSlides/__init__.py.orig       Mon Mar 15 08:47:41 2004
     2+++ ZPhotoSlides/__init__.py    Mon Mar 15 08:48:10 2004
    33@@ -67,7 +67,7 @@
    44             contentConstructors = (ZPhotoSlides.manage_addZPhotoSlides, ZPhotoSlidesFolder.manage_addZPhotoSlidesFolder, )
Note: See TracChangeset for help on using the changeset viewer.