summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2011-04-05 05:34:16 +0000
committeragc <agc@pkgsrc.org>2011-04-05 05:34:16 +0000
commit520ad63f3ca15077bf6cad4e1160e1f2155b2c37 (patch)
treecbd746a78cf53108e7c42c7cda8fd4f31e07e0d4 /devel
parent3c2405f9eade3bc23da660eec1fcd543683a508c (diff)
downloadpkgsrc-520ad63f3ca15077bf6cad4e1160e1f2155b2c37.tar.gz
Initial import of snappy version 1.0.1 into the packages collection.
Snappy is a data compression library which attempts to sacrifice compressed space efficiency for the sake of compression performance: 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. Snappy is widely used inside Google, in everything from BigTable and MapReduce to the internal RPC systems. (Snappy has previously been referred to as "Zippy" in some presentations and the likes.)
Diffstat (limited to 'devel')
-rw-r--r--devel/snappy/DESCR13
-rw-r--r--devel/snappy/Makefile18
-rw-r--r--devel/snappy/PLIST10
-rw-r--r--devel/snappy/distinfo6
-rw-r--r--devel/snappy/patches/patch-aa26
5 files changed, 73 insertions, 0 deletions
diff --git a/devel/snappy/DESCR b/devel/snappy/DESCR
new file mode 100644
index 00000000000..35c7fd3fe23
--- /dev/null
+++ b/devel/snappy/DESCR
@@ -0,0 +1,13 @@
+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.
+
+Snappy is widely used inside Google, in everything from BigTable and
+MapReduce to the internal RPC systems. (Snappy has previously been
+referred to as "Zippy" in some presentations and the likes.)
diff --git a/devel/snappy/Makefile b/devel/snappy/Makefile
new file mode 100644
index 00000000000..730b5c67dc0
--- /dev/null
+++ b/devel/snappy/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/04/05 05:34:16 agc Exp $
+
+DISTNAME= snappy-1.0.1
+CATEGORIES= devel
+MASTER_SITES= http://snappy.googlecode.com/files/
+
+MAINTAINER= agc@NetBSD.org
+HOMEPAGE= http://code.google.com/p/snappy/
+COMMENT= General purpose data compression library
+LICENSE= apache-2.0
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_LANGUAGES+= c c++
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/snappy/PLIST b/devel/snappy/PLIST
new file mode 100644
index 00000000000..7e6b4b87621
--- /dev/null
+++ b/devel/snappy/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2011/04/05 05:34:16 agc Exp $
+include/snappy-sinksource.h
+include/snappy-stubs-public.h
+include/snappy.h
+lib/libsnappy.la
+share/doc/snappy/COPYING
+share/doc/snappy/ChangeLog
+share/doc/snappy/INSTALL
+share/doc/snappy/NEWS
+share/doc/snappy/README
diff --git a/devel/snappy/distinfo b/devel/snappy/distinfo
new file mode 100644
index 00000000000..be08ee0e3e6
--- /dev/null
+++ b/devel/snappy/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2011/04/05 05:34:16 agc Exp $
+
+SHA1 (snappy-1.0.1.tar.gz) = 25fbae93cd4b7794e4a3705f0c5cb7ef3b9e32de
+RMD160 (snappy-1.0.1.tar.gz) = b5028ee1932456575ff025f644ebd8ee3518696a
+Size (snappy-1.0.1.tar.gz) = 1713964 bytes
+SHA1 (patch-aa) = 89b076be10d7768d3cf7e68bb1e290d5187dd4e2
diff --git a/devel/snappy/patches/patch-aa b/devel/snappy/patches/patch-aa
new file mode 100644
index 00000000000..5a5a092dd00
--- /dev/null
+++ b/devel/snappy/patches/patch-aa
@@ -0,0 +1,26 @@
+$NetBSD: patch-aa,v 1.1.1.1 2011/04/05 05:34:16 agc Exp $
+
+Depending on the definition of LZF_STATE_ARG, lzf can grow an extra arg.
+Accommodate.
+
+--- snappy_unittest.cc 2011/03/23 19:16:06 1.1
++++ snappy_unittest.cc 2011/03/23 19:21:09
+@@ -154,10 +154,17 @@
+ #ifdef LZF_VERSION
+ case LIBLZF: {
+ compressed->resize(input_size - 1);
++# ifdef LZF_STATE_ARG
++ LZF_STATE htab;
++# endif
+ int destlen = lzf_compress(input,
+ input_size,
+ string_as_array(compressed),
+- input_size - 1);
++ input_size - 1
++# ifdef LZF_STATE_ARG
++ , htab
++# endif
++ );
+ if (destlen == 0) {
+ // lzf *can* cause lots of blowup when compressing, so they
+ // recommend to limit outsize to insize, and just not compress