Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

regex-opt v1.2.2 #15117

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 21 additions & 0 deletions 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