# -*- 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-fugashi
version             1.5.1
revision            0

categories-append   textproc
license             MIT
maintainers         nomaintainer

description         A Cython MeCab wrapper for fast, pythonic Japanese tokenization.
long_description    fugashi is a Cython wrapper for MeCab, a Japanese \
                    tokenizer and morphological analysis tool.

homepage            https://github.com/polm/fugashi

checksums           rmd160  c51abeca87a1deeda7bd45fdfed98b476b82fcef \
                    sha256  3ff9b4d0e40e04d56d7ced906ae8fba6c6fa41aac46f5210de1b56d6626e7a1f \
                    size    339745

python.versions     310 311 312 313

if {${name} ne ${subport}} {
    patchfiles      patch-pyproject.toml.diff

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

    depends_lib-append \
                    path:lib/libmecab.dylib:mecab-base

    depends_test-append \
                    port:py${python.version}-ipadic

    test.run        yes
}
