aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-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