C++17 wrapper for Lightning Memory-Mapped Database OK sthen@

This commit is contained in:
gonzalo 2021-11-21 16:09:40 +00:00
parent 46e2e15a4e
commit c40d375bed
4 changed files with 50 additions and 0 deletions

41
databases/lmdbxx/Makefile Normal file
View File

@ -0,0 +1,41 @@
# $OpenBSD: Makefile,v 1.1.1.1 2021/11/21 16:09:40 gonzalo Exp $
COMMENT = C++17 wrapper for Lightning Memory-Mapped Database
VERSION = 1.0.0
DISTNAME = lmdbxx-${VERSION}
CATEGORIES = databases
GH_ACCOUNT = hoytech
GH_PROJECT = lmdbxx
#GH_TAGNAME = 1.0.0
GH_COMMIT = f1f00acf5f5045b43d7189c2b23ae5ca103a6faa
HOMEPAGE = https://github.com/hoytech/lmdbxx
MAINTAINER = Aisha Tammy <openbsd@aisha.cc>
# Unlicense
PERMIT_PACKAGE = Yes
COMPILER = base-clang ports-gcc
NO_BUILD = Yes
RUN_DEPENDS = databases/lmdb
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lmdbxx
${INSTALL_DATA} ${WRKSRC}/lmdb++.h ${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/README.md ${PREFIX}/share/doc/lmdbxx/README
do-test:
cd ${WRKSRC} && \
rm -rf testdb && \
mkdir -p testdb && \
${CXX} ${CXXFLAGS} -std=c++17 -Wall -I${LOCALBASE}/include -I. \
-o check check.cc ${LDFLAGS} -L${LOCALBASE}/lib -llmdb && \
./check
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (lmdbxx-1.0.0-f1f00acf.tar.gz) = hcZXFqDBZaZ8N3t6DP6m5mMypWnY2kadLD49v5mwSZo=
SIZE (lmdbxx-1.0.0-f1f00acf.tar.gz) = 53347

View File

@ -0,0 +1,3 @@
A comprehensive C++ wrapper for the LMDB embedded database library, offering
both an error-checked procedural interface and an object-oriented resource
interface with RAII semantics.

View File

@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2021/11/21 16:09:40 gonzalo Exp $
include/lmdb++.h
share/doc/lmdbxx/
share/doc/lmdbxx/README