3de21a410a
pkgsrc chagnges: * Use RUBY_SUFFIX instead of RUBY_VER for appropriate place. * Detect NetBSD correctly in Gem::Platform. Quote from release announce: This release includes many bugfixes. See tickets and ChangeLog for details.
14 lines
717 B
Ruby
14 lines
717 B
Ruby
$NetBSD: patch-lib_rubygems_platform.rb,v 1.1 2014/03/13 18:00:02 taca Exp $
|
|
|
|
Allow simple "netbsd" as Gem::Platform.
|
|
|
|
--- lib/rubygems/platform.rb.orig 2013-07-22 16:33:18.000000000 +0000
|
|
+++ lib/rubygems/platform.rb
|
|
@@ -83,6 +83,7 @@ class Gem::Platform
|
|
os, version = $1, $3
|
|
@cpu = 'x86' if @cpu.nil? and os =~ /32$/
|
|
[os, version]
|
|
when /netbsdelf/ then [ 'netbsdelf', nil ]
|
|
+ when /netbsd/ then [ 'netbsd', nil ]
|
|
when /openbsd(\d+\.\d+)?/ then [ 'openbsd', $1 ]
|
|
when /solaris(\d+\.\d+)?/ then [ 'solaris', $1 ]
|