[前][次][番号順一覧][スレッド一覧]

ruby-changes:38157

From: nobu <ko1@a...>
Date: Sun, 12 Apr 2015 08:32:11 +0900 (JST)
Subject: [ruby-changes:38157] nobu:r50238 (trunk): rbinstall.rb: destdir

nobu	2015-04-12 08:31:48 +0900 (Sun, 12 Apr 2015)

  New Revision: 50238

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50238

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

  Modified files:
    trunk/tool/rbinstall.rb
Index: tool/rbinstall.rb
===================================================================
--- tool/rbinstall.rb	(revision 50237)
+++ tool/rbinstall.rb	(revision 50238)
@@ -775,7 +775,7 @@ install?(:ext, :comm, :gem) do https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L775
   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)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]