[Groonga-commit] groonga/heroku-groonga-builder at 481e70d [master] Add a build_msgpack

Back to archive index

Ryo Sugimoto null+****@clear*****
Sun Aug 24 20:29:33 JST 2014


Ryo Sugimoto	2014-08-24 20:29:33 +0900 (Sun, 24 Aug 2014)

  New Revision: 481e70d62f05d7e9d133e5309546c826dcac58b4
  https://github.com/groonga/heroku-groonga-builder/commit/481e70d62f05d7e9d133e5309546c826dcac58b4

  Message:
    Add a build_msgpack

  Modified files:
    Rakefile

  Modified: Rakefile (+20 -0)
===================================================================
--- Rakefile    2014-07-30 10:18:48 +0900 (516b702)
+++ Rakefile    2014-08-24 20:29:33 +0900 (870fe3f)
@@ -66,6 +66,26 @@ class GroongaBuilder
     client.create_release(github_groonga_repository, groonga_tag_name)
   end
 
+  def build_msgpack
+    msgpack_version = "0.5.9"
+    msgpack_archive_name = "msgpack-#{msgpack_version}.tar.gz"
+    msgpack_prefix = File.join(@top_dir, File.join("vender", "msgpack"))
+    sh("curl",
+       "--silent",
+       "--remote-name",
+       "--location",
+       "https://github.com/msgpack/msgpack-c/releases/download/cpp-#{msgpack_version}/#{msgpack_archive_name}")
+    sh("tar", "xf", archive_name)
+
+    Dir.chdir("msgpack-#{msgpack_version}") do
+      sh("./configure",
+	 "--prefix=#{msgpack_prefix}")
+      sh("make", "-j4")
+      sh("make", "install")
+    end
+    return msgpack_prefix
+  end
+
   def build_groonga
     archive_name = "#{groonga_base_name}.tar.gz"
     sh("curl", "-O",
-------------- next part --------------
HTML����������������������������...
Descargar 



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