homebrew-core/Formula/sourcekitten.rb
2017-05-13 19:07:12 +02:00

27 lines
934 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.17.3",
:revision => "7a5be36967104625147e81cdb238c6d7d2a91b7c"
head "https://github.com/jpsim/SourceKitten.git"
bottle do
cellar :any
sha256 "53e121192b4bab4f9211f4c4ce66a5f2e1ff1040c1ab0623d1a3b150990ba41e" => :sierra
sha256 "173a733f3edc50101365964d602936c41f6f8318af536d089760ae3d3d50a757" => :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