ruby-changes:15026
From: nagai <ko1@a...>
Date: Sat, 13 Mar 2010 10:07:42 +0900 (JST)
Subject: [ruby-changes:15026] Ruby:r26901 (trunk): * ext/tk/extconf.rb: fix [Bug #2840] Tk doesn't built in mingw.
nagai 2010-03-13 10:07:23 +0900 (Sat, 13 Mar 2010) New Revision: 26901 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26901 Log: * ext/tk/extconf.rb: fix [Bug #2840] Tk doesn't built in mingw. * ext/tk/lib/tk.rb: forgot updating RELEASE_DATE at last commit. * ext/tk/tkutil/tkutil.c: ditto. Modified files: trunk/ChangeLog trunk/ext/tk/extconf.rb trunk/ext/tk/lib/tk.rb trunk/ext/tk/tkutil/tkutil.c Index: ChangeLog =================================================================== --- ChangeLog (revision 26900) +++ ChangeLog (revision 26901) @@ -1,3 +1,7 @@ +Sat Mar 13 10:03:52 2010 Hidetoshi NAGAI <nagai@a...> + + * ext/tk/extconf.rb: fix [Bug #2840] Tk doesn't built in mingw. + Sat Mar 13 03:24:15 2010 Tanaka Akira <akr@f...> * tool/transcode-tblgen.rb: show cosumed time at last. Index: ext/tk/lib/tk.rb =================================================================== --- ext/tk/lib/tk.rb (revision 26900) +++ ext/tk/lib/tk.rb (revision 26901) @@ -5663,7 +5663,7 @@ #Tk.freeze module Tk - RELEASE_DATE = '2009-08-04'.freeze + RELEASE_DATE = '2010-02-01'.freeze autoload :AUTO_PATH, 'tk/variable' autoload :TCL_PACKAGE_PATH, 'tk/variable' Index: ext/tk/extconf.rb =================================================================== --- ext/tk/extconf.rb (revision 26900) +++ ext/tk/extconf.rb (revision 26901) @@ -634,7 +634,8 @@ TkLib_Config["tclConfig-dir"] = tclConfig_dir TkLib_Config["tkConfig-dir"] = tkConfig_dir - print("Search tclConfig.sh and tkConfig.sh in #{tclConfig_dir}.") + print("Search tclConfig.sh", (tclConfig_dir)? " (in #{tclConfig_dir})": "", + " and tkConfig.sh", (tkConfig_dir)? " (in #{tkConfig_dir})": "", ".") if tclConfig_dir tclConfig, tkConfig = search_tclConfig([ ((tclConfig_file)? tclConfig_file: tclConfig_dir), @@ -727,7 +728,14 @@ end def search_vers_on_path(vers, path, *heads) - files = Dir.glob(File.join(path, "*{#{heads.join(',')}}*.{#{CONFIG['LIBEXT']},#{CONFIG['DLEXT']}}")) + if enable_config("shared") == false + exts = CONFIG['LIBEXT'] + ',' + CONFIG['DLEXT'] + else + exts = CONFIG['DLEXT'] + ',' + CONFIG['LIBEXT'] + end + exts << ",dll,lib" if is_win32? + exts << ",bundle,dylib" if is_macosx? || /nextstep|openstep|rhapsody/ =~ RUBY_PLATFORM + files = Dir.glob(File.join(path, "*{#{heads.join(',')}}*.{#{exts}}")) vers.find_all{|ver| files.find{|f| f =~ /(#{ver}|#{ver.delete('.')})/} } end @@ -1256,6 +1264,8 @@ have_func("rb_obj_taint", "ruby.h") print(".") # progress have_func("rb_set_safe_level_force", "ruby.h") +print(".") # progress +have_func("rb_sourcefile", "ruby.h") print("\n") # progress print("check struct members.") Index: ext/tk/tkutil/tkutil.c =================================================================== --- ext/tk/tkutil/tkutil.c (revision 26900) +++ ext/tk/tkutil/tkutil.c (revision 26901) @@ -7,7 +7,7 @@ ************************************************/ -#define TKUTIL_RELEASE_DATE "2009-10-27" +#define TKUTIL_RELEASE_DATE "2010-02-01" #include "ruby.h" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/