# -*- 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                KNBC
version             1.0_090925
categories          textproc japanese
maintainers         nomaintainer

description         Kyoto-University and NTT Blog Corpus

long_description    ${name} ({*}${description}) is a blog corpus manually analyzed, \
                    which consists of 249 articles (4,186 sentences).

homepage            http://nlp.ist.i.kyoto-u.ac.jp/kuntt/
platforms           any
supported_archs     noarch
license             Permissive

master_sites        ${homepage}
checksums           rmd160  95d2c0104a0a6be7896c322b564daf006d63dfd5 \
                    sha256  eae5f629335f0a8f5651653429c3a491d9d9c221b2bbfa3b3289028c9a146747

distname            ${name}_v${version}
use_bzip2           yes

use_configure       no

build {}

destroot {
    file mkdir ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} \
        README.txt manual.pdf \
        ${destroot}${prefix}/share/doc/${name}
    file mkdir ${destroot}${prefix}/share/${name}
    foreach dir {corpus1 corpus2 html} {
        copy ${worksrcpath}/${dir} ${destroot}${prefix}/share/${name}
    }
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     {KNBC_v(\d+\.\d+_\d+)\.}
