homebrew-core/Formula/carthage.rb
2015-02-13 22:46:58 -05:00

29 lines
882 B
Ruby

require "formula"
class Carthage < Formula
homepage "https://github.com/Carthage/Carthage"
url "https://github.com/Carthage/Carthage.git", :tag => "0.6",
:shallow => false
head "https://github.com/Carthage/Carthage.git", :shallow => false
depends_on :xcode => ["6.1.1", :build]
bottle do
cellar :any
sha1 "f3ae40ed9f20bf3064ee7bdcae587c514e524294" => :yosemite
sha1 "4f6942408eaf0df42d25a23a55643aa444fe5c37" => :mavericks
end
def install
# Carthage likes to do stuff with submodules itself so we need a "real"
# git clone rather than letting it play with our cache.
cp_r cached_download/".git", "."
system "make", "prefix_install", "PREFIX=#{prefix}"
end
test do
(testpath/"Cartfile").write 'github "jspahrsummers/xcconfigs"'
system "#{bin}/carthage", "update"
end
end