require 'formula' class Xctool < Formula homepage 'https://github.com/facebook/xctool' url 'https://github.com/facebook/xctool/archive/v0.1.10.tar.gz' sha1 '2d7e54959f8b174719720557b3b001132c1c9878' head 'https://github.com/facebook/xctool.git' depends_on :xcode depends_on :macos => :lion def install system "./build.sh 'XT_INSTALL_ROOT=#{libexec}'" bin.install_symlink "#{libexec}/bin/xctool" end test do system "(#{bin}/xctool -help; true)" end end