# -*- 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
# $Id: Portfile 91570 2012-04-05 15:50:28Z hum@macports.org $

PortSystem          1.0

name                kytea
version             0.4.1
categories          textproc japanese
maintainers         hum openmaintainer

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.0

master_sites        ${homepage}download/
checksums           rmd160  66c14ac1b65630d641a674fa5e1d6a5131dd6489 \
                    sha256  a16ce14063beb651adc1c6be07201b181d84359350921000e56e2a1e3b312d24

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS COPYING ChangeLog NEWS README \
        ${docdir}
}

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
