From 61bb11016dd935116f269d76d91b1d51c46ebc7c Mon Sep 17 00:00:00 2001 From: Jean-Yves Lefort Date: Tue, 28 Jun 2005 01:17:21 +0000 Subject: [PATCH] Add google-sparsehash. An extremely memory-efficient hash_map implementation. 2 bits/entry overhead! The Google SparseHash project contains several hash-map implementations in use at Google, with different performance characteristics, including an implementation that optimizes for space and one that optimizes for speed. WWW: http://goog-sparsehash.sf.net PR: ports/82696 Submitted by: Vasil Dimov --- devel/Makefile | 1 + devel/google-sparsehash/Makefile | 35 +++++++++++++++++++++++++++++++ devel/google-sparsehash/distinfo | 2 ++ devel/google-sparsehash/pkg-descr | 9 ++++++++ devel/google-sparsehash/pkg-plist | 26 +++++++++++++++++++++++ 5 files changed, 73 insertions(+) create mode 100644 devel/google-sparsehash/Makefile create mode 100644 devel/google-sparsehash/distinfo create mode 100644 devel/google-sparsehash/pkg-descr create mode 100644 devel/google-sparsehash/pkg-plist diff --git a/devel/Makefile b/devel/Makefile index 1471972bafd0..6521da3f6069 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -328,6 +328,7 @@ SUBDIR += gnustep-make SUBDIR += gob2 SUBDIR += gonzui + SUBDIR += google-sparsehash SUBDIR += gorm SUBDIR += gperf SUBDIR += gputils diff --git a/devel/google-sparsehash/Makefile b/devel/google-sparsehash/Makefile new file mode 100644 index 000000000000..cfb3bb9252b2 --- /dev/null +++ b/devel/google-sparsehash/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: google-sparsehash +# Date created: 23 June 2005 +# Whom: Vasil Dimov +# +# $FreeBSD$ +# + +PORTNAME= google-sparsehash +PORTVERSION= 0.2 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= goog-sparsehash +DISTNAME= sparsehash-${PORTVERSION} + +MAINTAINER= vd@datamax.bg +COMMENT= Google's hashtable implementations optimized for space or speed + +GNU_CONFIGURE= yes +USE_REINPLACE= yes + +post-patch: +.if !defined(NOPORTDOCS) + @${REINPLACE_CMD} -e \ + 's|$$(prefix)/doc/$$(PACKAGE)-$$(VERSION)|${DOCSDIR}|' \ + ${WRKSRC}/Makefile.in +.else + @${REINPLACE_CMD} -e \ + '/install-data-am/ s|install-dist_docDATA||' \ + ${WRKSRC}/Makefile.in +.endif + +tests: build + @(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check) + +.include diff --git a/devel/google-sparsehash/distinfo b/devel/google-sparsehash/distinfo new file mode 100644 index 000000000000..3f88e14ee3e6 --- /dev/null +++ b/devel/google-sparsehash/distinfo @@ -0,0 +1,2 @@ +MD5 (sparsehash-0.2.tar.gz) = a2b2a31886efe6e56bad8b2419609fff +SIZE (sparsehash-0.2.tar.gz) = 227427 diff --git a/devel/google-sparsehash/pkg-descr b/devel/google-sparsehash/pkg-descr new file mode 100644 index 000000000000..9df09389b00b --- /dev/null +++ b/devel/google-sparsehash/pkg-descr @@ -0,0 +1,9 @@ +An extremely memory-efficient hash_map implementation. 2 bits/entry overhead! +The Google SparseHash project contains several hash-map implementations in use +at Google, with different performance characteristics, including an +implementation that optimizes for space and one that optimizes for speed. + +WWW: http://goog-sparsehash.sf.net + +- Vasil Dimov +vd@datamax.bg diff --git a/devel/google-sparsehash/pkg-plist b/devel/google-sparsehash/pkg-plist new file mode 100644 index 000000000000..efa953a794af --- /dev/null +++ b/devel/google-sparsehash/pkg-plist @@ -0,0 +1,26 @@ +include/google/dense_hash_map +include/google/dense_hash_set +include/google/sparse_hash_map +include/google/sparse_hash_set +include/google/sparsehash/config.h +include/google/sparsehash/densehashtable.h +include/google/sparsehash/hash_fun.h +include/google/sparsehash/sparsehashtable.h +include/google/sparsetable +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/COPYING +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/INSTALL +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/TODO +%%PORTDOCS%%%%DOCSDIR%%/dense_hash_map.html +%%PORTDOCS%%%%DOCSDIR%%/dense_hash_set.html +%%PORTDOCS%%%%DOCSDIR%%/implementation.html +%%PORTDOCS%%%%DOCSDIR%%/performance.html +%%PORTDOCS%%%%DOCSDIR%%/sparse_hash_map.html +%%PORTDOCS%%%%DOCSDIR%%/sparse_hash_set.html +%%PORTDOCS%%%%DOCSDIR%%/sparsetable.html +@dirrm include/google/sparsehash +@dirrm include/google +%%PORTDOCS%%@dirrm %%DOCSDIR%%