summaryrefslogtreecommitdiff
path: root/www/ruby-webunit
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2015-06-11 17:10:46 +0000
committertaca <taca@pkgsrc.org>2015-06-11 17:10:46 +0000
commitb62423c841b55c04c88a04178105e410c9a58c4d (patch)
treed7959395fee86102d38e47df441b8d498453a441 /www/ruby-webunit
parenta15422c5e9ffce9356ab8121c0cc139435941c2d (diff)
downloadpkgsrc-b62423c841b55c04c88a04178105e410c9a58c4d.tar.gz
Fix build problem on Ruby 2.2.
Diffstat (limited to 'www/ruby-webunit')
-rw-r--r--www/ruby-webunit/distinfo3
-rw-r--r--www/ruby-webunit/patches/patch-install.rb24
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|