# -*- 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 92622 2012-05-02 11:00:48Z hum@macports.org $

PortSystem          1.0

name                cabocha
version             0.62
categories          textproc japanese
platforms           darwin
maintainers         hum openmaintainer
license             BSD

homepage            http://code.google.com/p/cabocha/
description         Yet Another Japanese Dependency Structure Analyzer
long_description    CaboCha is a Jpanese dependency structure analyzer based on \
                    support vector machines. \
                    This version of CaboCha supports the UTF-8 encoding.

master_sites        googlecode
checksums           rmd160  ec08c7befad90ca90eedb0ec8c892dbe40264194 \
                    sha256  3f61ffa0fc56e43ca3330e0645dc6b5022433bf52a6df2462a0603a72e03f79b

depends_lib         port:crfpp \
                    port:libiconv \
                    port:mecab-base \
                    port:mecab-utf8

patchfiles          patch-configure.diff

configure.args      --with-charset=UTF8

variant juman conflicts unidic description {Set the default posset to JUMAN} {
    configure.args-append  --with-posset=JUMAN
}

variant unidic conflicts juman description {Set the default posset to UniDic} {
    configure.args-append  --with-posset=UNIDIC
}

build.args          LIBS="-liconv -lcrfpp -lmecab"

test.run            yes
test.target         check
