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.1",
|
|
:revision => "268490d2c6a27586515c15c39ddf02ae17492f79",
|
|
:shallow => false
|
|
head "https://github.com/Carthage/Carthage.git", :shallow => false
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "e9d72b290971cb7ec20c2e4d72008f8e85e1a1e2f4965d459abcd42cfae81bdd" => :sierra
|
|
sha256 "1c5275e2a68e343642e3556c130a0e7103807c8495ebea945cce4e7291309c4f" => :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
|