summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2015-06-08 14:55:17 +0000
committertaca <taca@pkgsrc.org>2015-06-08 14:55:17 +0000
commit8e195385c66f84af6ac2ae45290c3c7c9157f3e6 (patch)
tree93a4a8907b58ae7e396e39e737b05cfde2dfa7b5
parent0180964adc6f420e387d7e7a1f82cc9abac38867 (diff)
downloadpkgsrc-8e195385c66f84af6ac2ae45290c3c7c9157f3e6.tar.gz
Fix build problem on Ruby 2.2 and later.
-rw-r--r--multimedia/ruby-ming/distinfo3
-rw-r--r--multimedia/ruby-ming/patches/patch-setup.rb24
2 files changed, 26 insertions, 1 deletions
diff --git a/multimedia/ruby-ming/distinfo b/multimedia/ruby-ming/distinfo
index d803bce456b..8e30d1d3197 100644
--- a/multimedia/ruby-ming/distinfo
+++ b/multimedia/ruby-ming/distinfo
@@ -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-ac) = c6604cb8856ea42d1083894eae9f60c997bfa27a
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 --git a/multimedia/ruby-ming/patches/patch-setup.rb b/multimedia/ruby-ming/patches/patch-setup.rb
new file mode 100644
index 00000000000..3a01b984660
--- /dev/null
+++ b/multimedia/ruby-ming/patches/patch-setup.rb
@@ -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