6784ce300d
Add Ruby release 2.6.1. Ruby 2.6.0 (2018-12-25) New major features: * A new JIT compiler. * The RubyVM::AbstractSyntaxTree module. For more detail, please refer: <https://www.ruby-lang.org/en/news/2018/12/25/ruby-2-6-0-released/> Ruby 2.6.1 (2019-01-30) Major change: * Net::Protocol::BufferedIO#write raises NoMethodError when sending large multi-byte string has been fixed. For more detail, please refer: <https://www.ruby-lang.org/en/news/2019/01/30/ruby-2-6-1-released/>
41 lines
1.3 KiB
Ruby
41 lines
1.3 KiB
Ruby
$NetBSD: patch-lib_rubygems_commands_setup__command.rb,v 1.1 2019/02/03 13:41:33 taca Exp $
|
|
|
|
* Make sure to setup under DESTDIR.
|
|
|
|
--- lib/rubygems/commands/setup_command.rb.orig 2018-12-23 00:20:49.000000000 +0000
|
|
+++ lib/rubygems/commands/setup_command.rb
|
|
@@ -177,7 +177,7 @@ By default, this RubyGems will install g
|
|
|
|
uninstall_old_gemcutter
|
|
|
|
- documentation_success = install_rdoc
|
|
+ documentation_success = install_rdoc install_destdir
|
|
|
|
say
|
|
if @verbose
|
|
@@ -341,11 +341,15 @@ By default, this RubyGems will install g
|
|
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
|
|
@@ -356,7 +360,7 @@ By default, this RubyGems will install g
|
|
(not File.exist? rubygems_doc_dir or
|
|
File.writable? rubygems_doc_dir)
|
|
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
|
|
|