pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/ruby-ming Fix build problem on Ruby 2.2 and...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b7917b6f4a27
branches:  trunk
changeset: 652824:b7917b6f4a27
user:      taca <taca%pkgsrc.org@localhost>
date:      Mon Jun 08 14:55:17 2015 +0000

description:
Fix build problem on Ruby 2.2 and later.

diffstat:

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

diffs (42 lines):

diff -r ba663c427185 -r b7917b6f4a27 multimedia/ruby-ming/distinfo
--- a/multimedia/ruby-ming/distinfo     Mon Jun 08 14:53:24 2015 +0000
+++ b/multimedia/ruby-ming/distinfo     Mon Jun 08 14:55:17 2015 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2013/07/21 02:48:12 taca Exp $
+$NetBSD: distinfo,v 1.10 2015/06/08 14:55:17 taca Exp $
 
 SHA1 (ming-ruby-0.2.1.tar.gz) = 942829a4085afb2645e6b098b72bd24badb8f0ef
 RMD160 (ming-ruby-0.2.1.tar.gz) = 7ddde8b9912bdd1608a7af8b23464a5fc63b9306
@@ -9,3 +9,4 @@
 SHA1 (patch-ad) = 6a62e023b934f528f9247bae24c28829f35d1c25
 SHA1 (patch-ext_ming_mingc_swfcxform.c) = fae47d061d2088c27c056b66cec3ea45fc8bfe4b
 SHA1 (patch-ext_ming_mingc_swfdisplayitem.c) = 134f713c96454b9dec4851ccdcd2310ef24cc540
+SHA1 (patch-setup.rb) = d64c1babfae090cf8868a66c0bcd220ccba9a0a2
diff -r ba663c427185 -r b7917b6f4a27 multimedia/ruby-ming/patches/patch-setup.rb
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/ruby-ming/patches/patch-setup.rb       Mon Jun 08 14:55:17 2015 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-setup.rb,v 1.1 2015/06/08 14:55:17 taca Exp $
+
+Fix build problem on Ruby 2.2 and later.
+
+--- setup.rb.orig      2004-10-30 14:17:39.000000000 +0000
++++ setup.rb
+@@ -256,7 +256,7 @@ class ConfigTable_class
+ 
+ end
+ 
+-c = ::Config::CONFIG
++c = ::RbConfig::CONFIG
+ 
+ rubypath = c['bindir'] + '/' + c['ruby_install_name']
+ 
+@@ -1246,7 +1246,7 @@ class Installer
+ 
+   def ruby_extentions(dir)
+     Dir.open(dir) {|d|
+-      ents = d.select {|fname| /\.#{::Config::CONFIG['DLEXT']}\z/ =~ fname }
++      ents = d.select {|fname| /\.#{::RbConfig::CONFIG['DLEXT']}\z/ =~ fname }
+       if ents.empty?
+         setup_rb_error "no ruby extention exists: 'ruby #{$0} setup' first"
+       end



Home | Main Index | Thread Index | Old Index