homebrew-core/Formula/regex-opt.rb
Matthew Callis ce43fdcab0 regex-opt 1.2.2
Closes Homebrew/homebrew#15117.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2012-10-27 08:34:16 -07:00

21 lines
430 B
Ruby

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