diff options
| author | dalguji | 2014-09-01 04:03:16 +0900 |
|---|---|---|
| committer | Jack Nagel | 2014-09-02 23:43:35 -0500 |
| commit | 49d249ab792ec86c9a1b51877f0d145ea14bfc9a (patch) | |
| tree | 231fb91a0d209e2500a585fbfa4024db8a26fd7d /Library | |
| parent | e154943a41385f76eb9f07c4be4babb190b3e0fb (diff) | |
| download | homebrew-49d249ab792ec86c9a1b51877f0d145ea14bfc9a.tar.bz2 | |
mecab-ko-dic 1.6.1-20140814
Updated mecab-ko-dic to 1.6.1-20140814. Also removed the caveats editing
config manually and added a shell command to do it automatically
instead.
Closes #32009.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/mecab-ko-dic.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Library/Formula/mecab-ko-dic.rb b/Library/Formula/mecab-ko-dic.rb index e5ab5c18f..33a251728 100644 --- a/Library/Formula/mecab-ko-dic.rb +++ b/Library/Formula/mecab-ko-dic.rb @@ -2,8 +2,8 @@ require "formula" class MecabKoDic < Formula homepage "https://bitbucket.org/eunjeon/mecab-ko-dic" - url "https://bitbucket.org/eunjeon/mecab-ko-dic/downloads/mecab-ko-dic-1.6.1-20140515.tar.gz" - sha1 "d882247937be96e36e2ae3f5a0ec6eeb376242fa" + url "https://bitbucket.org/eunjeon/mecab-ko-dic/downloads/mecab-ko-dic-1.6.1-20140814.tar.gz" + sha1 "f68a6faf9aa86691de5a1abace65e70571972d03" depends_on :autoconf depends_on :automake @@ -14,11 +14,11 @@ class MecabKoDic < Formula system "./configure", "--prefix=#{prefix}", "--with-dicdir=#{prefix}" system "make install" - end - 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 + unless File.readlines("#{etc}/mecabrc").grep(/^dicdir.*=/).any? + open("#{etc}/mecabrc", 'a') do |f| + f.puts "dicdir = #{opt_prefix}\n" + end + end end end |
