2010-05-16 13:26:18 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class GoogleSparsehash < Formula
|
2010-05-16 13:26:18 +00:00
|
|
|
homepage 'http://code.google.com/p/google-sparsehash/'
|
2014-03-05 07:22:08 +00:00
|
|
|
url 'https://sparsehash.googlecode.com/files/sparsehash-2.0.2.tar.gz'
|
2012-10-17 21:25:10 +00:00
|
|
|
sha1 '12c7552400b3e20464b3362286653fc17366643e'
|
2010-05-16 13:26:18 +00:00
|
|
|
|
2013-12-21 11:44:51 +00:00
|
|
|
option :cxx11
|
|
|
|
|
2014-05-10 20:36:26 +00:00
|
|
|
# Patch from upstream issue: https://code.google.com/p/sparsehash/issues/detail?id=99
|
|
|
|
patch do
|
|
|
|
url "https://gist.githubusercontent.com/jacknagel/3314c8cc67032a912f8b/raw/387b44a3b46e7b68876dbcb3c6595d700fa08a3c/sparsehash.diff"
|
|
|
|
sha1 "bc2083e2c7e699c04f65a1d87dd0cb96deee9b24"
|
|
|
|
end
|
|
|
|
|
2010-05-16 13:26:18 +00:00
|
|
|
def install
|
2013-12-21 11:44:51 +00:00
|
|
|
ENV.cxx11 if build.cxx11?
|
2012-04-21 16:33:03 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2010-05-16 13:26:18 +00:00
|
|
|
system "make check"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|