2013-05-03 13:11:10 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Xctool < Formula
|
|
|
|
homepage 'https://github.com/facebook/xctool'
|
2013-06-04 18:33:03 +00:00
|
|
|
url 'https://github.com/facebook/xctool/archive/v0.1.4.tar.gz'
|
|
|
|
sha1 'da0243f65ae825b920e60d850c42230aa1a5afe1'
|
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
|
|
|
|
|
|
|
|
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
|