aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDavid Holm2012-11-05 20:19:20 +0100
committerCharlie Sharpsteen2012-11-07 20:00:59 -0800
commit0b6a716d57ae85adfbc58a851b9ea040165b8492 (patch)
tree916c5bf18f66adc53a2fba2d8af567a50c384b25 /Library/Formula
parentd652c012012e36946dcbfe2e79b3716c5912a891 (diff)
downloadhomebrew-0b6a716d57ae85adfbc58a851b9ea040165b8492.tar.bz2
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 #15879. Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/otx.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/otx.rb b/Library/Formula/otx.rb
index 7db07512d..255f3583f 100644
--- a/Library/Formula/otx.rb
+++ b/Library/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"