# $Id: Portfile 92534 2012-05-01 00:31:23Z jmr@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-tahchee
version			0.9.8
python.versions		25 26 27
python.default_version  27
categories		python www
platforms		darwin
maintainers		gmx.net:alex_a_bordeaux
description		build static web sites with the Cheetah template system
long_description	Tahchee is a tool for developers and Web designers that \
				makes it possible to easily build a static Web site using the \
				Cheetah template system.
homepage		http://www.ivy.fr/tahchee/
master_sites	${homepage}
distname		tahchee-${version}
checksums		sha1 5657fd9b8ae6c2f825f75f06aceace7fa7695d82

if {$subport != $name} {
	depends_lib     port:py${python.version}-cheetah

    extract.post_args	"| tar -xf - --exclude '.MANUAL.txt.swp'"

    post-destroot {
        file delete -force ${destroot}${prefix}/share/doc/${subport}
        file copy ${worksrcpath}/Documentation ${destroot}${prefix}/share/doc/${subport}
        file rename ${destroot}${prefix}/share/doc/${subport}/Example \
            ${destroot}${prefix}/share/doc/${subport}/examples
    }
}

livecheck.type	regex
livecheck.url	http://www.ivy.fr/tahchee/downloads.html
livecheck.regex	tahchee-(\[0-9\.\]+).tar.gz
