Skip to content

Instantly share code, notes, and snippets.

@x2on
Created November 20, 2013 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save x2on/7562486 to your computer and use it in GitHub Desktop.
Save x2on/7562486 to your computer and use it in GitHub Desktop.
require 'formula'
class Xctool < Formula
homepage 'https://github.com/facebook/xctool'
url 'https://github.com/facebook/xctool/archive/v0.1.13.tar.gz'
sha1 '60ad514c9b0712177ef89bf576d082d7301a25f0'
head 'https://github.com/AutoScout24/xctool.git', :branch => 'archivePath'
depends_on :xcode
depends_on :macos => :lion
def install
if build.head?
system "./scripts/build.sh 'XT_INSTALL_ROOT=#{libexec}'"
else
system "./build.sh 'XT_INSTALL_ROOT=#{libexec}'"
end
bin.install_symlink "#{libexec}/bin/xctool"
end
test do
system "(#{bin}/xctool -help; true)"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment