summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2015-06-03 12:04:16 +0000
committertaca <taca@pkgsrc.org>2015-06-03 12:04:16 +0000
commit11615f6d9cf95dc712921d0863cafd71886b9e59 (patch)
treea9a69482da380ea4fe4e84f25dba37cddcdc9ead
parentbcc89d2f3b12e77b943e21de035c147a721f2f60 (diff)
downloadpkgsrc-11615f6d9cf95dc712921d0863cafd71886b9e59.tar.gz
Fix build problem on Ruby 2.2 and later.
-rw-r--r--databases/ruby-vapor/distinfo3
-rw-r--r--databases/ruby-vapor/patches/patch-install.rb24
2 files changed, 26 insertions, 1 deletions
diff --git a/databases/ruby-vapor/distinfo b/databases/ruby-vapor/distinfo
index 3d80f806510..a32fabcfafd 100644
--- a/databases/ruby-vapor/distinfo
+++ b/databases/ruby-vapor/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.4 2006/01/03 14:25:49 taca Exp $
+$NetBSD: distinfo,v 1.5 2015/06/03 12:04:16 taca Exp $
SHA1 (vapor-0.81.tar.gz) = af5c5f33339c7130296e25671d97dda1f7e81c4f
RMD160 (vapor-0.81.tar.gz) = 48b39d2bd0000e30161b82e48853125e3a8e460c
Size (vapor-0.81.tar.gz) = 102993 bytes
+SHA1 (patch-install.rb) = f4d166ec92912014b40175d90158234312a962e0
diff --git a/databases/ruby-vapor/patches/patch-install.rb b/databases/ruby-vapor/patches/patch-install.rb
new file mode 100644
index 00000000000..ba99010c5fa
--- /dev/null
+++ b/databases/ruby-vapor/patches/patch-install.rb
@@ -0,0 +1,24 @@
+$NetBSD: patch-install.rb,v 1.1 2015/06/03 12:04:16 taca Exp $
+
+Fix build problem on Ruby 2.2 and later.
+
+--- install.rb.orig 2003-11-22 08:36:17.000000000 +0000
++++ install.rb
+@@ -74,7 +74,7 @@ end
+
+ class ConfigTable
+
+- c = ::Config::CONFIG
++ c = ::RbConfig::CONFIG
+
+ rubypath = c['bindir'] + '/' + c['ruby_install_name']
+
+@@ -745,7 +745,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|