# -*- 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.3.0
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  a0c8e36e7c5d05cfc1cc1e88cceb57235e6e81dc \
                    sha256  825288246b5debc9436f91967650974ef0d5636458502619e322c476f1283891 \
                    size    60696

python.versions     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}
    }
}
