pkgsrc/lang/ruby21-base/patches/patch-lib_rubygems_install__update__options.rb
taca 2f72af218d Add ruby21-base, base of Ruby 2.1.1. Ruby 2.1.1 is second release of
Ruby 2.1, post release of Ruby 2.0.

*WARNING!* Not all of ruby pkgsrc are supported yet.

Ruby 2.1 has many improvements including speedup without severe
incompatibilities. You can use this on Rails and other applications, and get a
more comfortable experience.

This release includes many bugfixes. See tickets and ChangeLog for details.

Following the previously announced changed versioning policy of Ruby 2.1, this
version is simply called ¡È2.1.1¡É.

Update: We¡Çve noticed a regression in Hash#reject. For more details, see:
Regression of Hash#reject in Ruby 2.1.1.
2014-03-14 19:40:47 +00:00

19 lines
810 B
Ruby

$NetBSD: patch-lib_rubygems_install__update__options.rb,v 1.1 2014/03/14 19:40:47 taca Exp $
* Add install_root option for pkgsrc's rubygems support.
--- lib/rubygems/install_update_options.rb.orig 2013-09-14 08:59:02.000000000 +0000
+++ lib/rubygems/install_update_options.rb
@@ -36,6 +36,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|