diff options
Diffstat (limited to 'lang/ruby23-base/patches/patch-lib_rubygems_commands_setup__command.rb')
-rw-r--r-- | lang/ruby23-base/patches/patch-lib_rubygems_commands_setup__command.rb | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/lang/ruby23-base/patches/patch-lib_rubygems_commands_setup__command.rb b/lang/ruby23-base/patches/patch-lib_rubygems_commands_setup__command.rb deleted file mode 100644 index 04a61303f3a..00000000000 --- a/lang/ruby23-base/patches/patch-lib_rubygems_commands_setup__command.rb +++ /dev/null @@ -1,41 +0,0 @@ -$NetBSD: patch-lib_rubygems_commands_setup__command.rb,v 1.1 2015/12/30 14:59:42 taca Exp $ - -* Make sure to setup under DESTDIR. - ---- lib/rubygems/commands/setup_command.rb.orig 2015-12-16 05:07:31.000000000 +0000 -+++ lib/rubygems/commands/setup_command.rb -@@ -146,7 +146,7 @@ By default, this RubyGems will install g - - uninstall_old_gemcutter - -- documentation_success = install_rdoc -+ documentation_success = install_rdoc install_destdir - - say - if @verbose then -@@ -285,11 +285,15 @@ TEXT - end - end - -- def install_rdoc -+ def install_rdoc(install_destdir) - gem_doc_dir = File.join Gem.dir, 'doc' - rubygems_name = "rubygems-#{Gem::VERSION}" - rubygems_doc_dir = File.join gem_doc_dir, rubygems_name - -+ unless install_destdir.empty? -+ FileUtils.mkdir_p gem_doc_dir unless File.exist?(gem_doc_dir) -+ end -+ - begin - Gem.ensure_gem_subdirectories Gem.dir - rescue SystemCallError -@@ -300,7 +304,7 @@ TEXT - (not File.exist? rubygems_doc_dir or - File.writable? rubygems_doc_dir) then - say "Removing old RubyGems RDoc and ri" if @verbose -- Dir[File.join(Gem.dir, 'doc', 'rubygems-[0-9]*')].each do |dir| -+ Dir[File.join(gem_doc_dir, 'rubygems-[0-9]*')].each do |dir| - rm_rf dir - end - |