homebrew-core/Formula/sourcekitten.rb

22 lines
730 B
Ruby
Raw Normal View History

class Sourcekitten < Formula
desc "Framework and command-line tool for interacting with SourceKit"
homepage "https://github.com/jpsim/SourceKitten"
2015-05-18 05:07:55 +00:00
url "https://github.com/jpsim/SourceKitten.git", :tag => "0.4.3", :revision => "d3dd7c76ca17b8e43165588a61bd65772e67cdac"
head "https://github.com/jpsim/SourceKitten.git"
2015-01-18 23:49:54 +00:00
bottle do
cellar :any
2015-05-18 05:53:40 +00:00
sha256 "eddf7ddfb7e49f8219530732fe502ccf181afb8a54f9c6b7ac24b85e7f36bc10" => :yosemite
2015-01-18 23:49:54 +00:00
end
depends_on :xcode => ["6.3", :build]
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