0dd529a522
From Jeremy Evans. Thank you!
42 lines
1.6 KiB
Plaintext
42 lines
1.6 KiB
Plaintext
$OpenBSD: patch-lib_rubygems_dependency_installer_rb,v 1.4 2009/10/12 17:18:00 bernd Exp $
|
|
|
|
This is for GEM_SKIPDEPENDS in ruby.port.mk.
|
|
|
|
--- lib/rubygems/dependency_installer.rb.orig Mon Jun 22 15:54:36 2009
|
|
+++ lib/rubygems/dependency_installer.rb Tue Sep 8 18:26:36 2009
|
|
@@ -23,6 +23,7 @@ class Gem::DependencyInstaller
|
|
:prerelease => false,
|
|
:security_policy => nil, # HACK NoSecurity requires OpenSSL. AlmostNo? Low?
|
|
:wrappers => true,
|
|
+ :skip_dependencies => false
|
|
}
|
|
|
|
##
|
|
@@ -44,7 +45,7 @@ class Gem::DependencyInstaller
|
|
# :wrappers:: See Gem::Installer::new
|
|
|
|
def initialize(options = {})
|
|
- if options[:install_dir] then
|
|
+ if options[:install_dir] and not options[:default_source_index] then
|
|
spec_dir = options[:install_dir], 'specifications'
|
|
@source_index = Gem::SourceIndex.from_gems_in spec_dir
|
|
else
|
|
@@ -64,6 +65,7 @@ class Gem::DependencyInstaller
|
|
@security_policy = options[:security_policy]
|
|
@user_install = options[:user_install]
|
|
@wrappers = options[:wrappers]
|
|
+ @skip_dependencies = options[:skip_dependencies]
|
|
|
|
@installed_gems = []
|
|
|
|
@@ -247,7 +249,8 @@ class Gem::DependencyInstaller
|
|
:security_policy => @security_policy,
|
|
:source_index => @source_index,
|
|
:user_install => @user_install,
|
|
- :wrappers => @wrappers
|
|
+ :wrappers => @wrappers,
|
|
+ :skip_dependencies => @skip_dependencies
|
|
|
|
spec = inst.install
|
|
|