2013-06-19 06:17:34 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Re2 < Formula
|
|
|
|
homepage 'https://code.google.com/p/re2/'
|
2014-03-07 09:09:10 +00:00
|
|
|
url 'https://re2.googlecode.com/files/re2-20140304.tgz'
|
|
|
|
sha1 'f30dda8e530921b623c32aa58a5dabbe9157f6ca'
|
2014-01-16 05:41:28 +00:00
|
|
|
|
2013-06-19 06:17:34 +00:00
|
|
|
head 'https://re2.googlecode.com/hg'
|
|
|
|
|
2014-03-07 09:11:31 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-03-25 18:08:54 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "c502279673f7a522964161813c1d284d3dd12115" => :mavericks
|
|
|
|
sha1 "ed4e24ef60a2c44af9ed67b22d6f983f3177f0fc" => :mountain_lion
|
|
|
|
sha1 "50250f3de155321a6b93276f0df967e868fc4ca8" => :lion
|
2014-03-07 09:11:31 +00:00
|
|
|
end
|
|
|
|
|
2013-06-19 06:17:34 +00:00
|
|
|
def install
|
2014-01-16 05:41:28 +00:00
|
|
|
# https://code.google.com/p/re2/issues/detail?id=99
|
2014-02-10 21:14:30 +00:00
|
|
|
if ENV.compiler != :clang || MacOS.version < :mavericks
|
2014-01-16 05:41:28 +00:00
|
|
|
inreplace 'libre2.symbols.darwin',
|
2014-02-10 21:14:58 +00:00
|
|
|
# operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, re2::StringPiece const&)
|
2014-01-16 05:41:28 +00:00
|
|
|
'__ZlsRNSt3__113basic_ostreamIcNS_11char_traitsIcEEEERKN3re211StringPieceE',
|
2014-02-10 21:14:58 +00:00
|
|
|
# operator<<(std::ostream&, re2::StringPiece const&)
|
2014-01-16 05:41:28 +00:00
|
|
|
'__ZlsRSoRKN3re211StringPieceE'
|
|
|
|
end
|
2013-06-19 06:17:34 +00:00
|
|
|
system "make", "install", "prefix=#{prefix}"
|
2014-01-16 05:41:28 +00:00
|
|
|
mv lib/"libre2.so.0.0.0", lib/"libre2.0.0.0.dylib"
|
2014-03-25 01:22:29 +00:00
|
|
|
lib.install_symlink "libre2.0.0.0.dylib" => "libre2.0.dylib"
|
|
|
|
lib.install_symlink "libre2.0.0.0.dylib" => "libre2.dylib"
|
2013-06-19 06:17:34 +00:00
|
|
|
end
|
|
|
|
end
|