Kouhei Sutou
null+****@clear*****
Sun Sep 14 17:37:44 JST 2014
Kouhei Sutou 2014-05-19 22:08:26 +0900 (Mon, 19 May 2014) New Revision: 31d6ae017aedd0f0f316dd35e949b95bc665afd8 https://github.com/groonga/heroku-groonga-builder/commit/31d6ae017aedd0f0f316dd35e949b95bc665afd8 Message: Add Rakefile to build Groonga Added files: Rakefile Added: Rakefile (+23 -0) 100644 =================================================================== --- /dev/null +++ Rakefile 2014-05-19 22:08:26 +0900 (9a57632) @@ -0,0 +1,23 @@ +require "pathname" + +task :default => :build + +groonga_version = "4.0.1" + +task :build do + base_name = "groonga-#{groonga_version}" + archive_name = "#{base_name}.tar.gz" + sh("curl", "-O", "http://packages.groonga.org/source/groonga/#{archive_name}") + sh("tar", "xf", archive_name) + + install_dir = File.join(Dir.pwd, "vendor", "groonga") + Dir.chdir(base_name) do + sh("./configure", + "--prefix=#{install_dir}", + "--disable-document") + sh("make", "-j") + sh("make", "install") + end + + sh("tar", "cJf", "heroku-#{base_name}.tar.xz", "vendor/groonga") +end -------------- next part -------------- HTML����������������������������...Download