source: trunk/dports/ruby/rb-cocoa/files/patch-install.rb.diff @ 82060

Last change on this file since 82060 was 82060, checked in by kimuraw@…, 9 years ago

ruby/rb-cocoa: fix #30563, build failure on Lion.

File size: 558 bytes
  • install.rb

    old new  
    649649      sys_version = `uname -r`.to_f
    650650      if sys_version < 8.0
    651651        xcode_version = 0 # <= Xcode 1.5 on MacOS X 10.3
     652      elsif sys_version >= 11.0
     653        xcode_version = 620 # Lion uses Xcode 4.1 or later
    652654      elsif /DevToolsCore-(\d+)/.match(`#{buildcommand} -version`)
    653         xcode_version = $1.to_i
     655        xcode_version = $1.to_i # Xcode 2.x or 3.x
    654656      else
    655657        xcode_version = 0 # unknown
    656658      end
Note: See TracBrowser for help on using the repository browser.