# -*- 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.1
revision            0
categories-append   devel
platforms           {darwin any}
license             BSD
supported_archs     noarch

python.versions     27 35 36 37 38 39 310 311

maintainers         {stromnov @stromnov} openmaintainer

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

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

checksums           rmd160  76008a7d3d36ed47d6c7d36a95598f90485ee52c \
                    sha256  637996211036b6385ef91435e4fae22989472f9d571faba8927ba8253acbc330 \
                    size    35016

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
}
