swiftlint 0.1.0 (new formula)
Closes Homebrew/homebrew#39863. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
d745a961f0
commit
c40c7b823e
1 changed files with 16 additions and 0 deletions
16
Formula/swiftlint.rb
Normal file
16
Formula/swiftlint.rb
Normal 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
|
Loading…
Reference in a new issue