2015-01-16 01:51:50 +00:00
|
|
|
class Sourcekitten < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Framework and command-line tool for interacting with SourceKit"
|
2015-01-16 01:51:50 +00:00
|
|
|
homepage "https://github.com/jpsim/SourceKitten"
|
2015-11-11 00:28:42 +00:00
|
|
|
url "https://github.com/jpsim/SourceKitten.git", :tag => "0.6.0", :revision => "1906127b7fc2c4dfa2d441b0f63ee9be05b25e1a"
|
2015-01-16 01:51:50 +00:00
|
|
|
head "https://github.com/jpsim/SourceKitten.git"
|
|
|
|
|
2015-01-18 23:49:54 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-11-11 00:33:33 +00:00
|
|
|
sha256 "a1bda51cd5fcc241ed4a958a4ed7b1e129cb8db6bf294efc830053ccf28d51ba" => :el_capitan
|
|
|
|
sha256 "090611bbba3692940e2cc9f951985fba7991e7b19edbff96834138e4ac77b1a5" => :yosemite
|
2015-01-18 23:49:54 +00:00
|
|
|
end
|
|
|
|
|
2015-11-03 21:20:22 +00:00
|
|
|
depends_on :xcode => ["7.1", :build]
|
2015-01-16 01:51:50 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "make", "prefix_install", "PREFIX=#{prefix}", "TEMPORARY_FOLDER=#{buildpath}/SourceKitten.dst"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/sourcekitten", "syntax", "--text", "import Foundation // Hello World"
|
|
|
|
end
|
|
|
|
end
|