diff options
| author | Nandor Kracser | 2014-01-12 19:28:45 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-21 08:06:44 -0800 |
| commit | 391a8152ef794060638f9cf3bc86cd7a1125fab6 (patch) | |
| tree | df595256731a18600e1b1342f6407fc272845d08 /Library/Formula | |
| parent | 2da68f72e45f971984c0ca4c01b70afbca915570 (diff) | |
| download | homebrew-391a8152ef794060638f9cf3bc86cd7a1125fab6.tar.bz2 | |
jHiccup 1.3.7
Closes #25848.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/jhiccup.rb | 26 |
1 files changed, 26 insertions, 0 deletions
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 |
