homebrew-core/Formula/sourcekitten.rb
2017-08-21 21:44:43 +02: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.1",
:revision => "7c4c6d8194389493f841b75fafa8c29b274c7ea6"
head "https://github.com/jpsim/SourceKitten.git"
bottle do
cellar :any
sha256 "4742cb810a036f6c23eb61aaffa14ea3e90e69053735afe87bae8e57cf113919" => :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