homebrew-core/Formula/regex-opt.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

20 lines
675 B
Ruby

class RegexOpt < Formula
desc "Perl-compatible regular expression optimizer"
homepage "http://bisqwit.iki.fi/source/regexopt.html"
url "http://bisqwit.iki.fi/src/arch/regex-opt-1.2.3.tar.gz"
sha256 "e0a4e4fea7f46bd856ce946d5a57f2b19d742b5d6f486e054e4c51b1f534b87e"
def install
# regex-opt uses _Find_first() in std::bitset, which is a
# nonstandard extension supported in libstdc++ but not libc++
# See: http://lists.w3.org/Archives/Public/www-archive/2006Jan/0002.html
ENV.libstdcxx if ENV.compiler == :clang
system "make", "CC=#{ENV.cc}", "CXX=#{ENV.cxx}"
bin.install "regex-opt"
end
test do
system "#{bin}/regex-opt"
end
end