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

python.versions     27 39 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  276dc20efe705a6095aac3f896966a3e8da4be71 \
                    sha256  65f266143752f734b0a7cc83c46f4618af75b8c5911b00ccb61d0ac9b6da0360 \
                    size    56711

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
}
