summaryrefslogtreecommitdiff
path: root/databases/ruby-vapor/patches/patch-install.rb
blob: ba99010c5faf81e7cecf9223a656a52322ed3eb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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|