aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/xctool.rb
blob: 9ba1bd75d76f66918c9cfd608caffbe0292bbccf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require 'formula'

class Xctool < Formula
  homepage 'https://github.com/facebook/xctool'
  url 'https://github.com/facebook/xctool/archive/v0.1.14.tar.gz'
  sha1 '57e610081b781b19ec0c0f2ca81d897b708826f4'
  head 'https://github.com/facebook/xctool.git'

  depends_on :xcode
  depends_on :macos => :lion

  def install
    system "./scripts/build.sh", "XT_INSTALL_ROOT=#{libexec}"
    bin.install_symlink "#{libexec}/bin/xctool"
  end

  test do
    system "(#{bin}/xctool -help; true)"
  end
end