aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/antlr.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Formula/antlr.rb b/Library/Formula/antlr.rb
new file mode 100644
index 000000000..706644f12
--- /dev/null
+++ b/Library/Formula/antlr.rb
@@ -0,0 +1,14 @@
+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 \ No newline at end of file