# -*- 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.6
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 66d4c25ff43d1deaf9637ccda523dec8 \
                    rmd160 d66dc8d30b1a786be459ddfb50864dc93ad5e450 \
                    sha256 0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d

python.versions     27 36 37 38 39 310 311 312 313 314
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
}
