# $Id: Portfile,v 1.1 2006/03/30 03:02:48 takanori Exp $

PortSystem      1.0
name            mecab-jumandic-sjis
version         5.1-20051121
categories      textproc japanese
maintainers     rsky0711@gmail.com
platforms       darwin
description     Alternate dictionary for MeCab (jumandic/shift_jis)
long_description ${description}
homepage        http://mecab.sourceforge.jp/
dist_subdir     mecab
distfiles       mecab-jumandic-${version}${extract.suffix}
worksrcdir      mecab-jumandic-${version}
set dicdir      jumandic-sjis
set sfj         18372
master_sites    http://osdn.dl.sourceforge.jp/mecab/${sfj}/ \
                http://keihanna.dl.sourceforge.jp/mecab/${sfj}/ \
                http://qgpop.dl.sourceforge.jp/mecab/${sfj}/
checksums       md5 2f72e6f3b928df1b1d53ee5c888457b4 \
                sha1 054ea89be2d12f8b1775c7ed3249602b887a3e1a \
                rmd160 81b23ff35a81fd2368cdc9d6ef14247300582163

depends_build   bin:perl:perl5.8
depends_lib     port:mecab

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

post-activate {
    ui_msg "\nTo enable dictionary, rewrite ${prefix}/etc/mecabrc\n\
            as \"dicrc = ${prefix}/lib/mecab/dic/${dicdir}\""
    ui_msg "\nYou can also specify dictionary in the following way:\n\
            ${prefix}/bin/mecab -d ${prefix}/lib/mecab/dic/${dicdir}"
}
