# -*- 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 115242 2013-12-30 03:16:22Z hum@macports.org $

PortSystem          1.0

name                zunda
version             1.0
categories          textproc japanese
maintainers         hum openmaintainer

description         Japanese Extended Modality Analyzer
long_description    ${description}

homepage            https://code.google.com/p/zunda/
platforms           darwin
license             BSD

master_sites        http://www.cl.ecei.tohoku.ac.jp/stmap/dist/
checksums           rmd160  38c3fc6026e6c206cd7cf2dc8c13921d81367953 \
                    sha256  5eb4e783d97f6bb20ca6546e9479da63c3d69a4244315c36fba4bdd793a344e3

depends_lib         port:boost port:cabocha

patchfiles          patch-configure.diff \
                    patch-src_Makefile.in.diff

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

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