2014-01-12 18:28:45 +00:00
|
|
|
class Jhiccup < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Measure pauses and stalls of an app's Java runtime platform"
|
2014-01-12 18:28:45 +00:00
|
|
|
homepage "http://www.jhiccup.com"
|
|
|
|
url "http://www.azulsystems.com/sites/default/files/images/jHiccup.1.3.7.zip"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "abc029bfb55bbe59824d0b6db6845bd0f08befba3b860747ed601a6c27573f24"
|
2014-01-12 18:28:45 +00:00
|
|
|
|
2015-10-23 11:55:39 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2014-01-12 18:28:45 +00:00
|
|
|
def install
|
|
|
|
bin.install "jHiccup"
|
|
|
|
|
|
|
|
# Simple script to create and open a new plotter spreadsheet
|
2015-08-03 12:55:31 +00:00
|
|
|
(bin+"jHiccupPlotter").write <<-EOS.undent
|
2014-01-12 18:28:45 +00:00
|
|
|
#!/bin/sh
|
|
|
|
TMPFILE="/tmp/jHiccupPlotter.$$.xls"
|
|
|
|
cp "#{prefix}/jHiccupPlotter.xls" $TMPFILE
|
|
|
|
open $TMPFILE
|
|
|
|
EOS
|
|
|
|
|
|
|
|
prefix.install "target"
|
|
|
|
prefix.install "jHiccupPlotter.xls"
|
|
|
|
inreplace "#{bin}/jHiccup" do |s|
|
|
|
|
s.gsub! /^JHICCUP_JAR_FILE=.*$/,
|
|
|
|
"JHICCUP_JAR_FILE=#{prefix}/target/jHiccup.jar"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|