1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

rbinstall.rb: destdir

* tool/rbinstall.rb (gem): use installed ruby under destdir.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-04-11 23:31:48 +00:00
parent df7aac7c8d
commit 3cb0c6e39e

View file

@ -775,7 +775,7 @@ install?(:ext, :comm, :gem) do
end
next if gems.empty?
if defined?(Zlib)
ENV['DESTDIR'] = $destdir if $destdir
Gem.instance_variable_set(:@ruby, with_destdir(File.join(bindir, ruby_install_name)))
gems.each do |gem|
Gem.install(gem, Gem::Requirement.default, options)
gemname = File.basename(gem)