# -*- 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                flynt
version             1.0.6
revision            1

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

description         CLI tool to convert a python project's %-formatted strings to f-strings.
long_description    {*}${description}

homepage            https://github.com/ikamensh/flynt

checksums           rmd160  e2fa09071468765a37b59e851acfef93db1d5b68 \
                    sha256  471b7ff00756678e2912d4261dcbcd8fc1395129b66bf6977f88a3b3ad220c90 \
                    size    25907

python.versions     314
python.pep517_backend hatch

depends_build-append \
                    port:py${python.version}-hatch-vcs

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