2010-08-11 21:06:11 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Antlr < Formula
|
|
|
|
homepage 'http://www.antlr.org/'
|
2012-03-11 20:04:03 +00:00
|
|
|
url "http://www.antlr.org/download/antlr-3.4-complete.jar"
|
2011-08-31 07:09:49 +00:00
|
|
|
md5 '1b91dea1c7d480b3223f7c8a9aa0e172'
|
2010-08-11 21:06:11 +00:00
|
|
|
|
|
|
|
def install
|
2011-08-31 07:09:49 +00:00
|
|
|
prefix.install "antlr-3.4-complete.jar"
|
|
|
|
(bin+"antlr-3.4").write <<-EOS.undent
|
2011-06-14 00:33:34 +00:00
|
|
|
#!/bin/sh
|
2011-08-31 07:09:49 +00:00
|
|
|
java -jar #{prefix}/antlr-3.4-complete.jar "$@"
|
2011-06-14 00:33:34 +00:00
|
|
|
EOS
|
2010-08-11 21:06:11 +00:00
|
|
|
end
|
2011-03-10 05:11:03 +00:00
|
|
|
end
|