jflex 1.6.1 (new formula)
Closes Homebrew/homebrew#49626. Signed-off-by: Tim D. Smith <git@tim-smith.us>
This commit is contained in:
parent
2172fb24ba
commit
c47c6207c3
1 changed files with 18 additions and 0 deletions
18
Formula/jflex.rb
Normal file
18
Formula/jflex.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
class Jflex < Formula
|
||||
desc "Lexical analyzer generator for Java, written in Java."
|
||||
homepage "http://jflex.de/"
|
||||
url "http://jflex.de/release/jflex-1.6.1.zip"
|
||||
sha256 "6da3c573db065f535c9b544e46ab4d49caa629b0354f8340df027f35e3368a51"
|
||||
|
||||
depends_on :java => "1.7+"
|
||||
|
||||
def install
|
||||
libexec.install "lib/jflex-#{version}.jar"
|
||||
bin.write_jar_script libexec/"jflex-#{version}.jar", "jflex"
|
||||
end
|
||||
|
||||
test do
|
||||
# jflex returns non-zero exit code on success, see https://github.com/jflex-de/jflex/issues/194
|
||||
assert_equal "This is JFlex #{version}", shell_output("#{bin}/jflex --version", 1).strip
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue