diff options
| author | Matthew Callis | 2012-09-25 13:37:35 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-10-27 08:34:16 -0700 |
| commit | 1bb9690191418e20fbab274bfd5c6c5c5c79c5af (patch) | |
| tree | c7f1ad33b68a8a8094bc4da61144e55a7c5afbe7 | |
| parent | ba6e0bf4e8fa644a6e674686e2b51186a5a0a547 (diff) | |
| download | homebrew-1bb9690191418e20fbab274bfd5c6c5c5c79c5af.tar.bz2 | |
regex-opt 1.2.2
Closes #15117.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/regex-opt.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/regex-opt.rb b/Library/Formula/regex-opt.rb new file mode 100644 index 000000000..72365ea00 --- /dev/null +++ b/Library/Formula/regex-opt.rb @@ -0,0 +1,21 @@ +require 'formula' + +class RegexOpt < Formula + homepage 'http://bisqwit.iki.fi/source/regexopt.html' + url 'http://bisqwit.iki.fi/src/arch/regex-opt-1.2.2.tar.bz2' + sha1 '18481500e8fed8ecf94f9738104594ef5a658456' + + def install + inreplace 'Makefile' do |f| + f.gsub! 'gcc', ENV.cc + f.gsub! 'g++', ENV.cxx + end + + system "make" + bin.install 'regex-opt' + end + + def test + system "#{bin}/regex-opt" + end +end |
