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:
parent
1f6506ce67
commit
102de272eb
1 changed files with 23 additions and 0 deletions
23
Formula/swimat.rb
Normal file
23
Formula/swimat.rb
Normal 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
|
Loading…
Reference in a new issue