[Groonga-commit] groonga/heroku-groonga-builder at ddf6a0d [master] Add the mecab_rc to set mecab_dic_dir

Back to archive index

Ryo Sugimoto null+****@clear*****
Wed Sep 17 20:00:23 JST 2014


Ryo Sugimoto	2014-09-17 20:00:23 +0900 (Wed, 17 Sep 2014)

  New Revision: ddf6a0ddba036a3279918fcb5cd87b269322bf53
  https://github.com/groonga/heroku-groonga-builder/commit/ddf6a0ddba036a3279918fcb5cd87b269322bf53

  Merged 295f173: Merge branch 'build_mecab' of github.com:groonga/heroku-groonga-builder into build-mecab

  Message:
    Add the mecab_rc to set mecab_dic_dir

  Modified files:
    Rakefile

  Modified: Rakefile (+7 -0)
===================================================================
--- Rakefile    2014-09-17 19:34:01 +0900 (bee90a1)
+++ Rakefile    2014-09-17 20:00:23 +0900 (facf0f9)
@@ -145,6 +145,13 @@ class GroongaBuilder
       sh("make")
       sh("make", "install-data")
     end
+    mecab_rc_path = File.join(absolete_mecab_prefix, "etc", "mecabrc")
+    mecab_rc_content = mecab_rc_path.read
+    naist_jdic_dir = File.join(absolete_install_prefix, "lib", "mecab", "dic", "naist-jdic")
+    File.open(mecab_rc_path, "w") do |mecab_rc|
+      mecab_rc.print(mecab_rc_content.gsub(/^dicdir\s*=,+$/,
+					   "dicdir = #{naist_jdic_dir}"))
+    end
   end
 
   def build_msgpack
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index