summaryrefslogtreecommitdiff
path: root/www/clearsilver
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2015-06-11 16:43:32 +0000
committertaca <taca@pkgsrc.org>2015-06-11 16:43:32 +0000
commiteb0fe328d182afa0e5f65ddcdb0d35dee60e803c (patch)
tree1adb726c27e8265b33d3f5d5406ee560bfc3d681 /www/clearsilver
parentd268deafdfd75e1ce02947a54365a9ec61e2213a (diff)
downloadpkgsrc-eb0fe328d182afa0e5f65ddcdb0d35dee60e803c.tar.gz
Fix build problem of ruby-clearsilver package on Ruby 2.2.
Diffstat (limited to 'www/clearsilver')
-rw-r--r--www/clearsilver/distinfo3
-rw-r--r--www/clearsilver/patches/patch-ruby_install.rb24
2 files changed, 26 insertions, 1 deletions
diff --git a/www/clearsilver/distinfo b/www/clearsilver/distinfo
index 7b142148d05..af5097d27f7 100644
--- a/www/clearsilver/distinfo
+++ b/www/clearsilver/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.18 2014/09/25 12:25:02 fhajny Exp $
+$NetBSD: distinfo,v 1.19 2015/06/11 16:43:32 taca Exp $
SHA1 (clearsilver-0.10.5.tar.gz) = 138865dc91e27328fe29fcaaac1bc6558f19dd75
RMD160 (clearsilver-0.10.5.tar.gz) = bd5c616f326b544df8a74eec71a98a474b408249
@@ -8,4 +8,5 @@ SHA1 (patch-ae) = 58326210ecef3936579a19f3cbcb9b9374bc3541
SHA1 (patch-af) = e88106bb0c57d632c348bc16ff673e0ef7487847
SHA1 (patch-python_neo__cgi.c) = 0baf7f06bdf7c5686131b1b1abbd4fb0fef11c85
SHA1 (patch-ruby_Makefile) = 1b183a6a97ce04fd6387f328f7356d80b3c058ae
+SHA1 (patch-ruby_install.rb) = a6ce501bec857debce16ef6785604e68c1dec711
SHA1 (patch-util_neo__err.h) = 599f4d34b958cbdfb673e9b68409eeea5c1861aa
diff --git a/www/clearsilver/patches/patch-ruby_install.rb b/www/clearsilver/patches/patch-ruby_install.rb
new file mode 100644
index 00000000000..341c60eaa5a
--- /dev/null
+++ b/www/clearsilver/patches/patch-ruby_install.rb
@@ -0,0 +1,24 @@
+$NetBSD: patch-ruby_install.rb,v 1.1 2015/06/11 16:43:32 taca Exp $
+
+Fix build problem on Ruby 2.2 and later.
+
+--- ruby/install.rb.orig 2005-06-30 18:51:57.000000000 +0000
++++ ruby/install.rb
+@@ -45,7 +45,7 @@ end
+
+ class ConfigTable
+
+- c = ::Config::CONFIG
++ c = ::RbConfig::CONFIG
+
+ rubypath = c['bindir'] + '/' + c['ruby_install_name']
+
+@@ -695,7 +695,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|