Jasmin 2.4
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
c445336377
commit
abee1acf73
1 changed files with 26 additions and 0 deletions
26
Formula/jasmin.rb
Normal file
26
Formula/jasmin.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue