# -*- 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                juman
version             7.01
categories          textproc japanese
platforms           darwin
maintainers         nomaintainer
license             BSD

homepage            http://nlp.ist.i.kyoto-u.ac.jp/index.php?JUMAN
description         a user-extensible morphological analyzer for Japanese
long_description    JUMAN is ${description}.

master_sites        http://nlp.ist.i.kyoto-u.ac.jp/nl-resource/juman/
use_bzip2           yes
checksums           rmd160  f1b5a96691c4d718d4dd492b6a908c2aaeb72267 \
                    sha256  64bee311de19e6d9577d007bb55281e44299972637bd8a2a8bc2efbad2f917c6

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

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