[Groonga-commit] groonga/heroku-groonga-builder at 0415273 [build_kytea] Add mecab_config

Back to archive index

Ryo Sugimoto null+****@clear*****
Sun Sep 14 10:13:04 JST 2014


Ryo Sugimoto	2014-09-14 10:13:04 +0900 (Sun, 14 Sep 2014)

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

  Message:
    Add mecab_config

  Modified files:
    Rakefile

  Modified: Rakefile (+6 -1)
===================================================================
--- Rakefile    2014-09-14 09:59:41 +0900 (d05ffa5)
+++ Rakefile    2014-09-14 10:13:04 +0900 (7ec5213)
@@ -39,6 +39,10 @@ class GroongaBuilder
     File.join(@top_dir, "vendor", "mecab")
   end
 
+  def mecab_config
+    File.join(mecab_prefix, "bin", "mecab-config")
+  end
+
   def groonga_version
     ENV["GROONGA_VERSION"] || "4.0.5"
   end
@@ -107,7 +111,8 @@ class GroongaBuilder
     sh("tar", "xf", "#{ipadic_archive_name}.tar.gz")
     Dir.chdir(ipadic_archive_name) do
       sh("./configure",
-	 "--prefix=#{mecab_prefix}")
+	 "--prefix=#{mecab_prefix}"
+	 "--with-mecab-config=#{mecab_config}")
       sh("make")
       sh("make", "install")
     end
-------------- next part --------------
HTML����������������������������...
Télécharger 



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