Files
tigerbrew/Library/Formula/otx.rb
T
David Holm 0b6a716d57 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>
2012-11-07 20:00:59 -08:00

20 lines
474 B
Ruby

require 'formula'
class Otx < Formula
homepage 'http://otx.osxninja.com/'
head 'http://otx.osxninja.com/builds/trunk/', :using => :svn
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"
prefix.install build+"otx.app"
end
end