Project

General

Profile

Backport #5048 » patch-ext-tk-mac_lion.diff

patch for ext/tk/extconf.rb - kimuraw (Wataru Kimura), 07/27/2011 11:37 PM

View differences:

ext/tk/extconf.rb (working copy)
paths.reverse! unless TkLib_Config["ActiveTcl"] # system has higher priority
paths.map{|dir| dir.strip.chomp('/')}.each{|dir|
next unless File.exist?(File.join(dir, "Tcl.framework", "Headers"))
next unless File.directory?(tcldir = File.join(dir, "Tcl.framework"))
next unless File.exist?(File.join(dir, "Tk.framework"), "Headers")
next unless File.directory?(tkdir = File.join(dir, "Tk.framework"))
TkLib_Config["tcltk-framework"] = dir
return [tcldir, tkdir]
(1-1/2)