30 lines
1.0 KiB
Ruby
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.20.0",
|
|
:revision => "f4131ea176545117df4d890c9c2514353c2364ab",
|
|
:shallow => false
|
|
head "https://github.com/Carthage/Carthage.git", :shallow => false
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "2c2d2b603e5a6ac5e0170a32fbb6505549679ced5c9ff3a762ac45200e5962ff" => :sierra
|
|
sha256 "9c1924943b582ee6e89422b77974222989c182787e90bdf907a3ebd10c7d6ea4" => :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
|