95884bae22
Closes Homebrew/homebrew#42407. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
21 lines
698 B
Ruby
21 lines
698 B
Ruby
class MecabKoDic < Formula
|
|
desc "See mecab"
|
|
homepage "https://bitbucket.org/eunjeon/mecab-ko-dic"
|
|
url "https://bitbucket.org/eunjeon/mecab-ko-dic/downloads/mecab-ko-dic-1.6.1-20140814.tar.gz"
|
|
sha256 "251fb141f2e96d34ea62f557c146ab0615dea67502cce8811d408309f182cfb7"
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "mecab-ko"
|
|
|
|
def install
|
|
system "./autogen.sh"
|
|
system "./configure", "--prefix=#{prefix}",
|
|
"--with-dicdir=#{prefix}"
|
|
system "make", "install"
|
|
|
|
if File.readlines("#{etc}/mecabrc").grep(/^dicdir.*=/).empty?
|
|
open("#{etc}/mecabrc", "a") { |f| f.puts "dicdir = #{opt_prefix}\n" }
|
|
end
|
|
end
|
|
end
|