26 lines
1,009 B
Ruby
26 lines
1,009 B
Ruby
class GoogleSparsehash < Formula
|
|
desc "Extremely memory-efficient hash_map implementation"
|
|
homepage "https://github.com/sparsehash/sparsehash"
|
|
url "https://github.com/sparsehash/sparsehash/archive/sparsehash-2.0.3.tar.gz"
|
|
sha256 "05e986a5c7327796dad742182b2d10805a8d4f511ad090da0490f146c1ff7a8c"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "8655e0c3b4f4c69e46d8823eef0d8ae2b1397cd2aa01bda3340eb3a84d647b89" => :el_capitan
|
|
sha256 "b8e55b96aa3016ed2ab5a8d53a4bb39b44773885355ec75e80c9d9ef57c3e8b1" => :yosemite
|
|
sha256 "570c4d250a4fe18d99f11167653a501a1d8a82ff74d2413336a85bc7fa8cbb81" => :mavericks
|
|
end
|
|
|
|
option :cxx11
|
|
option "without-test", "Skip build-time tests (not recommended)"
|
|
|
|
deprecated_option "without-check" => "without-test"
|
|
|
|
def install
|
|
ENV.cxx11 if build.cxx11?
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make", "check" if build.with? "test"
|
|
system "make", "install"
|
|
end
|
|
end
|