antlr@2: import from homebrew/versions.
This commit is contained in:
parent
293048416b
commit
993fd34c85
2 changed files with 32 additions and 0 deletions
31
Formula/antlr@2.rb
Normal file
31
Formula/antlr@2.rb
Normal file
|
@ -0,0 +1,31 @@
|
|||
class AntlrAT2 < Formula
|
||||
desc "ANother Tool for Language Recognition"
|
||||
homepage "http://www.antlr2.org"
|
||||
url "http://www.antlr2.org/download/antlr-2.7.7.tar.gz"
|
||||
sha256 "853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9"
|
||||
|
||||
depends_on :java
|
||||
|
||||
def install
|
||||
# C Sharp is explicitly disabled because the antlr configure script will
|
||||
# confuse the Chicken Scheme compiler, csc, for a C sharp compiler.
|
||||
system "./configure", "--prefix=#{prefix}",
|
||||
"--disable-debug",
|
||||
"--disable-csharp"
|
||||
system "make"
|
||||
|
||||
libexec.install "antlr.jar"
|
||||
include.install "lib/cpp/antlr"
|
||||
lib.install "lib/cpp/src/libantlr.a"
|
||||
|
||||
(bin/"antlr2").write <<-EOS.undent
|
||||
#!/bin/sh
|
||||
java -classpath #{libexec}/antlr.jar antlr.Tool "$@"
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match "ANTLR Parser Generator Version #{version}",
|
||||
shell_output("#{bin}/antlr2 --help 2>&1")
|
||||
end
|
||||
end
|
|
@ -2,6 +2,7 @@
|
|||
"app-engine-java-sdk": "app-engine-java",
|
||||
"ansible19": "ansible@19",
|
||||
"ansible20": "ansible@20",
|
||||
"antlr2": "antlr@2",
|
||||
"beanstalk": "beanstalkd",
|
||||
"cloog-ppl015": "cloog@0.15",
|
||||
"cloog018": "cloog",
|
||||
|
|
Loading…
Reference in a new issue