# -*- 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                py-enchant
python.rootname     pyenchant
version             3.2.2
revision            0

categories-append   textproc
platforms           {darwin any}
supported_archs     noarch
license             LGPL-2.1+
maintainers         {reneeotten @reneeotten} openmaintainer

description         Python bindings for the Enchant spellchecking system
long_description    PyEnchant is a spellchecking library for Python, \
                    based on the excellent Enchant library.

homepage            https://pyenchant.github.io/pyenchant/

checksums           rmd160  1add5ffb4901bd5a00cb69be28576643488ac34c \
                    sha256  1cf830c6614362a78aab78d50eaf7c6c93831369c52e1bb64ffae1df0341e637 \
                    size    49580

python.versions     39 310 311 312 313

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:enchant2

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