# -*- 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                codespell
version             2.4.2
revision            0

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

description         codespell: check code for common misspellings
long_description    {*}${description}

homepage            https://github.com/codespell-project/codespell/

checksums           rmd160  24a938c43fe63234f54fada7e323a9abaa30574c \
                    sha256  3c33be9ae34543807f088aeb4832dfad8cb2dae38da61cac0a7045dd376cfdf3 \
                    size    352058

python.default_version  314

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

depends_run-append  port:py${python.version}-chardet

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} README.rst \
        COPYING ${destroot}${docdir}
}
