# -*- 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-jaraco.context
version             6.1.0
revision            0

categories-append   devel
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         Context managers by jaraco
long_description    {*}${description}

homepage            https://github.com/jaraco/jaraco.context

distname            jaraco_context-${version}

checksums           rmd160  6564c0e835b8a5fc34148412d6a3d49fdf23cbe5 \
                    sha256  129a341b0a85a7db7879e22acd66902fda67882db771754574338898b2d5d86f \
                    size    15850

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-setuptools_scm \
                    port:py${python.version}-coherent.licensed

    if {${python.version} < 312} {
        depends_lib-append  port:py${python.version}-backports.tarfile
    }
}
