2013-05-03 13:11:10 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2014-04-11 18:42:31 +00:00
|
|
|
class Xcode5 < Requirement
|
|
|
|
fatal true
|
|
|
|
satisfy { MacOS::Xcode.version >= "5.0" }
|
|
|
|
end
|
|
|
|
|
2013-05-03 13:11:10 +00:00
|
|
|
class Xctool < Formula
|
|
|
|
homepage 'https://github.com/facebook/xctool'
|
2014-05-29 00:27:12 +00:00
|
|
|
url 'https://github.com/facebook/xctool/archive/v0.1.16.tar.gz'
|
|
|
|
sha1 'c4161403b5f742467b37fd41887fde3d99a5989d'
|
2013-05-06 20:23:37 +00:00
|
|
|
head 'https://github.com/facebook/xctool.git'
|
2013-05-03 13:11:10 +00:00
|
|
|
|
2014-04-15 07:19:16 +00:00
|
|
|
bottle do
|
2014-05-29 01:15:38 +00:00
|
|
|
sha1 "67acdcac257dd59be63b1ac36b717b5378ad9330" => :mavericks
|
|
|
|
sha1 "326a29618711ba2233f5602c30f7bce74b4fe8ff" => :mountain_lion
|
2014-04-15 07:19:16 +00:00
|
|
|
end
|
|
|
|
|
2013-05-03 13:11:10 +00:00
|
|
|
depends_on :xcode
|
2014-04-11 18:42:31 +00:00
|
|
|
depends_on Xcode5
|
2013-05-03 13:11:10 +00:00
|
|
|
|
|
|
|
def install
|
2014-03-15 02:30:04 +00:00
|
|
|
system "./scripts/build.sh", "XT_INSTALL_ROOT=#{libexec}"
|
2013-07-14 02:42:39 +00:00
|
|
|
bin.install_symlink "#{libexec}/bin/xctool"
|
2013-05-03 13:11:10 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "(#{bin}/xctool -help; true)"
|
|
|
|
end
|
|
|
|
end
|