homebrew-core/Formula/re-flex.rb
Robert van Engelen f3b58b3b03 re-flex 1.0.12 (new formula)
re-flex 1.0.12 (new formula)

Closes #36654.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
2019-02-26 11:04:55 +01:00

29 lines
798 B
Ruby

class ReFlex < Formula
desc "The regex-centric, fast and flexible scanner generator for C++"
homepage "https://www.genivia.com/doc/reflex/html"
url "https://github.com/Genivia/RE-flex/archive/reflex-1.0.12.tar.gz"
sha256 "75a1761d9a6fd3fee6454e3b6ec954efbad76ece9b68633a07ada977af4cd300"
depends_on "boost"
def install
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
test do
(testpath/"echo.l").write <<~'EOS'
%{
#include <stdio.h>
%}
%option noyywrap main
%%
.+ ECHO;
%%
EOS
system "#{bin}/reflex", "--flex", "echo.l"
assert_predicate testpath/"lex.yy.cpp", :exist?
end
end