# $Id: Portfile,v 1.3 2006/07/19 09:03:50 takanori Exp $

PortSystem      1.0
name            mecab-ipadic-eucjp
version         2.7.0-20060707
categories      textproc japanese
maintainers     rsky0711@gmail.com
platforms       darwin
description     Alternate dictionary for MeCab (ipadic/euc-jp)
long_description ${description}
homepage        http://mecab.sourceforge.jp/
dist_subdir     mecab
distfiles       mecab-ipadic-${version}${extract.suffix}
worksrcdir      mecab-ipadic-${version}
set dicdir      ipadic-eucjp
set sfj         20904
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    45b9f822700ad4eceb6722d6edcc2a46 \
                sha1   373be900f9be22957636acc54f120fea013f8818 \
                rmd160 cf2f7ad97e50cae6d0a9e9f13bc9328aeab33304

depends_lib     port:mecab

configure.args  --with-mecab-config=${prefix}/bin/mecab-config \
                --with-charset=euc-jp \
                --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}"
}
