homebrew-core/Formula/tailor.rb
ilovezfs c7d1985394 tailor 0.11.1
Closes #5838.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-10-12 01:33:00 -07:00

21 lines
587 B
Ruby

class Tailor < Formula
desc "Cross-platform static analyzer and linter for Swift"
homepage "https://tailor.sh"
url "https://github.com/sleekbyte/tailor/releases/download/v0.11.1/tailor-0.11.1.tar"
sha256 "edc3169fcfadd6d466d7c73899275ac47b21f3e2545f6d4a4354a4c1d2394f95"
bottle :unneeded
depends_on :java => "1.8+"
def install
libexec.install Dir["*"]
bin.install_symlink libexec/"bin/tailor"
man1.install libexec/"tailor.1"
end
test do
(testpath/"Test.swift").write "import Foundation\n"
system "#{bin}/tailor", testpath/"Test.swift"
end
end