aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUllrich Schäfer2013-05-03 15:11:10 +0200
committerAdam Vandenberg2013-05-06 10:53:36 -0700
commit27f323c591e24f81e5b45d9cfbf0c9beb1398ca3 (patch)
tree85a5614eb7e5cbda4776d533c5d77b910f34f943
parent3d03b9db3d384a8667edfa987eecd50590314677 (diff)
downloadhomebrew-27f323c591e24f81e5b45d9cfbf0c9beb1398ca3.tar.bz2
xctool 0.1.0
Closes #19590. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/xctool.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/xctool.rb b/Library/Formula/xctool.rb
new file mode 100644
index 000000000..97cb8dc9a
--- /dev/null
+++ b/Library/Formula/xctool.rb
@@ -0,0 +1,23 @@
+require 'formula'
+
+class Xctool < Formula
+ homepage 'https://github.com/facebook/xctool'
+ url 'https://github.com/facebook/xctool/archive/v0.1.0.tar.gz'
+ sha1 'f5cf21d14f26127cea6b6b069fcc2c7387c41af6'
+
+ 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