# -*- 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.1
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  ad436963cfee3c07dce0d4a6a947fc84b2931b00 \
                    sha256  8605ef2cf40804403340396b9cf51b13bd5d0f5f6a84f8b4447484b7ba94bc79 \
                    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}
}
