aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/re2.rb
blob: 459560ce87561f61d079313d698b5e3a15b40c62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'formula'

class Re2 < Formula
  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