From d266473283e5275497ede28d3bc6b238010f37ec Mon Sep 17 00:00:00 2001 From: hsbt Date: Sat, 11 Apr 2015 14:26:44 +0000 Subject: [PATCH] * tool/rbinstall.rb: support destdir for native extention gem. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ tool/rbinstall.rb | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index c9cf189027..ff69875ccb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Apr 11 23:26:05 2015 SHIBATA Hiroshi + + * tool/rbinstall.rb: support destdir for native extention gem. + Sat Apr 11 21:02:06 2015 NAKAMURA Usaku * test/ruby/test_file_exhaustive.rb diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index cec3b57f5c..1ce2983493 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -775,6 +775,7 @@ install?(:ext, :comm, :gem) do end next if gems.empty? if defined?(Zlib) + ENV['DESTDIR'] = $destdir if $destdir gems.each do |gem| Gem.install(gem, Gem::Requirement.default, options) gemname = File.basename(gem)