swiftlint 0.1.0 (new formula)

Closes Homebrew/homebrew#39863.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
JP Simard 2015-05-18 07:14:48 +02:00 committed by Mike McQuaid
parent d745a961f0
commit c40c7b823e

16
Formula/swiftlint.rb Normal file
View file

@ -0,0 +1,16 @@
class Swiftlint < Formula
homepage "https://github.com/realm/SwiftLint"
url "https://github.com/realm/SwiftLint.git", :tag => "0.1.0", :revision => "ed7eadd5c6011c35d017290fb7fb55e735dc18ba"
head "https://github.com/realm/SwiftLint.git"
depends_on :xcode => ["6.3", :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