blob: 15cc1a1cedcec8ae6796cf29184ff2c9eceab12a (
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.16.tar.gz'
  sha1 'c4161403b5f742467b37fd41887fde3d99a5989d'
  head 'https://github.com/facebook/xctool.git'
  bottle do
    sha1 "67acdcac257dd59be63b1ac36b717b5378ad9330" => :mavericks
    sha1 "326a29618711ba2233f5602c30f7bce74b4fe8ff" => :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
  |