2014-01-21 08:48:05 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class MecabKoDic < Formula
|
2014-05-18 15:10:34 +00:00
|
|
|
homepage "https://bitbucket.org/eunjeon/mecab-ko-dic"
|
2014-06-22 12:31:44 +00:00
|
|
|
url "https://bitbucket.org/eunjeon/mecab-ko-dic/downloads/mecab-ko-dic-1.6.1-20140515.tar.gz"
|
|
|
|
sha1 "d882247937be96e36e2ae3f5a0ec6eeb376242fa"
|
2014-01-21 08:48:05 +00:00
|
|
|
|
|
|
|
depends_on :autoconf
|
|
|
|
depends_on :automake
|
|
|
|
depends_on 'mecab-ko'
|
|
|
|
|
|
|
|
def install
|
2014-05-18 15:10:34 +00:00
|
|
|
system "./autogen.sh"
|
2014-01-21 08:48:05 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--with-dicdir=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
2014-05-18 15:10:34 +00:00
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
To enable the dictionary, add the following to #{HOMEBREW_PREFIX}/etc/mecabrc:
|
|
|
|
dicdir = #{HOMEBREW_PREFIX}/lib/mecab/dic/mecab-ko-dic
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|