Kouhei Sutou
null+****@clear*****
Mon Jan 11 13:21:10 JST 2016
Kouhei Sutou 2016-01-11 13:21:10 +0900 (Mon, 11 Jan 2016) New Revision: 68360d705d5312c478ab41a29feff9d106ea58fd https://github.com/groonga/groonga/commit/68360d705d5312c478ab41a29feff9d106ea58fd Message: windows: use built mecab-dict-index Modified files: packages/windows/Rakefile Modified: packages/windows/Rakefile (+17 -1) =================================================================== --- packages/windows/Rakefile 2016-01-11 13:18:00 +0900 (e307a8d) +++ packages/windows/Rakefile 2016-01-11 13:21:10 +0900 (b9381ac) @@ -251,10 +251,26 @@ namespace :build do sh("tar", "xzf", naist_jdic_tar_gz.to_s) or exit(false) end Dir.chdir(tmp_dir + naist_jdic_base) do + mecab_config = binary_dir + "bin" + "mecab-config" sh("./configure", + "--with-mecab-config=#{mecab_config}", "--with-dicdir=#{binary_dir}/share/mecab/dic/naist-jdic", "--with-charset=utf-8") or exit(false) - sh("make", "-j8") or exit(false) + + mecab_dict_index_original = + binary_dir + "libexec" + "mecab" + "mecab-dict-index.exe" + mecab_dict_index_bin = binary_dir + "bin" + "mecab-dict-index.exe" + cp(mecab_dict_index_original, + mecab_dict_index_bin) + if groonga_win32_x86_p + mecab_dict_index = "wine32 #{mecab_dict_index_bin}" + else + mecab_dict_index = "wine64 #{mecab_dict_index_bin}" + end + rm_rf(File.expand_path("~/.wine")) + sh("make", "mecab_dict_index=#{mecab_dict_index}") or exit(false) + rm(mecab_dict_index_bin) + sh("make", "install-data") or exit(false) naist_jdic_license_dir = license_dir + "naist-jdic" -------------- next part -------------- HTML����������������������������...ダウンロード