# -*- 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-mako
version             1.3.10
revision            0
categories-append   www
license             MIT
supported_archs     noarch
platforms           {darwin any}

python.versions     27 39 310 311 312 313

maintainers         {stromnov @stromnov} openmaintainer

description         A super-fast templating language that borrows \
                    the best ideas from the existing templating \
                    languages.

long_description    Mako is a template library written in Python. \
                    It provides a familiar, non-XML syntax which \
                    compiles into Python modules for maximum \
                    performance. Mako's syntax and API borrows from \
                    the best ideas of many others, including Django \
                    templates, Cheetah, Myghty, and Genshi. Conceptually, \
                    Mako is an embedded Python (i.e. Python Server Page) \
                    language, which refines the familiar ideas of \
                    componentized layout and inheritance to produce one \
                    of the most straightforward and flexible models \
                    available, while also maintaining close ties to \
                    Python calling and scoping semantics.

homepage            https://www.makotemplates.org/

checksums           rmd160  56de463ae2c79e144c681dd7e92b165e4f63c991 \
                    sha256  99579a6f39583fa7e5630a28c3c1f440e4e97a414b80372649c0ce338da2ea28 \
                    size    392474

if {${name} ne ${subport}} {

    if {${python.version} eq 27} {
        version             1.1.6
        revision            0
        python.rootname     Mako
        checksums           rmd160  542024ab96ad5443cc44210f927b25915f5ce70e \
                            sha256  4e9e345a41924a954251b95b4b28e14a301145b544901332e658907a7464b6b2 \
                            size    495132
        python.pep517       no
        depends_lib-append  port:py${python.version}-setuptools \
                            port:py${python.version}-beaker
    } else {
        patchfiles          patch-wheel-pyproject.toml.diff
    }

    depends_lib-append  port:py${python.version}-markupsafe

    livecheck.type      none
}
