# -*- 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                pyupgrade
version             3.21.2
revision            1

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

description         A tool to automatically upgrade syntax for newer versions.
long_description    {*}${description}

homepage            https://github.com/asottile/pyupgrade

checksums           rmd160  636c14e9c6387b79114ae8f5f336aef993496f9d \
                    sha256  1a361bea39deda78d1460f65d9dd548d3a36ff8171d2482298539b9dc11c9c06 \
                    size    45455

python.default_version  314

depends_lib-append  port:py${python.version}-tokenize-rt

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