Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

antlr: match Homebrew style guide

  • Loading branch information...
commit 9c56fd8dbac6e1ba68516c5d834b6bb7654be4c4 1 parent aabe2d8
@adamv adamv authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 Library/Formula/antlr.rb
View
10 Library/Formula/antlr.rb
@@ -1,14 +1,16 @@
require 'formula'
class Antlr < Formula
+ url "http://www.antlr.org/download/antlr-3.3-complete.jar"
version '3.3'
- url "http://www.antlr.org/download/antlr-#{version}-complete.jar"
homepage 'http://www.antlr.org/'
md5 '238becce7da69f7be5c5b8a65558cf63'
def install
- prefix.install "antlr-#{version}-complete.jar"
- #Add an executable shell-script
- (bin + "antlr-#{version}").write "#!/bin/sh\njava -jar #{prefix}/antlr-#{version}-complete.jar $*"
+ 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
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.