homebrew-core/Formula/trace2html.rb
Brent Vatne 77d69d281a trace2html 2015-06-23 (new formula)
Closes Homebrew/homebrew#40988.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-06-23 17:17:55 +01:00

19 lines
575 B
Ruby

class Trace2html < Formula
desc "Utility from Google Trace Viewer to convert JSON traces to HTML"
homepage "https://github.com/google/trace-viewer"
url "https://github.com/google/trace-viewer/archive/2015-06-23.tar.gz"
sha256 "97ad0ca9c07a50c53a3d881b69b6b6f7424d6b0f4d9e9fb531c2d9273e413f19"
depends_on :python if MacOS.version <= :snow_leopard
def install
libexec.install Dir["*"]
bin.install_symlink libexec/"trace2html"
end
test do
touch "test.json"
system "#{bin}/trace2html", "test.json"
assert File.exist?("test.html")
end
end