# -*- 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-unidic
version             1.1.0
revision            0

categories-append   textproc
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         nomaintainer

description         UniDic packaged for Python
long_description    {*}${description}

homepage            https://github.com/polm/unidic-py

checksums           rmd160  be686649a2635e737ca01531b972216608a47a95 \
                    sha256  0ab91c05de342c84d2a6314901fd3afb9061ecd7534dd4a0431dccbb87d921b7 \
                    size    7688

python.versions     310 311

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-plac \
                    port:py${python.version}-tqdm \
                    port:py${python.version}-wasabi

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