homebrew-core/Formula/trace2html.rb

23 lines
642 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-07-07.tar.gz"
version "2015-07-07"
sha256 "6125826d07869fbd634ef898a45df3cabf45e6bcf951f2c63e49f87ce6a0442a"
bottle :unneeded
depends_on "python" if MacOS.version <= :snow_leopard
def install
libexec.install Dir["*"]
bin.install_symlink libexec/"tracing/trace2html"
end
test do
touch "test.json"
system "#{bin}/trace2html", "test.json"
assert_predicate testpath/"test.html", :exist?
end
end