# $Id: Portfile 67042 2010-04-27 23:02:18Z ryandesign@macports.org $
PortSystem 1.0
PortGroup zope 1.0

zope.setup		ZPhotoSlides 1.3
revision		3
categories-append	graphics
maintainers		nomaintainer
description		Zope web photo gallery product
long_description	ZPhotoSlides is a web photo gallery for the \
					dynamic web-based server Zope. ZPhotoSlides will \
					help you to show to all your friends and familly \
					your best photos in a nice environment, to \
					thumbnailize them, modify them (Apply filters, \
					rotate, resize...) within your browser and \
					accessible wherever you are.
homepage		http://www.zphotoslides.org/
master_sites	sourceforge:zphotoslides
checksums		md5 c2be3084f144ecfe1a97b4b6439fe659
platforms		darwin freebsd

depends_lib-append		port:zope-localizer \
				port:zope-stripogram \
				port:py-pil
depends_run		bin:convert:ImageMagick

patchfiles		patch-__init__.py
post-patch {
	reinplace "s|/usr/local|${prefix}|" \
		${worksrcpath}/${zope.product}/${zope.product}.py
	file rename ${worksrcpath}/${zope.product}/README \
		${worksrcpath}/${zope.product}/README.txt
}

use_configure	no

pre-build {
	file rename -force ${worksrcpath}/${zope.product}/batch_slides.py \
		${worksrcpath}/${zope.product}/batch_slides.py.txt
}
post-build {
	file rename -force ${worksrcpath}/${zope.product}/batch_slides.py.txt \
		${worksrcpath}/${zope.product}/batch_slides.py
}

