From c40c7b823eac61517c183e142bacf6efbe16dd02 Mon Sep 17 00:00:00 2001 From: JP Simard Date: Mon, 18 May 2015 07:14:48 +0200 Subject: [PATCH] swiftlint 0.1.0 (new formula) Closes Homebrew/homebrew#39863. Signed-off-by: Mike McQuaid --- Formula/swiftlint.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Formula/swiftlint.rb diff --git a/Formula/swiftlint.rb b/Formula/swiftlint.rb new file mode 100644 index 0000000000..5237c8100e --- /dev/null +++ b/Formula/swiftlint.rb @@ -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