diff options
| author | David Holm | 2012-11-05 20:19:20 +0100 |
|---|---|---|
| committer | Charlie Sharpsteen | 2012-11-07 20:00:59 -0800 |
| commit | 0b6a716d57ae85adfbc58a851b9ea040165b8492 (patch) | |
| tree | 916c5bf18f66adc53a2fba2d8af567a50c384b25 /Library/Formula | |
| parent | d652c012012e36946dcbfe2e79b3716c5912a891 (diff) | |
| download | homebrew-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.rb | 4 |
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" |
