homebrew-core/Formula/sourcekitten.rb
2017-07-12 23:09:19 -07:00

26 lines
841 B
Ruby

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.18.0",
:revision => "9b2867db9f1cb3138fb5a77f7993e05c64899ab1"
head "https://github.com/jpsim/SourceKitten.git"
bottle do
cellar :any
sha256 "0e6680efc29f74ce6d3e2037645fbea325f4de003e239566a22c81b3ef838a58" => :sierra
end
depends_on :xcode => ["6.0", :run]
depends_on :xcode => ["8.3", :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