diff options
author | taca <taca@pkgsrc.org> | 2015-06-11 17:10:46 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2015-06-11 17:10:46 +0000 |
commit | 0b89d8de219b3049edd2c02b7a52a4d720a3e2ac (patch) | |
tree | d7959395fee86102d38e47df441b8d498453a441 /www | |
parent | 8000f247ee6a072784d0381b206c62d78f460929 (diff) | |
download | pkgsrc-0b89d8de219b3049edd2c02b7a52a4d720a3e2ac.tar.gz |
Fix build problem on Ruby 2.2.
Diffstat (limited to 'www')
-rw-r--r-- | www/ruby-webunit/distinfo | 3 | ||||
-rw-r--r-- | www/ruby-webunit/patches/patch-install.rb | 24 |
2 files changed, 26 insertions, 1 deletions
diff --git a/www/ruby-webunit/distinfo b/www/ruby-webunit/distinfo index dddcff3efd6..b411b1f5d5b 100644 --- a/www/ruby-webunit/distinfo +++ b/www/ruby-webunit/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.4 2006/01/03 14:25:51 taca Exp $ +$NetBSD: distinfo,v 1.5 2015/06/11 17:10:46 taca Exp $ SHA1 (webunit-20040429++.tar.gz) = dfc317b7318731e56dadfe4f7d11acc66f54fa29 RMD160 (webunit-20040429++.tar.gz) = db2416e67ffc178a2d8965cdce312c2407d560ca Size (webunit-20040429++.tar.gz) = 59312 bytes +SHA1 (patch-install.rb) = deed7b29562ddb8a14f3bee1815a99967a403ea1 diff --git a/www/ruby-webunit/patches/patch-install.rb b/www/ruby-webunit/patches/patch-install.rb new file mode 100644 index 00000000000..a39fae37b98 --- /dev/null +++ b/www/ruby-webunit/patches/patch-install.rb @@ -0,0 +1,24 @@ +$NetBSD: patch-install.rb,v 1.1 2015/06/11 17:10:46 taca Exp $ + +Fix build problem on Ruby 2.2 and later. + +--- install.rb.orig 2003-01-21 11:50:39.000000000 +0000 ++++ install.rb +@@ -45,7 +45,7 @@ end + + class ConfigTable + +- c = ::Config::CONFIG ++ c = ::RbConfig::CONFIG + + rubypath = c['bindir'] + '/' + c['ruby_install_name'] + +@@ -691,7 +691,7 @@ class Installer + "no extention exists: Have you done 'ruby #{$0} setup' ?" + end + +- DLEXT = /\.#{ ::Config::CONFIG['DLEXT'] }\z/ ++ DLEXT = /\.#{ ::RbConfig::CONFIG['DLEXT'] }\z/ + + def _allext( dir ) + Dir.open(dir) {|d| |