aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/re2.rb
blob: bd8ff24744a89beb177986fc0914062d9c23a7ff (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