2014-01-21 08:13:00 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class MecabKo < Formula
|
2014-05-15 15:56:16 +00:00
|
|
|
homepage "https://bitbucket.org/eunjeon/mecab-ko"
|
|
|
|
url "https://bitbucket.org/eunjeon/mecab-ko/downloads/mecab-0.996-ko-0.9.1.tar.gz"
|
|
|
|
version "0.996-ko-0.9.1"
|
2014-06-22 15:56:37 +00:00
|
|
|
sha1 "68dad4486d7b74fa5fe7aef0b440e00f17a9e59c"
|
2014-01-21 08:13:00 +00:00
|
|
|
|
2014-08-31 18:49:33 +00:00
|
|
|
# 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
|
|
|
|
|
2014-01-21 08:13:00 +00:00
|
|
|
def install
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2014-08-31 18:49:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
__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
|