homebrew-core/Formula/google-sparsehash.rb
Xin Sun 7aba19057d google-sparsehash: add c++11 option
Closes Homebrew/homebrew#25378.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-01-07 10:54:31 +00:00

17 lines
458 B
Ruby

require 'formula'
class GoogleSparsehash < Formula
homepage 'http://code.google.com/p/google-sparsehash/'
url 'http://sparsehash.googlecode.com/files/sparsehash-2.0.2.tar.gz'
sha1 '12c7552400b3e20464b3362286653fc17366643e'
option :cxx11
def install
ENV.cxx11 if build.cxx11?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make check"
system "make install"
end
end