homebrew-core/Formula/swiftlint.rb
2015-11-03 18:02:33 -08:00

23 lines
799 B
Ruby

class Swiftlint < Formula
desc "Experimental tool to enforce Swift style and conventions"
homepage "https://github.com/realm/SwiftLint"
url "https://github.com/realm/SwiftLint.git", :tag => "0.3.0", :revision => "ae595d67edc24383446a346e218d66a00994bab5"
head "https://github.com/realm/SwiftLint.git"
bottle do
cellar :any
sha256 "a83305980c00bcff6a7288bc358474010c58688c4da329b6c9c9ad6394b0115f" => :el_capitan
sha256 "c840a54627913867c380cc7f0ebd794f3b56910c76fee4c050b359af6f1e027c" => :yosemite
end
depends_on :xcode => ["7.1", :build]
def install
system "make", "prefix_install", "PREFIX=#{prefix}", "TEMPORARY_FOLDER=#{buildpath}/SwiftLint.dst"
end
test do
(testpath/"Test.swift").write "import Foundation\n"
system "#{bin}/swiftlint"
end
end