Ryo Sugimoto
null+****@clear*****
Thu Sep 25 19:49:39 JST 2014
Ryo Sugimoto 2014-09-25 19:49:39 +0900 (Thu, 25 Sep 2014) New Revision: f6cb754b5c599092ab65bb0f949b76a5f4767874 https://github.com/groonga/heroku-buildpack-groonga/commit/f6cb754b5c599092ab65bb0f949b76a5f4767874 Message: Add the mecab_enable Modified files: bin/compile Modified: bin/compile (+7 -0) =================================================================== --- bin/compile 2014-08-11 09:58:12 +0900 (3e23c19) +++ bin/compile 2014-09-25 19:49:39 +0900 (5f98e81) @@ -76,6 +76,12 @@ def fix_prefix_in_pc(prefix, real_prefix) end end +def mecab_enable + if ENV[GROONGA_MECAB_ENABLE] == "yes" + File.join("vendor", "mecab", "lib") + end +end + puts("-----> Loading environment variables") environment_variables = load_environment_variables(env_dir) @@ -111,6 +117,7 @@ Dir.chdir(build_dir) do base_ld_library_paths = [ environment_variables["LD_LIBRARY_PATH"], ENV["LD_LIBRARY_PATH"], + mecab_enable, ] ld_library_paths = [lib_dir] + base_ld_library_paths ENV["LD_LIBRARY_PATH"] = build_path_environment_value(ld_library_paths) -------------- next part -------------- HTML����������������������������...Download