blob: 255f3583fd4dd03bff5d1d5dde5ffc33c7fdbb69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
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
|