aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJohan Oskarsson2011-03-22 22:50:53 -0700
committerAdam Vandenberg2011-03-22 22:53:15 -0700
commitc4b11d98384ce81586cfb4a8c384de362b514998 (patch)
treefff90a665b828a70bbf6f867fb133d01b50ec5c4 /Library
parent3aa02af7a4eb4023a1140e3eda75f8614b22fed3 (diff)
downloadhomebrew-c4b11d98384ce81586cfb4a8c384de362b514998.tar.bz2
snappy 1.0.0
Snappy is a compression/decompression library. It does not aim for maximum compression, or compatibility with any other compression library; instead, it aims for very high speeds and reasonable compression. For instance, compared to the fastest mode of zlib, Snappy is an order of magnitude faster for most inputs, but the resulting compressed files are anywhere from 20% to 100% bigger. On a single core of a Core i7 processor in 64-bit mode, Snappy compresses at about 250 MB/sec or more and decompresses at about 500 MB/sec or more. http://code.google.com/p/snappy/ Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/snappy.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Formula/snappy.rb b/Library/Formula/snappy.rb
new file mode 100644
index 000000000..cce27f2b5
--- /dev/null
+++ b/Library/Formula/snappy.rb
@@ -0,0 +1,15 @@
+require 'formula'
+
+class Snappy < Formula
+ url 'http://snappy.googlecode.com/files/snappy-1.0.0.tar.gz'
+ homepage 'http://snappy.googlecode.com'
+ md5 '9d83bdcf0c79a8de608fa969c2909204'
+
+ depends_on 'pkg-config' => :build
+
+ def install
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "make install"
+ end
+end