From 615a2d4f71dc1ba94f133e9189d0ea8aad873506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Fri, 3 May 2013 15:11:10 +0200 Subject: [PATCH] xctool 0.1.0 Closes Homebrew/homebrew#19590. Signed-off-by: Adam Vandenberg --- Formula/xctool.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Formula/xctool.rb diff --git a/Formula/xctool.rb b/Formula/xctool.rb new file mode 100644 index 0000000000..97cb8dc9a4 --- /dev/null +++ b/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