From 391a8152ef794060638f9cf3bc86cd7a1125fab6 Mon Sep 17 00:00:00 2001 From: Nandor Kracser Date: Sun, 12 Jan 2014 19:28:45 +0100 Subject: jHiccup 1.3.7 Closes #25848. Signed-off-by: Adam Vandenberg --- Library/Formula/jhiccup.rb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Library/Formula/jhiccup.rb (limited to 'Library/Formula') diff --git a/Library/Formula/jhiccup.rb b/Library/Formula/jhiccup.rb new file mode 100644 index 000000000..9481a42b1 --- /dev/null +++ b/Library/Formula/jhiccup.rb @@ -0,0 +1,26 @@ +require "formula" + +class Jhiccup < Formula + 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 -- cgit v1.2.3