homebrew-core/Formula/tailor.rb
2016-04-20 02:54:17 +01:00

21 lines
585 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.8.0/tailor-0.8.0.tar"
sha256 "7167aa758b48933585d7916771be6ee02996cb2a88b8b106c6f9b625abde23ab"
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