71cc46d485
Closes #39086. Signed-off-by: FX Coudert <fxcoudert@gmail.com>
31 lines
901 B
Ruby
31 lines
901 B
Ruby
class Jhiccup < Formula
|
|
desc "Measure pauses and stalls of an app's Java runtime platform"
|
|
homepage "https://www.azul.com/jhiccup/"
|
|
url "https://www.azul.com/files/jHiccup-2.0.10-dist.zip"
|
|
sha256 "7bb1145d211d140b4f81184df7eb9cea90f56720ad7504fac43c0c398f38a7d8"
|
|
|
|
bottle :unneeded
|
|
|
|
def install
|
|
bin.install "jHiccup", "jHiccupLogProcessor"
|
|
|
|
# Simple script to create and open a new plotter spreadsheet
|
|
(bin+"jHiccupPlotter").write <<~EOS
|
|
#!/bin/sh
|
|
TMPFILE="/tmp/jHiccupPlotter.$$.xls"
|
|
cp "#{prefix}/jHiccupPlotter.xls" $TMPFILE
|
|
open $TMPFILE
|
|
EOS
|
|
|
|
prefix.install "jHiccup.jar"
|
|
prefix.install "jHiccupPlotter.xls"
|
|
inreplace "#{bin}/jHiccup" do |s|
|
|
s.gsub! /^JHICCUP_JAR_FILE=.*$/,
|
|
"JHICCUP_JAR_FILE=#{prefix}/jHiccup.jar"
|
|
end
|
|
end
|
|
|
|
test do
|
|
assert_match "CSV", shell_output("#{bin}/jHiccup -h", 255)
|
|
end
|
|
end
|