Skip to content

Commit

Permalink
jflex 1.6.1 (new formula)
Browse files Browse the repository at this point in the history
Closes Homebrew#49626.

Signed-off-by: Tim D. Smith <[email protected]>
  • Loading branch information
asmod3us authored and tdsmith committed Mar 2, 2016
1 parent 53aa394 commit c3333f4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Library/Formula/jflex.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c3333f4

Please sign in to comment.