homebrew-core/Formula/carthage.rb

30 lines
1.0 KiB
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.19.1",
:revision => "6e3508c881122f64b9e1c7cb768541fd9e99ec3b",
:shallow => false
head "https://github.com/Carthage/Carthage.git", :shallow => false
bottle do
cellar :any
sha256 "3b7a45762c5fbef3995c96f6b829000ec7d59eb034b4b33dfefbd4b2101199c5" => :sierra
sha256 "3f9b003d3a775a0e2c16636868622edeed11537f7354b0e34d913dae21d11fa4" => :el_capitan
end
depends_on :xcode => ["8.2", :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