otx: Patch MacOS SDK paths

otx is hardcoded to use the MacOSX10.6 SDK which is no longer available in
Mountain Lion. By replacing this with MacOSX#{MacOS.version} the package can
be successfully built even on 10.8.

Closes Homebrew/homebrew#15879.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
master
David Holm 2012-11-05 20:19:20 +01:00 committed by Charlie Sharpsteen
parent 897cbf1b5f
commit 462a6f809e
1 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,10 @@ class Otx < Formula
depends_on :xcode # For working xcodebuild.
def install
inreplace 'otx.xcodeproj/project.pbxproj' do |s|
s.gsub! "MacOSX10.6.sdk", "MacOSX#{MacOS.version}.sdk"
end
system 'xcodebuild SYMROOT=build'
build = buildpath/'build/Release'
bin.install build+"otx"