carthage 0.3.1 (new formula)

Closes Homebrew/homebrew#34807.
master
Mike McQuaid 2014-12-19 18:52:01 +00:00
parent ffc4756efc
commit 5a6b8a9614
1 changed files with 26 additions and 0 deletions

26
Formula/carthage.rb Normal file
View File

@ -0,0 +1,26 @@
require "formula"
class Carthage < Formula
homepage "https://github.com/Carthage/Carthage"
url "https://github.com/Carthage/Carthage.git", :tag => "0.3.1",
:shallow => false
head "https://github.com/Carthage/Carthage.git", :shallow => false
depends_on :xcode => ["6.1.1", :build]
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}"
# Carthage puts some stuff in /tmp so clean it up after we're done.
system "make", "clean"
end
test do
(testpath/"Cartfile").write 'github "jspahrsummers/xcconfigs"'
system "#{bin}/carthage", "update"
end
end