# -*- 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

name                kytea
version             0.4.7
categories          textproc japanese
maintainers         nomaintainer

description         a word segmentation/pronunciation estimation tool
long_description    Kyoto Text Analysis Toolkit (KyTea, pronounced \"cutie\") is \
                    a general toolkit developed for analyzing text, with a focus \
                    on Japanese, Chinese and other languages requiring word or \
                    morpheme segmentation.

homepage            http://www.phontron.com/kytea/
platforms           darwin
license             Apache-2

master_sites        ${homepage}download/
checksums           rmd160  156a22ba3645509eeae9fab34a77b95ceca79cba \
                    sha256  534a33d40c4dc5421f053c71a75695c377df737169f965573175df5d2cff9f46
post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS COPYING ChangeLog NEWS \
        ${destroot}${docdir}
}

livecheck.type      regex
livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
