aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorShaun Jackman2015-01-26 10:32:20 -0800
committerMike McQuaid2015-01-27 08:16:42 +0000
commit7cb956b4629d34c3089fb02125e048d635c20684 (patch)
treebb54aafe9b48039422bc5d91f0b08d60f7277d57 /Library/Formula
parent0af3e3167d3988fd5f468e2b212bebc39c4c0368 (diff)
downloadhomebrew-7cb956b4629d34c3089fb02125e048d635c20684.tar.bz2
google-sparsehash: add option without-check.
- Change single quotes to double quotes. - Change homepage protocol to https. Closes #36239. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/google-sparsehash.rb13
1 files changed, 6 insertions, 7 deletions
diff --git a/Library/Formula/google-sparsehash.rb b/Library/Formula/google-sparsehash.rb
index ed5a935df..5977fecb0 100644
--- a/Library/Formula/google-sparsehash.rb
+++ b/Library/Formula/google-sparsehash.rb
@@ -1,11 +1,10 @@
-require 'formula'
-
class GoogleSparsehash < Formula
- homepage 'http://code.google.com/p/google-sparsehash/'
- url 'https://sparsehash.googlecode.com/files/sparsehash-2.0.2.tar.gz'
- sha1 '12c7552400b3e20464b3362286653fc17366643e'
+ homepage "https://code.google.com/p/google-sparsehash/"
+ url "https://sparsehash.googlecode.com/files/sparsehash-2.0.2.tar.gz"
+ sha1 "12c7552400b3e20464b3362286653fc17366643e"
option :cxx11
+ option "without-check", "Skip build-time tests (not recommended)"
# Patch from upstream issue: https://code.google.com/p/sparsehash/issues/detail?id=99
patch do
@@ -17,7 +16,7 @@ class GoogleSparsehash < Formula
ENV.cxx11 if build.cxx11?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
- system "make check"
- system "make install"
+ system "make", "check" if build.with? "check"
+ system "make", "install"
end
end