regex-opt v1.2.2 #15117

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
3 participants
Contributor

MatthewCallis commented Sep 25, 2012

regex-opt

Optimizes perl-compatible regular expressions.

http://bisqwit.iki.fi/source/regexopt.html

@jacknagel jacknagel commented on an outdated diff Sep 28, 2012

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');
@jacknagel

jacknagel Sep 28, 2012

Contributor

Style nit: bin.install 'regex-opt'

@jacknagel jacknagel commented on an outdated diff Sep 28, 2012

Library/Formula/regex-opt.rb
+ 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 "regex-opt"
@jacknagel

jacknagel Sep 28, 2012

Contributor

Use the full path: "#{bin}/regex-opt"

Contributor

MatthewCallis commented Sep 28, 2012

Updated per Jack Nagel's suggestions.

adamv closed this in 1bb9690 Oct 27, 2012

@snakeyroc3 snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this pull request Dec 17, 2012

@MatthewCallis @adamv MatthewCallis + adamv regex-opt 1.2.2
Closes #15117.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
daa7730

xu-cheng locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.