homebrew-core/Formula/jhiccup.rb
2015-06-05 14:47:57 +01:00

27 lines
794 B
Ruby

require "formula"
class Jhiccup < Formula
desc "Measure pauses and stalls of an app's Java runtime platform"
homepage "http://www.jhiccup.com"
url "http://www.azulsystems.com/sites/default/files/images/jHiccup.1.3.7.zip"
sha1 "2bd5ad585b50b80b6a12d6b2d5338fde8c18a10b"
def install
bin.install "jHiccup"
# Simple script to create and open a new plotter spreadsheet
(bin+'jHiccupPlotter').write <<-EOS.undent
#!/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