2010-07-23 23:19:08 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Re2 < Formula
|
2010-07-23 23:19:08 +00:00
|
|
|
head 'https://re2.googlecode.com/hg'
|
|
|
|
homepage 'http://code.google.com/p/re2/'
|
|
|
|
|
|
|
|
def install
|
|
|
|
inreplace 'Makefile' do |s|
|
|
|
|
s.change_make_var! "prefix", prefix
|
|
|
|
s.gsub! ".so", ".dylib"
|
|
|
|
end
|
|
|
|
|
|
|
|
lib.mkdir
|
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|