# -*- 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-decorator
version             5.1.0
revision            0
categories-append   devel
platforms           darwin
license             BSD
supported_archs     noarch

python.versions     27 35 36 37 38 39 310

maintainers         {stromnov @stromnov} openmaintainer

description         Decorator factory for signature-preserving decorators.
long_description    ${description}

homepage            https://github.com/micheles/decorator

checksums           rmd160  e83275e0f8770f1ed3824c2033596a516710dbb0 \
                    sha256  e59913af105b9860aa2c8d3272d9de5a56a4e608db9a2f167a8480b323d529a7 \
                    size    34900

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

    if {${python.version} < 36} {
        version             4.4.2
        revision            0
        checksums           rmd160  eb60b82eca66a5105b4f8474690ee5148c16ca24 \
                            sha256  e3a62f0520172440ca0dcc823749319382e377f37f140a0b99ef45fecb84bfe7 \
                            size    33629
    }

    livecheck.type      none
}
