Ryo Sugimoto
null+****@clear*****
Sun Sep 14 09:26:48 JST 2014
Ryo Sugimoto 2014-09-14 09:26:48 +0900 (Sun, 14 Sep 2014) New Revision: 53111bb055062862c5d4ac9714f2ff3a13d64cf7 https://github.com/groonga/heroku-groonga-builder/commit/53111bb055062862c5d4ac9714f2ff3a13d64cf7 Message: Add the build_mecab Modified files: Rakefile Modified: Rakefile (+36 -0) =================================================================== --- Rakefile 2014-09-01 18:26:36 +0900 (9a3c793) +++ Rakefile 2014-09-14 09:26:48 +0900 (0b32188) @@ -71,6 +71,42 @@ class GroongaBuilder client.create_release(github_groonga_repository, groonga_tag_name) end + def build_mecab + download_url = "https://mecab.googlecode.com/files" + mecab_version = "0.996" + mecab_archive_name = "mecab-#{mecab_version}" + sh("curl", + "--silent", + "--remote-name", + "--location", + "--fail", + "#{download_url}/#{mecab_archive_name}.tar.gz") + sh("tar", "xf", "#{mecab_archive_name}.tar.gz") + + Dir.chdir(mecab_archive_name) do + sh("./configure", + "--prefix=#{mecab_prefix}") + sh("make") + sh("make", "install") + end + + ipadic_version = "2.7.0-20070801" + ipadic_archive_name = "mecab-ipadic-#{mecab_ipadic_version}" + sh("curl", + "--silent", + "--remote-name", + "--location", + "--fail", + "#{download_url}/#{ipadic_archive_name}.tar.gz") + sh("tar", "xf", "#{ipadic_archive_name}.tar.gz") + Dir.chdir(ipadic_archive_name) do + sh("./configure", + "--prefix=#{mecab_prefix}") + sh("make") + sh("make", "install") + end + end + def build_msgpack msgpack_version = "0.5.9" msgpack_archive_name = "msgpack-#{msgpack_version}" -------------- next part -------------- HTML����������������������������...Download