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

python.versions     27 310 311 312 313 314

maintainers         {stromnov @stromnov} openmaintainer

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

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

checksums           rmd160  1b7d37a9b8de2e1cf94bb64ffbb686b7f08c4e48 \
                    sha256  4cbcdd55a6efadb9dbea26b858f4fb3264567b52d69ca0d25b721b553f60ea82 \
                    size    58084

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

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

    test.run        yes
    test.args       tests/*.py

    livecheck.type  none
}
