2010-08-11 21:06:11 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Antlr < Formula
|
2011-06-14 00:33:34 +00:00
|
|
|
url "http://www.antlr.org/download/antlr-3.3-complete.jar"
|
2011-06-13 23:37:24 +00:00
|
|
|
version '3.3'
|
2010-08-11 21:06:11 +00:00
|
|
|
homepage 'http://www.antlr.org/'
|
2011-06-13 23:37:24 +00:00
|
|
|
md5 '238becce7da69f7be5c5b8a65558cf63'
|
2010-08-11 21:06:11 +00:00
|
|
|
|
|
|
|
def install
|
2011-06-14 00:33:34 +00:00
|
|
|
prefix.install "antlr-3.3-complete.jar"
|
|
|
|
(bin+"antlr-3.3").write <<-EOS.undent
|
|
|
|
#!/bin/sh
|
|
|
|
java -jar #{prefix}/antlr-3.3-complete.jar "$@"
|
|
|
|
EOS
|
2010-08-11 21:06:11 +00:00
|
|
|
end
|
2011-03-10 05:11:03 +00:00
|
|
|
end
|