22 lines
713 B
Text
22 lines
713 B
Text
$NetBSD: patch-rakefile,v 1.1 2015/09/27 06:41:06 taca Exp $
|
|
|
|
--- rakefile.orig 2009-09-08 20:36:55.000000000 +0000
|
|
+++ rakefile
|
|
@@ -22,7 +22,7 @@ DEST_DIR = 'lib'
|
|
CLASSES_DIR = File.join(SWIG_DIR, 'classes')
|
|
|
|
# THE BINARY LIBRARY TO BE COMPILED
|
|
-DLL_LIB = "wxruby2.#{Config::CONFIG["DLEXT"]}"
|
|
+DLL_LIB = "wxruby2.#{RbConfig::CONFIG["DLEXT"]}"
|
|
TARGET_LIB = File.join(DEST_DIR, DLL_LIB)
|
|
|
|
# FOR ENSURING SUITABLE SWIG VERSION IS AVAILABLE
|
|
@@ -31,7 +31,7 @@ SWIG_CMD = ENV['SWIG_CMD'] || "swig"
|
|
case RUBY_VERSION
|
|
when /^1\.8/
|
|
SWIG_MINIMUM_VERSION = '1.3.32'
|
|
-when /^1\.9/
|
|
+when /^(1\.9|2\.[0-9])/
|
|
SWIG_MINIMUM_VERSION = '1.3.37'
|
|
else
|
|
raise "This version of Ruby (#{RUBY_VERSION}) is not supported"
|