pkgsrc-ng/lang/ruby200-base/patches/patch-lib_rubygems_install__update__options.rb
2014-08-11 13:27:10 +02:00

20 lines
810 B
Ruby

$NetBSD: patch-lib_rubygems_install__update__options.rb,v 1.1 2013/07/21 02:32:58 taca Exp $
* Add install_root option for pkgsrc's rubygems support.
--- lib/rubygems/install_update_options.rb.orig 2012-11-29 06:52:18.000000000 +0000
+++ lib/rubygems/install_update_options.rb
@@ -33,6 +33,12 @@ module Gem::InstallUpdateOptions
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", '-i', '--install-dir DIR',
'Gem repository directory to get installed',
'gems') do |value, options|