homebrew-core/Formula/xctool.rb
Greg Haines 7355ebb3a5 xctool 0.1.2
Closes Homebrew/homebrew#19714.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-10 08:34:03 -07:00

24 lines
718 B
Ruby

require 'formula'
class Xctool < Formula
homepage 'https://github.com/facebook/xctool'
url 'https://github.com/facebook/xctool/archive/v0.1.2.tar.gz'
sha1 '86ac6dfb61fa80a62ecd80e3632fac091f665c8a'
head 'https://github.com/facebook/xctool.git'
depends_on :xcode
def install
system './build.sh'
# Install all files together in libexec so the binary can find the dylibs.
libexec.install 'build/Products/Release/xctool'
libexec.install Dir['build/Products/Release/*.dylib']
libexec.install 'build/Products/Release/mobile-installation-helper.app'
# Link the binary into bin
bin.install_symlink libexec/'xctool'
end
test do
system "(#{bin}/xctool -help; true)"
end
end