# -*- 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.2
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/
python.rootname     Jinja2

checksums           md5 d31148abd89c1df1cdb077a55db27d02 \
                    rmd160 833e083e218d42721449141f03677e29b24b7137 \
                    sha256 31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852

python.versions     27 35 36 37 38 39 310

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