From 462a6f809e28f8cb03b3890827b480a6083b3c7e Mon Sep 17 00:00:00 2001 From: David Holm Date: Mon, 5 Nov 2012 20:19:20 +0100 Subject: [PATCH] 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 --- Formula/otx.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Formula/otx.rb b/Formula/otx.rb index 7db07512d03..255f3583fd4 100644 --- a/Formula/otx.rb +++ b/Formula/otx.rb @@ -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"