# -*- 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.2
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  f8727f75d971387be4951b0e13fd2f48d18190a4 \
                    sha256  f1a6c9d391e661cc5b8d39861ff077a7dc24dc23833ccee564b234b81c82dfe3 \
                    size    16801

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
    }
}
