diff options
| author | David Höppner | 2010-05-16 15:26:18 +0200 |
|---|---|---|
| committer | David Höppner | 2010-05-16 15:26:18 +0200 |
| commit | 4c71e31c393e7829aba2d852912012c35d004efd (patch) | |
| tree | 0a2101033eda55d607bf80fee350b70c257b58c3 /Library/Formula | |
| parent | 4743c12809f65c1ae25810a843ebbc15e4d59703 (diff) | |
| download | homebrew-4c71e31c393e7829aba2d852912012c35d004efd.tar.bz2 | |
New formula google-sparsehash
An extremely memory-efficient hash_map implementation. 2 bits/entry overhead!
The SparseHash library contains several hash-map implementations, including
implementations that optimize for space or speed.
These hashtable implementations are similar in API to SGI's hash_map class and
the tr1 unordered_map class, but with different performance characteristics.
It's easy to replace hash_map or unordered_map by sparse_hash_map or
dense_hash_map in C++ code.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/google-sparsehash.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Formula/google-sparsehash.rb b/Library/Formula/google-sparsehash.rb new file mode 100644 index 000000000..b4484d580 --- /dev/null +++ b/Library/Formula/google-sparsehash.rb @@ -0,0 +1,13 @@ +require 'formula' + +class GoogleSparsehash <Formula + url 'http://google-sparsehash.googlecode.com/files/sparsehash-1.7.tar.gz' + homepage 'http://code.google.com/p/google-sparsehash/' + sha1 'b9355e6aa2564b6a2d9fc2e1ac3f9773dbca8f59' + + def install + system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}" + system "make check" + system "make install" + end +end |
