# -*- 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-jinja2
version             3.1.4
categories-append   devel
license             BSD
maintainers         {jmr @jmroot} openmaintainer
platforms           {darwin any}
supported_archs     noarch

description         Python based sandboxed template engine
long_description \
    Jinja is a sandboxed template engine written in pure Python licensed\
    under the BSD license. It provides a Django-like non-XML syntax and\
    compiles templates into executable python code. It's basically a\
    combination of Django templates and python code.

homepage            https://palletsprojects.com/p/jinja/

checksums           md5 02ca9a6364c92e83d14b037bef4732bc \
                    rmd160 c8636272a7b4b1257624612fe92f5409ac80e7b5 \
                    sha256 4a3aee7acbbe7303aede8e9648d13b8bf88a429282aa6122a993f0ac800cb369

python.versions     27 36 37 38 39 310 311 312
python.pep517_backend   flit

if {$subport ne $name} {
    if {${python.version} == 36} {
        version     3.0.3
        revision    0
        checksums   md5 b76ae2f0647abebc81e7c03f5fb7b00f \
                    rmd160 55e0346653a9baed024bcaf88d19f673ad7437fc \
                    sha256 611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7
        depends_build-append    port:py${python.version}-setuptools
    } elseif {${python.version} == 27} {
        version     2.11.3
        revision    0
        checksums   md5 231dc00d34afb2672c497713fa9cdaaa \
                    rmd160 7e7b17e8c0338dc01f36ce5593bb8cba7c963c45 \
                    sha256 a6d58433de0ae800347cab1fa3043cebbabe8baa9d29e668f1c768cb87a333c6
        depends_lib-append  port:py${python.version}-setuptools
    }
    if {${python.version} < 37} {
        python.rootname     Jinja2
    }
    depends_lib-append  port:py${python.version}-markupsafe
    livecheck.type  none
}
