class Carthage < Formula desc "Decentralized dependency manager for Cocoa" homepage "https://github.com/Carthage/Carthage" url "https://github.com/Carthage/Carthage.git", :tag => "0.27.0", :revision => "f65531d9c3d80875a74655f4a4040030a982b08d", :shallow => false head "https://github.com/Carthage/Carthage.git", :shallow => false bottle do cellar :any sha256 "6932d8e5bf91ff66812d438dec5ee4935b1c3cb3d0695940a8b1e49f7a9d541e" => :high_sierra sha256 "e4a1e11c3681944b30c24c7772c661e9bbac55fa6e09ba5b8db055f6d389ee4a" => :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