# -*- 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 105440 2013-04-20 13:59:07Z hum@macports.org $

PortSystem          1.0

name                kytea
version             0.4.6
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

master_sites        ${homepage}download/
checksums           rmd160  c2a0ba004548ff410da2ea61923d67cd11f62bc7 \
                    sha256  6fc3297266db8ef075856eba7f68ff02e533c376546b96ba8facc989f8fa43cb

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
