# -*- 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

set dicname         ipadic
name                mecab-${dicname}
version             2.7.0-20070801
categories          textproc japanese
maintainers         nomaintainer

set encoding        eucjp

subport mecab-${dicname}-sjis {
    set encoding    sjis
    set charset     sjis
    configure.post_args  --with-charset=${charset}
    livecheck.type  none
}

subport mecab-${dicname}-utf8 {
    set encoding    utf8
    set charset     utf-8
    configure.post_args  --with-charset=${charset}
    livecheck.type  none
}

description         ${dicname} of ${encoding} encoding for MeCab
long_description    {*}${description}

homepage            http://taku910.github.io/mecab/
platforms           any
license             Permissive

dist_subdir         mecab

master_sites        macports_distfiles:mecab
checksums           rmd160  8c774433a555e4947a6af80c436e9b40631bda45 \
                    sha256  b62f527d881c504576baed9c6ef6561554658b175ce6ae0096a60307e49e3523

depends_lib         port:mecab-base

supported_archs     noarch

configure.args      --with-mecab-config=${prefix}/bin/mecab-config \
                    --with-dicdir=${prefix}/lib/mecab/dic/${dicname}-${encoding}

livecheck.type      none
