# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup           github 1.0
PortGroup           python 1.0

github.setup        sebastien tahchee 1.0.0
name                py-tahchee
# Does not work with python 3
python.versions     27
categories          python www
platforms           darwin
license             BSD
maintainers         nomaintainer

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.

checksums           rmd160  2b3007a1da5578b5deedd57b9bcaf2908ab4ce7d \
                    sha256  27b303ff4d8ca894f5169b513702af76b734637debae4e7d227f6ae998ee1670 \
                    size    141274

if {${name} ne ${subport}} {
    depends_lib-append  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
    }
}
