$OpenBSD: patch-lib_rubygems_installer_rb,v 1.7 2008/09/28 15:45:18 bernd Exp $ This is for GEM_SKIPDEPENDS in ruby.port.mk. --- lib/rubygems/installer.rb.orig Tue Sep 23 06:01:38 2008 +++ lib/rubygems/installer.rb Sat Sep 27 23:05:48 2008 @@ -109,6 +109,7 @@ class Gem::Installer @bin_dir = options[:bin_dir] @development = options[:development] @source_index = options[:source_index] + @skip_dependencies = options[:skip_dependencies] begin @format = Gem::Format.from_file_by_path @gem, @security_policy @@ -194,7 +195,12 @@ class Gem::Installer deps |= @spec.development_dependencies if @development deps.each do |dep_gem| - ensure_dependency @spec, dep_gem + if @skip_dependencies && @skip_dependencies.include?(dep_gem.name) + say "Skipping '#{dep_gem.name}' dependency." + @spec.dependencies.delete(dep_gem) + else + ensure_dependency @spec, dep_gem + end end end end