Ryo Sugimoto
null+****@clear*****
Sun Sep 4 11:18:08 JST 2016
Ryo Sugimoto 2016-09-04 11:18:08 +0900 (Sun, 04 Sep 2016) New Revision: 92ba6e40eb4797539137a6f632f9ce2df13bbc75 https://github.com/groonga/heroku-groonga-builder/commit/92ba6e40eb4797539137a6f632f9ce2df13bbc75 Message: Use 'cmake' instead of 'autotools' to need MessagePack 2.0.0 built Modified files: Rakefile Modified: Rakefile (+13 -2) =================================================================== --- Rakefile 2016-09-04 10:49:06 +0900 (20f5c79) +++ Rakefile 2016-09-04 11:18:08 +0900 (8818605) @@ -140,6 +140,16 @@ class GroongaBuilder end def build_msgpack + cmake_version = "3.6.1" + cmake_archive_name = "cmake-#{cmake_version}-Linux-x86_64" + sh("curl", + "--silent", + "--remote-name", + "--location", + "--fail", + "https://cmake.org/files/v#{cmake_version.sub(/.[0-9]\z/, "")}/#{cmake_archive_name}.tar.gz") + sh("tar", "xf", "#{cmake_archive_name}.tar.gz") + msgpack_version = "2.0.0" msgpack_archive_name = "msgpack-#{msgpack_version}" sh("curl", @@ -151,8 +161,9 @@ class GroongaBuilder sh("tar", "xf", "#{msgpack_archive_name}.tar.gz") Dir.chdir(msgpack_archive_name) do - sh("./configure", - "--prefix=#{absolute_install_prefix}") + sh("./../#{cmake_archive_name}/bin/cmake", + "-DCMAKE_INSTALL_PREFIX=#{absolute_instal_prefix}", + ".") sh("make", "-j4") sh("make", "install") end -------------- next part -------------- HTML����������������������������...Download