xchat-ruby/xchat-ruby-1.2-ruby22-remove-deprecated-usage.patch
2015-01-16 16:07:30 +09:00

24 lines
802 B
Diff

--- xchat-ruby-1.2-src/src/Makefile.rbconfig 2015-01-16 15:59:36.154426689 +0900
+++ xchat-ruby-1.2-src/src/Makefile 2015-01-16 16:00:33.272758195 +0900
@@ -4,7 +4,7 @@
OBJ=xchat-ruby.o
-ARCHDIR=`$(RUBY) -rrbconfig -e "puts Config::CONFIG['archdir']"`
+ARCHDIR=`$(RUBY) -rrbconfig -e "puts RbConfig::CONFIG['archdir']"`
XCHAT_RUBY=xchat-ruby
SO_FILE=$(XCHAT_RUBY).so
--- xchat-ruby-1.2-src/src/win32/make.rb.rbconfig 2007-04-26 20:16:32.000000000 +0900
+++ xchat-ruby-1.2-src/src/win32/make.rb 2015-01-16 16:00:45.426615950 +0900
@@ -9,8 +9,8 @@
end
-$archdir = Config::CONFIG['archdir']
-$libs = Config::CONFIG['LIBS']
+$archdir = RbConfig::CONFIG['archdir']
+$libs = RbConfig::CONFIG['LIBS']
# first, process the header file
puts "Building 'xchat-ruby-plugin.h'..."