# -*- 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 118291 2014-03-29 11:34:32Z hum@macports.org $

PortSystem          1.0

name                kytea
version             0.4.6
revision            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.4.6 silent update
dist_subdir   ${name}/${version}_1

master_sites        ${homepage}download/
checksums           rmd160  c353eb5143cfaf0a3b3f310a3211adc5f4aa548a \
                    sha256  4327bd1124e546121354516e784b2dc01a62a36740b26a7c6d44350c2442cd58

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

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