homebrew-core/Formula/antlr.rb
Martin Plöger a24f1cd8d7 Added Antlr Formula
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-08-12 07:42:04 -07:00

14 lines
No EOL
388 B
Ruby

require 'formula'
class Antlr < Formula
version '3.2'
url "http://www.antlr.org/download/antlr-#{version}.jar"
homepage 'http://www.antlr.org/'
md5 'ee7dc3fb20cf3e9efd871e297c0d532b'
def install
prefix.install "antlr-#{version}.jar"
#Add an executable shell-script
(bin + "antlr-#{version}").write "#!/bin/sh\njava -jar #{prefix}/antlr-#{version}.jar $*"
end
end