aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/xctool.rb
blob: 8958c0f3632215e5b3befadf58cf4d49b1db20ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
require 'formula'

class Xcode5 < Requirement
  fatal true
  satisfy { MacOS::Xcode.version >= "5.0" }
end

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

  bottle do
    sha1 "d10ed0064f04d4f723d09c09868a44418b6ac272" => :mavericks
    sha1 "0947c080af4b20bcb950b18707bedca3e9a580ae" => :mountain_lion
  end

  depends_on :xcode
  depends_on Xcode5

  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