PageRenderTime 37ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/Library/Formula/mecab-ko.rb

https://bitbucket.org/JoshHagins/homebrew
Ruby | 33 lines | 23 code | 6 blank | 4 comment | 0 complexity | 9ae5b52ad9b0c1881147865581270259 MD5 | raw file
  1. require "formula"
  2. class MecabKo < Formula
  3. homepage "https://bitbucket.org/eunjeon/mecab-ko"
  4. url "https://bitbucket.org/eunjeon/mecab-ko/downloads/mecab-0.996-ko-0.9.1.tar.gz"
  5. version "0.996-ko-0.9.1"
  6. sha1 "68dad4486d7b74fa5fe7aef0b440e00f17a9e59c"
  7. # https://bitbucket.org/eunjeon/mecab-ko/pull-request/1/mecab-ko-ipadic-ipadic/diff
  8. # Below comments out the dicdir path which produces runtime error
  9. # and mecab-ko requires mecab-ko-dic rather than mecab-ipadic, unlike
  10. # the original mecab.
  11. patch :DATA
  12. def install
  13. system "./configure", "--disable-dependency-tracking",
  14. "--prefix=#{prefix}"
  15. system "make install"
  16. end
  17. end
  18. __END__
  19. --- a/mecabrc.in
  20. +++ b/mecabrc.in
  21. @@ -3,7 +3,7 @@
  22. ;
  23. ; $Id: mecabrc.in,v 1.3 2006/05/29 15:36:08 taku-ku Exp $;
  24. ;
  25. -dicdir = @prefix@/lib/mecab/dic/ipadic
  26. +;dicdir = @prefix@/lib/mecab/dic/ipadic
  27. ; userdic = /home/foo/bar/user.dic