29 lines
1 KiB
Ruby
29 lines
1 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.23.0",
|
|
:revision => "efb4e12a206dd6edda8bb5868144c87fdcd7f75e",
|
|
:shallow => false
|
|
head "https://github.com/Carthage/Carthage.git", :shallow => false
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "35dbf30201ae714b091655f8f2bf2f6563bb0c2b92e679665e9b484e40ba199e" => :sierra
|
|
sha256 "ba6e5210e4b71c97fb82318442d32da0875cc47e88da542b2dbb8a922424cf97" => :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
|