homebrew-core/Formula/mecab-unidic.rb
teenst d1f5e6e3ca mecab-unidic 2.7.0
UniDic is yet another MeCab(Part-of-Speech and Morphological Analyzer) dictionary.

Closes Homebrew/homebrew#22701.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-09-22 21:53:09 -07:00

26 lines
648 B
Ruby

require 'formula'
class MecabUnidic < Formula
homepage 'http://sourceforge.jp/projects/unidic/'
url 'http://sourceforge.jp/frs/redir.php?m=iij&f=%2Funidic%2F58338%2Funidic-mecab-2.1.2_src.zip'
sha1 'c501246539e4e2bd5b04c731fcb04985cccf8bcf'
depends_on 'mecab'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
def caveats; <<-EOS.undent
If you want to use UniDic, please rewrite "dicdir".
#{mecab_dicdir}/etc/mecabrc
EOS
end
def mecab_dicdir
`mecab-config --prefix`.chomp!
end
end