aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/xctool.rb
blob: 941c8ddb4e9d253731aff708b551823778c60456 (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.11.tar.gz'
  sha1 '3187db03ac04f8d3a763b83d6e950d0a7571fb6d'
  head 'https://github.com/facebook/xctool.git'

  depends_on :xcode
  depends_on :macos => :lion

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

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