xctool 0.1.7

0.1.7 introduces a new directory layout where the xctool files are stored in
bin, lib, and libexec dirs -- https://github.com/facebook/xctool/commit/d6592a7

The old formula will probably break for anyone that tries to use --HEAD :-(

Closes Homebrew/homebrew#21199.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Fred Potter 2013-07-13 19:42:39 -07:00 committed by Mike McQuaid
parent 2effab727a
commit 213790704b

View file

@ -2,20 +2,16 @@ require 'formula'
class Xctool < Formula
homepage 'https://github.com/facebook/xctool'
url 'https://github.com/facebook/xctool/archive/v0.1.5.tar.gz'
sha1 '6b7442963a069b28c823c727756c747def29f773'
url 'https://github.com/facebook/xctool/archive/v0.1.7.tar.gz'
sha1 'd835f1a34d7d11278664162d4361a0bb03941e5d'
head 'https://github.com/facebook/xctool.git'
depends_on :xcode
depends_on :macos => :lion
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'
system "./build.sh 'XT_INSTALL_ROOT=#{libexec}'"
bin.install_symlink "#{libexec}/bin/xctool"
end
test do