class Carthage < Formula desc "Decentralized dependency manager for Cocoa" homepage "https://github.com/Carthage/Carthage" url "https://github.com/Carthage/Carthage.git", :tag => "0.22.0", :revision => "815bc1f366528667be97348de1df99ba59c8530b", :shallow => false head "https://github.com/Carthage/Carthage.git", :shallow => false bottle do cellar :any sha256 "0a0d0a6ef112485f9f283c1a1146f104acc6916ccb1bf04f481bfb6c92fc3331" => :sierra sha256 "891dbe34c94c7642ad462fc1147e6eb2a3918279792db303bdef5b033d248e93" => :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