class Carthage < Formula desc "Decentralized dependency manager for Cocoa" homepage "https://github.com/Carthage/Carthage" url "https://github.com/Carthage/Carthage.git", :tag => "0.26.1", :revision => "ff76d2034d2d0e3ae37fcdb3338210ba55cdcb62", :shallow => false head "https://github.com/Carthage/Carthage.git", :shallow => false bottle do cellar :any sha256 "307271520e6de2d57b12d368fd4b72334fdf9f2e25e3cedeb6cc7ad60afafc17" => :high_sierra sha256 "030c1c68157e77bee8924daaf215a5198467726144ee46d75725ff26b8a7451d" => :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