homebrew-core/Formula/xctool.rb

31 lines
732 B
Ruby
Raw Normal View History

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