diff options
| author | Bill Atkins | 2012-07-02 09:39:07 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2012-07-23 22:16:35 -0700 |
| commit | edf86d98a2160e23d620c89b4ed87d0fcecb28f8 (patch) | |
| tree | 320ec020797f134cc058de2d17c2e0eba439bc0b /Library/Formula | |
| parent | 5fe878e27ee4c5f93d605085004bad4ec3deafb5 (diff) | |
| download | homebrew-edf86d98a2160e23d620c89b4ed87d0fcecb28f8.tar.bz2 | |
Jasmin 2.4
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/jasmin.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Library/Formula/jasmin.rb b/Library/Formula/jasmin.rb new file mode 100644 index 000000000..6a7849191 --- /dev/null +++ b/Library/Formula/jasmin.rb @@ -0,0 +1,26 @@ +require 'formula' + +class Jasmin < Formula + homepage 'http://jasmin.sourceforge.net/' + url 'http://downloads.sourceforge.net/project/jasmin/jasmin/jasmin-2.4/jasmin-2.4.zip' + sha1 'c66400680144e0da4efdcf4a084e42e2355189fe' + + def script; <<-EOS.undent + #!/bin/sh + java -jar "#{libexec}/jasmin.jar" "$@" + EOS + end + + def install + # Remove Windows scripts + rm_rf Dir['*.bat'] + + libexec.install Dir['*.jar'] + prefix.install %w[Readme.txt license-ant.txt license-jasmin.txt] + (bin+"jasmin").write script + end + + def test + system "#{bin}/jasmin -version" + end +end |
