pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/ruby-borges Fix build problem on Ruby 2.2.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3dd2f658940c
branches:  trunk
changeset: 653028:3dd2f658940c
user:      taca <taca%pkgsrc.org@localhost>
date:      Thu Jun 11 16:44:34 2015 +0000

description:
Fix build problem on Ruby 2.2.

diffstat:

 www/ruby-borges/distinfo               |   3 ++-
 www/ruby-borges/patches/patch-setup.rb |  24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (39 lines):

diff -r ca9c75c5dbdb -r 3dd2f658940c www/ruby-borges/distinfo
--- a/www/ruby-borges/distinfo  Thu Jun 11 16:43:32 2015 +0000
+++ b/www/ruby-borges/distinfo  Thu Jun 11 16:44:34 2015 +0000
@@ -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 -r ca9c75c5dbdb -r 3dd2f658940c www/ruby-borges/patches/patch-setup.rb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ruby-borges/patches/patch-setup.rb    Thu Jun 11 16:44:34 2015 +0000
@@ -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|



Home | Main Index | Thread Index | Old Index