# -*- 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-singledispatch
version             4.1.2
revision            0
categories-append   devel
platforms           {darwin any}
license             MIT
supported_archs     noarch

python.versions     27 310 311 312

maintainers         {stromnov @stromnov} openmaintainer

description         Backport of functools.singledispatch from Python 3.4
long_description    {*}${description}

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

checksums           rmd160  e14c0e4d9edb4519cc6fd565992ce759a2947068 \
                    sha256  0ad18e5a55c54a836a695a4e7c12faa05adfe88c7eeb64dcd331a4b13934c3b6 \
                    size    18332

if {${name} ne ${subport}} {

    if {${python.version} eq 27} {
        version             3.7.0
        revision            0
        distname            ${python.rootname}-${version}
        checksums           rmd160  91adc369ae8cb49239caed4bc7345ab7dcf37d53 \
                            sha256  c1a4d5c1da310c3fd8fccfb8d4e1cb7df076148fd5d858a819e37fffe44f3092 \
                            size    18013

        depends_build-append \
                            port:py${python.version}-setuptools
        depends_lib-append  port:py${python.version}-six
    } else {
        depends_build-append \
                            port:py${python.version}-coherent.licensed
    }

    depends_build-append \
                        port:py${python.version}-setuptools_scm

    livecheck.type      none
}
