2013-09-20 08:38:22 +00:00
|
|
|
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".
|
2013-10-22 18:29:23 +00:00
|
|
|
#{Formula.factory('mecab').opt_prefix}/etc/mecabrc
|
2013-09-20 08:38:22 +00:00
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|