aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/carthage.rb
blob: dd20510098d459e0dbda8c8dc2be9e760f5dfab3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class Carthage < Formula
  homepage "https://github.com/Carthage/Carthage"
  url "https://github.com/Carthage/Carthage.git", :tag => "0.6.2",
                                                  :shallow => false
  head "https://github.com/Carthage/Carthage.git", :shallow => false

  depends_on :xcode => ["6.1.1", :build]

  bottle do
    cellar :any
    sha1 "dde8190c8b66184fd85111b739039aefb5d050a9" => :yosemite
    sha1 "b663dcf2608c97c7542121eb1a011ca7d0df70cd" => :mavericks
  end

  def install
    system "make", "prefix_install", "PREFIX=#{prefix}"
  end

  test do
    (testpath/"Cartfile").write 'github "jspahrsummers/xcconfigs"'
    system "#{bin}/carthage", "update"
  end
end