# -*- 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                refurb
version             2.3.0
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             GPL-3
maintainers         {reneeotten @reneeotten} openmaintainer

description         A tool for refurbish and modernize Python codebases
long_description    {*}${description}

homepage            https://github.com/dosisod/refurb

checksums           rmd160  66bf979cf96f858e0afd790af143b54c62a193c8 \
                    sha256  c6225698b7334760511038d8d5db75bc1524cc842e668fff27cda85fae29bef5 \
                    size    90117

python.versions     314
python.pep517_backend   poetry

depends_lib-append \
                port:py${python.version}-mypy

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} README.md \
        LICENSE ${destroot}${docdir}
}
