# $Id: Portfile 30249 2007-10-23 02:12:47Z jmpp@macports.org $

PortSystem 1.0
PortGroup python24 1.0

name			py-xtemplate
version			0.1.0
revision		1
categories		python
platforms		darwin freebsd
maintainers		nomaintainer
description		python port for PHP XTemplate
long_description	${description}

homepage		http://pyhacks.suddenthinks.com/blog/misc/20040816-xtplv010.html
master_sites	http://pyhacks.suddenthinks.com/misc/
distname		XTemplate4Python-${version}
checksums		md5 e0dca9bf6a0b55db66d9ca2532805b1f

patchfiles		patch-setup.py

post-destroot	{
	xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 -W ${worksrcpath}/examples ex1.py ex1.xtpl ex2.py \
		ex2.xtpl ex3.py ex3.xtpl ex4.py ex4.xtpl ex5.py ex5.xtpl ex6.py \
		ex6.xtpl ex7-inc.xtpl ex7-inc2.xtpl ex7.py ex7.xtpl \
		${destroot}${prefix}/share/doc/${name}/examples
}
