27 lines
949 B
Ruby
27 lines
949 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.24.0",
|
|
:revision => "35c9e0e437592661a51b160d80a4feaa5d4630d1"
|
|
head "https://github.com/jpsim/SourceKitten.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "1385ea72ca3b2ce85ed43cf743e6a5ce98b01d9a5db10e840e34edb4425e421c" => :mojave
|
|
sha256 "07bd838b02b9e5236c4c0671546356ab3ad79a6569d12a6880e0abcda4ff13cf" => :high_sierra
|
|
end
|
|
|
|
depends_on :xcode => ["10.0", :build]
|
|
depends_on :xcode => "6.0"
|
|
|
|
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
|