2013-05-03 13:11:10 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Xctool < Formula
|
|
|
|
homepage 'https://github.com/facebook/xctool'
|
2013-07-14 02:42:39 +00:00
|
|
|
url 'https://github.com/facebook/xctool/archive/v0.1.7.tar.gz'
|
|
|
|
sha1 'd835f1a34d7d11278664162d4361a0bb03941e5d'
|
2013-05-06 20:23:37 +00:00
|
|
|
head 'https://github.com/facebook/xctool.git'
|
2013-05-03 13:11:10 +00:00
|
|
|
|
|
|
|
depends_on :xcode
|
2013-07-14 02:42:39 +00:00
|
|
|
depends_on :macos => :lion
|
2013-05-03 13:11:10 +00:00
|
|
|
|
|
|
|
def install
|
2013-07-14 02:42:39 +00:00
|
|
|
system "./build.sh 'XT_INSTALL_ROOT=#{libexec}'"
|
|
|
|
bin.install_symlink "#{libexec}/bin/xctool"
|
2013-05-03 13:11:10 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "(#{bin}/xctool -help; true)"
|
|
|
|
end
|
|
|
|
end
|