$NetBSD: patch-af,v 1.7 2013/06/11 14:55:54 taca Exp $

Add install_root option for pkgsrc's rubygems support.

--- lib/rubygems/commands/uninstall_command.rb.orig	2013-02-12 20:04:54.000000000 +0000
+++ lib/rubygems/commands/uninstall_command.rb
@@ -22,6 +22,11 @@ class Gem::Commands::UninstallCommand < 
       options[:all] = value
     end
 
+    add_option('-B', '--install-root DIR',
+               'Root directory for gem files') do |value, options|
+      options[:install_root] = File.expand_path(value)
+    end
+
     add_option('-I', '--[no-]ignore-dependencies',
                'Ignore dependency requirements while',
                'uninstalling') do |value, options|
