diff options
author | taca <taca> | 2015-06-03 12:04:16 +0000 |
---|---|---|
committer | taca <taca> | 2015-06-03 12:04:16 +0000 |
commit | 71afc177d5fa422ee1f4cec4303c2adacb794cd0 (patch) | |
tree | a9a69482da380ea4fe4e84f25dba37cddcdc9ead /databases | |
parent | 162487a03e33870c8d5f6109947b307f23a4aaf0 (diff) | |
download | pkgsrc-71afc177d5fa422ee1f4cec4303c2adacb794cd0.tar.gz |
Fix build problem on Ruby 2.2 and later.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/ruby-vapor/distinfo | 3 | ||||
-rw-r--r-- | databases/ruby-vapor/patches/patch-install.rb | 24 |
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| |