# -*- 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.2.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  31ca66328a59d1ed5b5c446d04fac0dc95d581cd \
                    sha256  645472793b3af40cca121e37df45dd9b20b525c4df99429d9fd9f6b5c238b9ea \
                    size    89129

python.versions     313
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}
}
