swimat 1.2.1 (new formula)

Command line tool for Swimat, a Swift formatter
Note: Swimat is already available on Homebrew Cask as a Source Editor Extension (packaged as a .app). This formula is the command line tool only.

Closes #9119.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
This commit is contained in:
Saagar Jha 2017-01-21 15:03:49 -08:00 committed by Alex Dunn
parent 1f6506ce67
commit 102de272eb

23
Formula/swimat.rb Normal file
View file

@ -0,0 +1,23 @@
class Swimat < Formula
desc "Command Line Tool to help format Swift code"
homepage "https://github.com/Jintin/Swimat"
url "https://github.com/Jintin/Swimat/archive/v1.2.1.tar.gz"
sha256 "ef2f0fe83ca779698679a1a110ebc6ae9c5a457805b6647af79db32cfed0a018"
head "https://github.com/Jintin/Swimat.git"
depends_on :xcode => "8.0"
def install
xcodebuild "-target", "CLI",
"-configuration", "Release",
"CODE_SIGN_IDENTITY=",
"SYMROOT=build"
bin.install "build/Release/swimat"
end
test do
system "#{bin}/swimat", "-h"
(testpath/"SwimatTest.swift").write("struct SwimatTest {}")
system "#{bin}/swimat", "#{testpath}/SwimatTest.swift"
end
end