$NetBSD: patch-ac,v 1.5 2010/09/10 03:48:40 taca Exp $ Add install_root option for pkgsrc's rubygems support. --- lib/rubygems/install_update_options.rb.orig 2009-06-22 22:54:36.000000000 +0000 +++ lib/rubygems/install_update_options.rb @@ -34,6 +34,12 @@ module Gem::InstallUpdateOptions options[:bin_dir] = File.expand_path(value) end + add_option(:"Install/Update", '-B', '--install-root DIR', + 'Root directory for gem files on install') do |value, options| + options[:install_root] = File.expand_path(value) + Gem.ensure_gem_subdirectories File.join options[:install_root], Gem.dir + end + add_option(:"Install/Update", '-d', '--[no-]rdoc', 'Generate RDoc documentation for the gem on', 'install') do |value, options|