diff --git a/Formula/sourcekitten.rb b/Formula/sourcekitten.rb new file mode 100644 index 0000000000..ebefb8e9f2 --- /dev/null +++ b/Formula/sourcekitten.rb @@ -0,0 +1,15 @@ +class Sourcekitten < Formula + homepage "https://github.com/jpsim/SourceKitten" + url "https://github.com/jpsim/SourceKitten.git", :tag => "0.3.1" + head "https://github.com/jpsim/SourceKitten.git" + + depends_on :xcode => ["6.1.1", :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