aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authordalguji2014-09-01 03:49:33 +0900
committerJack Nagel2014-09-01 23:26:22 -0500
commit9a2df07028b08b1104e6bb3a55a931f8d35c635c (patch)
treef3fe0608fb288f49197647986cc1f15a6c0646e5 /Library
parent1b2a038275f77dbb63ed985de1839e07e17b0662 (diff)
downloadhomebrew-9a2df07028b08b1104e6bb3a55a931f8d35c635c.tar.bz2
mecab-ko: fix dicdir path
Add a patch to comment out the incorrect dicdir path. The correct one will be added when mecab-ko-dic is installed. Closes #32008. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mecab-ko.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/mecab-ko.rb b/Library/Formula/mecab-ko.rb
index 2b7291f0f..19c1af8b2 100644
--- a/Library/Formula/mecab-ko.rb
+++ b/Library/Formula/mecab-ko.rb
@@ -6,9 +6,28 @@ class MecabKo < Formula
version "0.996-ko-0.9.1"
sha1 "68dad4486d7b74fa5fe7aef0b440e00f17a9e59c"
+ # https://bitbucket.org/eunjeon/mecab-ko/pull-request/1/mecab-ko-ipadic-ipadic/diff
+ # Below comments out the dicdir path which produces runtime error
+ # and mecab-ko requires mecab-ko-dic rather than mecab-ipadic, unlike
+ # the original mecab.
+ patch :DATA
+
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end
+
+
+__END__
+--- a/mecabrc.in
++++ b/mecabrc.in
+@@ -3,7 +3,7 @@
+ ;
+ ; $Id: mecabrc.in,v 1.3 2006/05/29 15:36:08 taku-ku Exp $;
+ ;
+-dicdir = @prefix@/lib/mecab/dic/ipadic
++;dicdir = @prefix@/lib/mecab/dic/ipadic
+
+ ; userdic = /home/foo/bar/user.dic