homebrew-core/Formula/otx.rb

20 lines
474 B
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Otx < Formula
homepage 'http://otx.osxninja.com/'
2012-05-10 14:10:12 +00:00
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'
2012-11-11 19:20:09 +00:00
bin.install build/"otx"
prefix.install build/"otx.app"
end
end