summaryrefslogtreecommitdiff
path: root/misc/rubygems/patches/patch-ac
blob: a86db6dfab13fd99a7c13a792f29a099ec950ee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-ac,v 1.8 2013/06/11 14:55:54 taca Exp $

Add install_root option for pkgsrc's rubygems support.

--- lib/rubygems/install_update_options.rb.orig	2013-02-12 20:04:55.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|