Skip to content

Instantly share code, notes, and snippets.

@ndfred
Created May 5, 2016 17:33
Show Gist options
  • Save ndfred/ffef3b31b8d9034a160e6eff6b4b37ea to your computer and use it in GitHub Desktop.
Save ndfred/ffef3b31b8d9034a160e6eff6b4b37ea to your computer and use it in GitHub Desktop.
class Trace2html < Formula
desc "Utility from Google Trace Viewer to convert JSON traces to HTML"
homepage "https://github.com/catapult-project/catapult"
url "https://github.com/ndfred/catapult/archive/9ee5e561160a0f62302b5fbe32c4d5454512b233.tar.gz"
version "2016-05-04"
sha256 "e839d313be02ef1f4adf6351d49810561eda1094945649941ea7a0c065279cb9"
bottle :unneeded
depends_on :python if MacOS.version <= :snow_leopard
def install
libexec.install Dir["*"]
bin.install_symlink libexec/"tracing/bin/trace2html"
end
test do
touch "test.json"
system "#{bin}/trace2html", "test.json"
assert File.exist?("test.html")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment