class Carthage < Formula desc "Decentralized dependency manager for Cocoa" homepage "https://github.com/Carthage/Carthage" url "https://github.com/Carthage/Carthage.git", :tag => "0.30.1", :revision => "49c7901f851384a358bac2e5d2333cabc4f91900", :shallow => false head "https://github.com/Carthage/Carthage.git", :shallow => false bottle do cellar :any sha256 "dc0027940db2a5017b96228c1b9903a460cafac07e8fa47684805ceb784532cb" => :high_sierra sha256 "1d7ffb4d63ad048712d6b81f7e26fa4c5613d5dd6d34c3e5c46a086854d3a59e" => :sierra end depends_on :xcode => ["9.0", :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