Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

antlr: match Homebrew style guide

  • Loading branch information...
commit 9c56fd8dbac6e1ba68516c5d834b6bb7654be4c4 1 parent aabe2d8
Adam Vandenberg adamv authored

Showing 1 changed file with 6 additions and 4 deletions. Show diff stats Hide diff stats

  1. +6 4 Library/Formula/antlr.rb
10 Library/Formula/antlr.rb
... ... @@ -1,14 +1,16 @@
1 1 require 'formula'
2 2
3 3 class Antlr < Formula
  4 + url "http://www.antlr.org/download/antlr-3.3-complete.jar"
4 5 version '3.3'
5   - url "http://www.antlr.org/download/antlr-#{version}-complete.jar"
6 6 homepage 'http://www.antlr.org/'
7 7 md5 '238becce7da69f7be5c5b8a65558cf63'
8 8
9 9 def install
10   - prefix.install "antlr-#{version}-complete.jar"
11   - #Add an executable shell-script
12   - (bin + "antlr-#{version}").write "#!/bin/sh\njava -jar #{prefix}/antlr-#{version}-complete.jar $*"
  10 + prefix.install "antlr-3.3-complete.jar"
  11 + (bin+"antlr-3.3").write <<-EOS.undent
  12 + #!/bin/sh
  13 + java -jar #{prefix}/antlr-3.3-complete.jar "$@"
  14 + EOS
13 15 end
14 16 end

0 comments on commit 9c56fd8

Please sign in to comment.
Something went wrong with that request. Please try again.