1 | # $Id: Portfile,v 1.3 2003/08/26 05:03:47 rshaw Exp $ |
---|
2 | PortSystem 1.0 |
---|
3 | name zope-zphotoslides |
---|
4 | version 1.2 |
---|
5 | categories www python zope |
---|
6 | maintainers robert@or.homeip.net |
---|
7 | description Zope web photo gallery product |
---|
8 | long_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. |
---|
15 | platforms darwin |
---|
16 | homepage http://www.zphotoslides.org/ |
---|
17 | distname ZPhotoSlides-${version} |
---|
18 | master_sites sourceforge:zphotoslides |
---|
19 | checksums md5 efa3072fb04e65b5b93f4b0bc1b1069c |
---|
20 | depends_build bin:python2.1:python21 \ |
---|
21 | path:${prefix}/www/Zope:zope |
---|
22 | depends_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 |
---|
25 | configure {} |
---|
26 | |
---|
27 | set python /usr/bin/env\ python2.1 |
---|
28 | set zopehome ${prefix}/www/Zope |
---|
29 | |
---|
30 | pre-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 | |
---|
36 | build { |
---|
37 | system "cd ${workpath} && ${python} ${workpath}/compilezpy.py" |
---|
38 | system "cd ${workpath} && ${python} -O ${workpath}/compilezpy.py" |
---|
39 | } |
---|
40 | |
---|
41 | post-build { |
---|
42 | file rename -force ${workpath}/ZPhotoSlides/batch_slides.py.txt \ |
---|
43 | ${workpath}/ZPhotoSlides/batch_slides.py |
---|
44 | } |
---|
45 | |
---|
46 | destroot { |
---|
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 |
---|