homebrew-core/Formula/carthage.rb
Justin Spahr-Summers 4493ecd682 carthage 0.5.3
Also, the `make clean` step can now be removed, per https://github.com/Carthage/Carthage/pull/284#issuecomment-70677079.

Closes Homebrew/homebrew#36646.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-08 14:59:05 +00:00

29 lines
884 B
Ruby

require "formula"
class Carthage < Formula
homepage "https://github.com/Carthage/Carthage"
url "https://github.com/Carthage/Carthage.git", :tag => "0.5.3",
:shallow => false
head "https://github.com/Carthage/Carthage.git", :shallow => false
depends_on :xcode => ["6.1.1", :build]
bottle do
cellar :any
sha1 "a65e585157e3a58e1496dedc85705694c5c2191c" => :yosemite
sha1 "1e5237464a5a2923739864f195e4eca3e184924e" => :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