class Sourcekitten < Formula desc "Framework and command-line tool for interacting with SourceKit" homepage "https://github.com/jpsim/SourceKitten" url "https://github.com/jpsim/SourceKitten.git", :tag => "0.17.5", :revision => "7859eb9d6684198403b9700eb31b066c5f184fc4" head "https://github.com/jpsim/SourceKitten.git" bottle do cellar :any sha256 "cf660b627e3aa57b7b9f481d7dfc1243effd93cb2ba7eddc52342ea64cc38a4c" => :sierra sha256 "6a79527ad7b83aa2b29b7b732935949c162102055b401c03108afe52c00045ed" => :el_capitan end depends_on :xcode => ["6.0", :run] depends_on :xcode => ["8.0", :build] def install system "make", "prefix_install", "PREFIX=#{prefix}", "TEMPORARY_FOLDER=#{buildpath}/SourceKitten.dst" end test do # Rewrite test after sandbox issues investigated. # https://github.com/Homebrew/homebrew/pull/50211 system "#{bin}/sourcekitten", "version" end end