# -*- 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-contextlib2
version             21.6.0
revision            1
categories-append   devel
platforms           {darwin any}
license             PSF
supported_archs     noarch

python.versions     27 310 311 312 313

maintainers         {stromnov @stromnov} openmaintainer

description         Backports and enhancements for the contextlib module
long_description    {*}${description}

homepage            https://contextlib2.readthedocs.org/

checksums           rmd160  0ab3f6f4d6e6fc45a8235f90f56af40863f25da5 \
                    sha256  ab1e2bfe1d01d968e1b7e8d9023bc51ef3509bba217bb730cee3827e1ee82869 \
                    size    43795

if {${name} ne ${subport}} {
    if {${python.version} == 27 } {
        version             0.6.0.post1
        revision            0
        checksums           rmd160  c4fcdd0b568e07cb88b7e02ae29c1fe45a3fd564 \
                            sha256  01f490098c18b19d2bd5bb5dc445b2054d2fa97f09a4280ba2c5f3c394c8162e \
                            size    29670
        depends_build-append \
                            port:py${python.version}-setuptools
    }

    test.run            yes

    livecheck.type      none
}
