Ticket #834: Portfile

File Portfile, 1.8 KB (added by robert@…, 21 years ago)

ATTACHMENT: www/zope-zphotoslides-1.2

Line 
1# $Id: Portfile,v 1.3 2003/08/26 05:03:47 rshaw Exp $
2PortSystem 1.0
3name            zope-zphotoslides
4version         1.2
5categories      www python zope
6maintainers     robert@or.homeip.net
7description     Zope web photo gallery product
8long_description        ZPhotoSlides is a web photo gallery for the \
9                        dynamic web-based server Zope. ZPhotoSlides will \
10                        help you to show to all your friends and familly \
11                        your best photos in a nice environment, to \
12                        thumbnailize them, modify them (Apply filters, \
13                        rotate, resize...) within your browser and \
14                        accessible wherever you are.
15platforms       darwin
16homepage        http://www.zphotoslides.org/
17distname        ZPhotoSlides-${version}
18master_sites    sourceforge:zphotoslides
19checksums       md5 efa3072fb04e65b5b93f4b0bc1b1069c
20depends_build   bin:python2.1:python21 \
21                path:${prefix}/www/Zope:zope
22depends_run     bin:convert:ImageMagick \
23                path:${prefix}/lib/python2.1/site-packages/PIL:py21-pil \
24                path:${prefix}/www/Zope/lib/python/Products/LocalFS:zope-localfs
25configure       {}
26
27set python      /usr/bin/env\ python2.1
28set zopehome    ${prefix}/www/Zope
29
30pre-build {
31        system  "cp ${zopehome}/inst/compilezpy.py ${workpath}"
32        file rename -force ${workpath}/ZPhotoSlides/batch_slides.py \
33                ${workpath}/ZPhotoSlides/batch_slides.py.txt
34}
35
36build {
37        system  "cd ${workpath} && ${python} ${workpath}/compilezpy.py"
38        system  "cd ${workpath} && ${python} -O ${workpath}/compilezpy.py"
39}
40
41post-build {
42        file rename -force ${workpath}/ZPhotoSlides/batch_slides.py.txt \
43                ${workpath}/ZPhotoSlides/batch_slides.py
44}
45
46destroot        {
47        set zopebase    ${destroot}${zopehome}
48        set productsdir ${zopebase}/lib/python/Products
49        set zopeuser    zope
50   
51        # Copy Plone products into the Products directory
52        system  "install -d ${productsdir}"
53        system  "cp -R ${workpath}/ZPhotoSlides ${productsdir}"
54        system  "cd ${zopebase} && chown -R zope lib"
55        system  "cd ${zopebase} && chgrp -R www lib"
56}
57# vim: ts=8 sw=8