aboutsummaryrefslogtreecommitdiffstats
path: root/devel/google-sparsehash
diff options
context:
space:
mode:
authorjylefort <jylefort@FreeBSD.org>2005-06-28 09:17:21 +0800
committerjylefort <jylefort@FreeBSD.org>2005-06-28 09:17:21 +0800
commit854eba3f3f5efb256403b32b67e0063990f55b1a (patch)
tree61457e8f5868009a5bdc3dc2b4fd86ded404087e /devel/google-sparsehash
parent6bfbda6b8798da3457f87e387b0a87999ba4fa79 (diff)
downloadfreebsd-ports-gnome-854eba3f3f5efb256403b32b67e0063990f55b1a.tar.gz
freebsd-ports-gnome-854eba3f3f5efb256403b32b67e0063990f55b1a.tar.zst
freebsd-ports-gnome-854eba3f3f5efb256403b32b67e0063990f55b1a.zip
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 <vd@datamax.bg>
Diffstat (limited to 'devel/google-sparsehash')
-rw-r--r--devel/google-sparsehash/Makefile35
-rw-r--r--devel/google-sparsehash/distinfo2
-rw-r--r--devel/google-sparsehash/pkg-descr9
-rw-r--r--devel/google-sparsehash/pkg-plist26
4 files changed, 72 insertions, 0 deletions
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 <vd@datamax.bg>
+#
+# $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 <bsd.port.mk>
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%%