# -*- 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           python 1.0

name                py-cheetah
python.rootname     Cheetah3
version             3.2.6.post1
checksums           rmd160  280c221d47dd24d46f9b7e135effd4048fd1a8ef \
                    sha256  58b5d84e5fbff6cf8e117414b3ea49ef51654c02ee887d155113c5b91d761967 \
                    size    295992
revision            0

categories-append   www
platforms           darwin
license             MIT
maintainers         {emcrisostomo @emcrisostomo} {michaelld @michaelld} openmaintainer

description         Cheetah is a Python-powered template engine and \
                    code generator
long_description    Cheetah is a Python-powered template engine and \
                    code generator. It can be used as a standalone \
                    utility or it can be combined with other tools. \
                    Cheetah has many potential uses, but web \
                    developers looking for a viable alternative to \
                    ASP, JSP, PHP and PSP are expected to be its \
                    principle user group.

homepage            https://www.cheetahtemplate.org/
master_sites        pypi:C/Cheetah3/
distname            Cheetah3-${version}

python.versions     27 35 36 37 38 39

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} ANNOUNCE.rst \
            BUGS LICENSE README.rst TODO ${destroot}${docdir}
    }

    livecheck.type  none
}
