homebrew-core/Formula/carthage.rb
2017-07-10 07:03:21 -07:00

28 lines
978 B
Ruby

class Carthage < Formula
desc "Decentralized dependency manager for Cocoa"
homepage "https://github.com/Carthage/Carthage"
url "https://github.com/Carthage/Carthage.git",
:tag => "0.24.0",
:revision => "b0188e10ae606e165f77b225deb50e908ceb8f50",
:shallow => false
head "https://github.com/Carthage/Carthage.git", :shallow => false
bottle do
cellar :any
sha256 "ae221f34a59985f753f033cf38b5d2719b60e306b295cf2c4db0d8ad97614a31" => :sierra
end
depends_on :xcode => ["8.3", :build]
def install
system "make", "prefix_install", "PREFIX=#{prefix}"
bash_completion.install "Source/Scripts/carthage-bash-completion" => "carthage"
zsh_completion.install "Source/Scripts/carthage-zsh-completion" => "_carthage"
fish_completion.install "Source/Scripts/carthage-fish-completion" => "carthage.fish"
end
test do
(testpath/"Cartfile").write 'github "jspahrsummers/xcconfigs"'
system bin/"carthage", "update"
end
end