Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jan 2015 14:49:48 +0000 (UTC)
From:      Wen Heping <wen@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r377092 - in head/databases/hamsterdb: . files
Message-ID:  <201501151449.t0FEnmv1014004@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wen
Date: Thu Jan 15 14:49:47 2015
New Revision: 377092
URL: https://svnweb.freebsd.org/changeset/ports/377092
QAT: https://qat.redports.org/buildarchive/r377092/

Log:
  - Update to 2.1.9
  - Add LICENSE

Added:
  head/databases/hamsterdb/files/patch-src-1base-abi.h   (contents, props changed)
  head/databases/hamsterdb/files/patch-src-1mem-mem.cc   (contents, props changed)
Deleted:
  head/databases/hamsterdb/files/patch-bfc-testsuite.cpp
Modified:
  head/databases/hamsterdb/Makefile
  head/databases/hamsterdb/distinfo
  head/databases/hamsterdb/pkg-plist

Modified: head/databases/hamsterdb/Makefile
==============================================================================
--- head/databases/hamsterdb/Makefile	Thu Jan 15 13:40:56 2015	(r377091)
+++ head/databases/hamsterdb/Makefile	Thu Jan 15 14:49:47 2015	(r377092)
@@ -2,16 +2,21 @@
 # $FreeBSD$
 
 PORTNAME=	hamsterdb
-PORTVERSION=	1.1.15
-PORTREVISION=	1
+PORTVERSION=	2.1.9
 CATEGORIES=	databases
 MASTER_SITES=	http://files.hamsterdb.com/dl/
 
 MAINTAINER=	wen@FreeBSD.org
 COMMENT=	Lightweight Embedded Database Engine
 
+LICENSE=	APACHE20
+
+BUILD_DEPENDS=	${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs
+
 GNU_CONFIGURE=	yes
+CONFIGURE_ARGS+=	--with-boost=${LOCALBASE}
 INSTALL_TARGET=	install-strip
+CFLAGS+=	-I${LOCALBASE}/include -L${LOCALBASE}/lib
 USES=		gmake libtool
 USE_LDCONFIG=	yes
 
@@ -19,9 +24,16 @@ HAM_DOCS=	README INSTALL ChangeLog TODO 
 
 OPTIONS_DEFINE=	DOCS
 
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 1000000
+BROKEN=	does not build on FreeBSD < 10
+.endif
+
 post-patch:
 	${REINPLACE_CMD} -e 's#-ldl##g' ${WRKSRC}/configure
 	${REINPLACE_CMD} -e 's#-ldl##g' ${WRKSRC}/unittests/Makefile.in
+	${REINPLACE_CMD} -e 's#-ldl##g' ${WRKSRC}/tools/ham_bench/Makefile.in
 
 post-install:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
@@ -29,4 +41,4 @@ post-install:
 	${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/
 .endfor
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

Modified: head/databases/hamsterdb/distinfo
==============================================================================
--- head/databases/hamsterdb/distinfo	Thu Jan 15 13:40:56 2015	(r377091)
+++ head/databases/hamsterdb/distinfo	Thu Jan 15 14:49:47 2015	(r377092)
@@ -1,2 +1,2 @@
-SHA256 (hamsterdb-1.1.15.tar.gz) = aa7c56ba23c9fa3230593cb1b8a782865c110b388bd22fd4e4858152d61abfb5
-SIZE (hamsterdb-1.1.15.tar.gz) = 1569364
+SHA256 (hamsterdb-2.1.9.tar.gz) = 76b5889e6147649f07d8def23e93f9844573ec572fe95cee6849b117139ba57f
+SIZE (hamsterdb-2.1.9.tar.gz) = 1643455

Added: head/databases/hamsterdb/files/patch-src-1base-abi.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/hamsterdb/files/patch-src-1base-abi.h	Thu Jan 15 14:49:47 2015	(r377092)
@@ -0,0 +1,11 @@
+--- src/1base/abi.h.orig	2015-01-13 21:23:05.548499482 +0800
++++ src/1base/abi.h	2015-01-13 21:23:29.098504301 +0800
+@@ -31,7 +31,7 @@
+ #endif
+ 
+ #include <string>
+-
++#include <stdlib.h>
+ // Always verify that a file of level N does not include headers > N!
+ 
+ #ifndef HAM_ROOT_H

Added: head/databases/hamsterdb/files/patch-src-1mem-mem.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/hamsterdb/files/patch-src-1mem-mem.cc	Thu Jan 15 14:49:47 2015	(r377092)
@@ -0,0 +1,11 @@
+--- src/1mem/mem.cc.orig	2015-01-13 21:18:27.778765410 +0800
++++ src/1mem/mem.cc	2015-01-13 21:19:17.118392234 +0800
+@@ -67,6 +67,8 @@
+   // TODO
+ #elif __APPLE__
+   // TODO
++#elif __FreeBSD__
++  // TODO
+ #elif __GNUC__
+   ::malloc_trim(File::get_granularity());
+ #endif

Modified: head/databases/hamsterdb/pkg-plist
==============================================================================
--- head/databases/hamsterdb/pkg-plist	Thu Jan 15 13:40:56 2015	(r377091)
+++ head/databases/hamsterdb/pkg-plist	Thu Jan 15 14:49:47 2015	(r377092)
@@ -1,19 +1,21 @@
-lib/libhamsterdb.a
-lib/libhamsterdb.so
-lib/libhamsterdb.so.2
-lib/libhamsterdb.so.2.0.0
-include/ham/hamsterdb_srv.h
+bin/ham_bench
+bin/ham_dump
+bin/ham_info
+bin/ham_recover
 include/ham/hamsterdb.h
+include/ham/hamsterdb.hpp
 include/ham/hamsterdb_int.h
-include/ham/hamsterdb_stats.h
+include/ham/hamsterdb_ola.h
+include/ham/hamsterdb_srv.h
+include/ham/msstdint.h
 include/ham/types.h
-include/ham/hamsterdb.hpp
-bin/ham_info
-bin/ham_dump
-bin/ham_recover
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/INSTALL
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/TODO
+lib/libhamsterdb.a
+lib/libhamsterdb.so
+lib/libhamsterdb.so.5
+lib/libhamsterdb.so.5.0.2
 %%PORTDOCS%%%%DOCSDIR%%/AUTHORS
 %%PORTDOCS%%%%DOCSDIR%%/CREDITS
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/INSTALL
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501151449.t0FEnmv1014004>