diff options
author | taca <taca@pkgsrc.org> | 2015-06-11 16:44:34 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2015-06-11 16:44:34 +0000 |
commit | 176ac6d9c9e88127ad7c4df81a30e8de35c079de (patch) | |
tree | f8b7d4e96544d69f86c02f8d5da4bc120fbd1502 | |
parent | bf0d924f7b5d1675d5cd3f3694dd1b272f316c97 (diff) | |
download | pkgsrc-176ac6d9c9e88127ad7c4df81a30e8de35c079de.tar.gz |
Fix build problem on Ruby 2.2.
-rw-r--r-- | www/ruby-borges/distinfo | 3 | ||||
-rw-r--r-- | www/ruby-borges/patches/patch-setup.rb | 24 |
2 files changed, 26 insertions, 1 deletions
diff --git a/www/ruby-borges/distinfo b/www/ruby-borges/distinfo index bc11c6c17b0..a418fdf300f 100644 --- a/www/ruby-borges/distinfo +++ b/www/ruby-borges/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.5 2006/01/03 14:25:51 taca Exp $ +$NetBSD: distinfo,v 1.6 2015/06/11 16:44:34 taca Exp $ SHA1 (borges-1.1.0.tar.gz) = a4d2601a3c9db58182e38f70d08d84720a485e27 RMD160 (borges-1.1.0.tar.gz) = 30d29e15cc5b68d460822bd0bcd5c3156981e188 Size (borges-1.1.0.tar.gz) = 230401 bytes +SHA1 (patch-setup.rb) = d3aa93b26b9c6de9b2209b382cd078d27e2d62f0 diff --git a/www/ruby-borges/patches/patch-setup.rb b/www/ruby-borges/patches/patch-setup.rb new file mode 100644 index 00000000000..cbe81deca3a --- /dev/null +++ b/www/ruby-borges/patches/patch-setup.rb @@ -0,0 +1,24 @@ +$NetBSD: patch-setup.rb,v 1.1 2015/06/11 16:44:34 taca Exp $ + +Fix build problem on Ruby 2.2 and later. + +--- setup.rb.orig 2003-12-20 23:35:39.000000000 +0000 ++++ setup.rb +@@ -218,7 +218,7 @@ end + + class ConfigTable + +- c = ::Config::CONFIG ++ c = ::RbConfig::CONFIG + + rubypath = c['bindir'] + '/' + c['ruby_install_name'] + +@@ -796,7 +796,7 @@ class Installer + raise InstallError, "no ruby extention exists: 'ruby #{$0} setup' first" + end + +- DLEXT = /\.#{ ::Config::CONFIG['DLEXT'] }\z/ ++ DLEXT = /\.#{ ::RbConfig::CONFIG['DLEXT'] }\z/ + + def _ruby_extentions(dir) + Dir.open(dir) {|d| |