# -*- 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.0.2
categories-append   devel
license             BSD
maintainers         {jmr @jmroot} openmaintainer
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.

platforms           darwin

homepage            https://palletsprojects.com/p/jinja/
python.rootname     Jinja2

checksums           md5 059f89375d7ea60eb7013f341f0b89e7 \
                    rmd160 4ca81f3485c8c8888b0c9e17aafce1a292431f14 \
                    sha256 827a0e32839ab1600d4eb1c4c33ec5a8edfbc5cb42dafa13b81f182f97784b45

python.versions     27 35 36 37 38 39 310

if {$subport ne $name} {
    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 {
        depends_build-append    port:py${python.version}-setuptools
    }
    depends_lib-append  port:py${python.version}-markupsafe
    livecheck.type  none
}
