head	1.5;
access;
symbols
	pkgsrc-2026Q1:1.5.0.14
	pkgsrc-2026Q1-base:1.5
	pkgsrc-2025Q4:1.5.0.12
	pkgsrc-2025Q4-base:1.5
	pkgsrc-2025Q3:1.5.0.10
	pkgsrc-2025Q3-base:1.5
	pkgsrc-2025Q2:1.5.0.8
	pkgsrc-2025Q2-base:1.5
	pkgsrc-2025Q1:1.5.0.6
	pkgsrc-2025Q1-base:1.5
	pkgsrc-2024Q4:1.5.0.4
	pkgsrc-2024Q4-base:1.5
	pkgsrc-2024Q3:1.5.0.2
	pkgsrc-2024Q3-base:1.5
	pkgsrc-2024Q2:1.4.0.16
	pkgsrc-2024Q2-base:1.4
	pkgsrc-2024Q1:1.4.0.14
	pkgsrc-2024Q1-base:1.4
	pkgsrc-2023Q4:1.4.0.12
	pkgsrc-2023Q4-base:1.4
	pkgsrc-2023Q3:1.4.0.10
	pkgsrc-2023Q3-base:1.4
	pkgsrc-2023Q2:1.4.0.8
	pkgsrc-2023Q2-base:1.4
	pkgsrc-2023Q1:1.4.0.6
	pkgsrc-2023Q1-base:1.4
	pkgsrc-2022Q4:1.4.0.4
	pkgsrc-2022Q4-base:1.4
	pkgsrc-2022Q3:1.4.0.2
	pkgsrc-2022Q3-base:1.4
	pkgsrc-2022Q2:1.3.0.12
	pkgsrc-2022Q2-base:1.3
	pkgsrc-2022Q1:1.3.0.10
	pkgsrc-2022Q1-base:1.3
	pkgsrc-2021Q4:1.3.0.8
	pkgsrc-2021Q4-base:1.3
	pkgsrc-2021Q3:1.3.0.6
	pkgsrc-2021Q3-base:1.3
	pkgsrc-2021Q2:1.3.0.4
	pkgsrc-2021Q2-base:1.3
	pkgsrc-2021Q1:1.3.0.2
	pkgsrc-2021Q1-base:1.3
	pkgsrc-2020Q4:1.2.0.14
	pkgsrc-2020Q4-base:1.2
	pkgsrc-2020Q3:1.2.0.12
	pkgsrc-2020Q3-base:1.2
	pkgsrc-2020Q2:1.2.0.10
	pkgsrc-2020Q2-base:1.2
	pkgsrc-2020Q1:1.2.0.6
	pkgsrc-2020Q1-base:1.2
	pkgsrc-2019Q4:1.2.0.8
	pkgsrc-2019Q4-base:1.2
	pkgsrc-2019Q3:1.2.0.4
	pkgsrc-2019Q3-base:1.2
	pkgsrc-2019Q2:1.2.0.2
	pkgsrc-2019Q2-base:1.2
	pkgsrc-2019Q1:1.1.0.20
	pkgsrc-2019Q1-base:1.1
	pkgsrc-2018Q4:1.1.0.18
	pkgsrc-2018Q4-base:1.1
	pkgsrc-2018Q3:1.1.0.16
	pkgsrc-2018Q3-base:1.1
	pkgsrc-2018Q2:1.1.0.14
	pkgsrc-2018Q2-base:1.1
	pkgsrc-2018Q1:1.1.0.12
	pkgsrc-2018Q1-base:1.1
	pkgsrc-2017Q4:1.1.0.10
	pkgsrc-2017Q4-base:1.1
	pkgsrc-2017Q3:1.1.0.8
	pkgsrc-2017Q3-base:1.1
	pkgsrc-2017Q2:1.1.0.4
	pkgsrc-2017Q2-base:1.1
	pkgsrc-2017Q1:1.1.0.2
	pkgsrc-2017Q1-base:1.1;
locks; strict;
comment	@# @;


1.5
date	2024.08.25.06.18.28;	author wiz;	state Exp;
branches;
next	1.4;
commitid	BcrSL94SO85mvanF;

1.4
date	2022.08.05.13.02.02;	author adam;	state Exp;
branches;
next	1.3;
commitid	Vls3iuGbzuUsSGOD;

1.3
date	2021.02.20.13.45.35;	author ryoon;	state Exp;
branches;
next	1.2;
commitid	H0eCuPcXNGFKbsIC;

1.2
date	2019.06.05.13.22.04;	author adam;	state Exp;
branches;
next	1.1;
commitid	VweFT86p9T9Ya0qB;

1.1
date	2017.03.14.13.12.28;	author wiz;	state Exp;
branches;
next	;
commitid	ye2fN95IjVcggwJz;


desc
@@


1.5
log
@*: replace CMAKE_ARGS with CMAKE_CONFIGURE_ARGS
@
text
@# $NetBSD: Makefile,v 1.4 2022/08/05 13:02:02 adam Exp $

DISTNAME=	leveldb-1.23
CATEGORIES=	databases
MASTER_SITES=	${MASTER_SITE_GITHUB:=google/}

MAINTAINER=	mishka@@NetBSD.org
HOMEPAGE=	https://github.com/google/leveldb
COMMENT=	Fast and lightweight key/value database library by Google
LICENSE=	modified-bsd

USE_CMAKE=	yes
USE_LANGUAGES=	c c++11
CMAKE_CONFIGURE_ARGS+=	-DBUILD_SHARED_LIBS=ON
CMAKE_CONFIGURE_ARGS+=	-DLEVELDB_BUILD_BENCHMARKS=OFF
CMAKE_CONFIGURE_ARGS+=	-DLEVELDB_BUILD_TESTS=OFF

CFLAGS+=	-fPIC

.include "../../devel/snappy/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.4
log
@leveldb: updated to 1.23

1.23

Sync MANIFEST before closing in db_impl when creating a new DB. Add logging with debugging information when failing to load a version set.
Optimize leveldb block seeks to utilize the current iterator location. This is beneficial when iterators are reused and seeks are not random but increasing. It is additionally beneficial with larger block sizes and keys with common prefixes.
Documentation fixes
(cmumford/printf-fix) Fixed fprintf of 64-bit value.
(cmumford/benchmark) Added google/benchmark submodule.
Internal test cleanup
Internal cleanup migrating StatusOr.
avoid unnecessary memory copy
Fix accidental double std:: qualifiers.
Add some std:: qualifiers to types and functions.
Switch from C headers to C++ headers.
change const to constexpr
remove unnessary status judge
Remove leveldb::port::kLittleEndian.
Remove Windows workarounds in some tests.
Add Env::Remove{File,Dir} which obsolete Env::Delete{File,Dir}.
Defend against inclusion of windows.h in tests that invoke Env::DeleteFile.
Add WITHOUT ROWID to SQLite benchmark.
Switch testing harness to googletest.
Move CI to Visual Studio 2019.
Allow different C/C++ standards when this is used as a subproject.
Align CMake configuration with related projects.
Remove redundant PROJECT_SOURCE_DIR usage from CMake config.
Fix installed target definition.
Added return in Version::Get::State::Match to quiet warning.
Using CMake's check_cxx_compiler_flag to check support for -Wthread-safety.
Fix tsan problem in env_test.
Simplify unlocking in DeleteObsoleteFiles.
Add "leveldb" subdirectory to public include paths.
Align EnvPosix and EnvWindows.
Disable exceptions and RTTI in CMake configuration.
cache Saver in State object
fix bug(uninitialized options pointer in State)
remove TODO in Version::ForEachOverlapping
use ForEachOverlapping to impl Get
unsigned char -> uint8_t
Add explicit typecasts to avoid compiler warning.
Guard DBImpl::versions_ by mutex_.
Converted two for-loops to while-loops.
Switch to using C++ 11 override specifier.
Added unit test for InternalKey::DecodeFrom with empty string.
Using std::ostringstream in key DebugString.
Fix EnvPosix tests on Travis CI.
Clean up util/coding.{h,cc}.
Initialize Stats::start_ before first use in Stats::Start().
Add argument definition for void c functions.
Consolidate benchmark code to benchmarks/.
Convert missed virtual -> override in db_test.cc.
don't check current key in DBIter::Next()
Add O_CLOEXEC to open calls.
broken db: fix assertion in leveldb::InternalKey::Encode, mark base as corrupt
set const property
reduce lock's range in DeleteObsoleteFiles
block_builder header file dependency fixed
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2021/02/20 13:45:35 ryoon Exp $
d14 3
a16 3
CMAKE_ARGS+=	-DBUILD_SHARED_LIBS=ON
CMAKE_ARGS+=	-DLEVELDB_BUILD_BENCHMARKS=OFF
CMAKE_ARGS+=	-DLEVELDB_BUILD_TESTS=OFF
@


1.3
log
@leveldb: Enable -fPIC to avoid link errors by consumer, upcoming librime-1.7.2
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2019/06/05 13:22:04 adam Exp $
d3 1
a3 2
DISTNAME=	leveldb-1.22
PKGREVISION=	1
d13 2
a14 1
USE_LANGUAGES+=	c c++11
d16 1
a16 1
TEST_TARGET=	test
@


1.2
log
@leveldb: updated to 1.22

Release 1.22
Corrected formatting to be compliant with the Google C++ Style Guide.
Specifically export the WriteBatch::Handler inner class for Windows link.
Merge pull request 665 from cheng-chang:coding.
Merge pull request 669 from pavel-pimenov:fix-readme-windows-mkdir.
Merge pull request 472 from zhoudayang:patch-1.
Merge pull request 339 from richcole-at-amazon:master.
Restore soname versioning with CMake build.
Other miscellaneous cleanups, fixes, and improvements.

Release 1.21
Switched to using Copybara for project synchronization.
Minor cleanup in ports.
Silence unused argument warnings in MSVC.
Add tests for empty keys and values.
Switch corruption_test to use InMemEnv.
Replace AtomicPointer with std::atomic.
Make InMemoryEnv more consistent with filesystem based Env's.
Align windows_logger with posix_logger.
Improve CI configuration and added AppVeyor (Windows CI) badge to README.
Added native support for Windows.
Make WriteBatch::ApproximateSize() const.
Fix PosixWritableFile::Sync() on Apple systems.
Fix fdatasync() feature detection in opensource build.
C++11 cleanup for util/mutexlock.h.
Rework threading in env_posix.cc.
Remove InitOnce from the port API.
Expose WriteBatch::Append().
Fix documentation for log file growth.
Add move constructor to Status.
Replace port_posix with port_stdcxx.
Reimplement ConsumeDecimalNumber.
Document the building process.
Replace NULL with nullptr in C++ files.
Remove PLATFORM_IS_LITTLE_ENDIAN from port/posix.h.
Add more thread safety annotations.
Require C++11.
Replace SIZE_MAX with std::numeric_limits.
Add CMake build support.
Enable thread safety annotations.
leveldb::DestroyDB will now delete empty directories.
Replace SSE-optimized CRC32C in POSIX port with external library.
Fix file writing bug in CL 170738066.
Fix use of uninitialized value in LRUHandle.
Fix issue 474: a race between the f*_unlocked() STDIO calls in env_posix.cc and concurrent application calls to fflush(NULL).
Use __APPLE__ instead of OS_MACOS. The former is compiler-provided.
Report missing CURRENT manifest file as database corruption.
LevelDB: Add WriteBatch::ApproximateSize().
Other minor fixes, code cleanup, and documentation improvements.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2017/03/14 13:12:28 wiz Exp $
d4 1
d18 2
@


1.1
log
@Import leveldb-1.20 as databases/leveldb.

Packaged for wip by Mike M. Volokhov and myself.

LevelDB is a fast key-value storage library written at Google that
provides an ordered mapping from string keys to string values.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2013/11/17 07:26:45 bubuchka Exp $
d3 1
a3 1
DISTNAME=	leveldb-1.20
a5 1
GITHUB_TAG=	v${PKGVERSION_NOREV}
d12 4
a15 2
USE_LANGUAGES+=	c c++
USE_TOOLS+=	gmake pax
d17 1
a17 35
INSTALLATION_DIRS+=	bin include/leveldb lib share/doc/leveldb

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "Darwin"
SS=		dylib
.else
SS=		so
.endif

MAJOR=		${PKGVERSION_NOREV:R}
MINOR=		${PKGVERSION_NOREV:E}

# N.B.: leveldb Darwin support follows popular Unix .so naming convention
SS.M=		${SS}.${MAJOR}
SS.M.N=		${SS}.${MAJOR}.${MINOR}

PLIST_SUBST+=	SS=${SS:Q} SS.M=${SS.M:Q} SS.M.N=${SS.M.N:Q}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/out-static/leveldbutil ${DESTDIR}${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/out-static/db_bench 				\
		${DESTDIR}${PREFIX}/bin/leveldb_bench

	${INSTALL_LIB} ${WRKSRC}/out-static/libleveldb.a ${DESTDIR}${PREFIX}/lib
	${INSTALL_LIB} ${WRKSRC}/out-shared/libleveldb.${SS.M.N} ${DESTDIR}${PREFIX}/lib
	${LN} -s libleveldb.${SS.M.N} ${DESTDIR}${PREFIX}/lib/libleveldb.${SS.M}
	${LN} -s libleveldb.${SS.M} ${DESTDIR}${PREFIX}/lib/libleveldb.${SS}

	${INSTALL_DATA} ${WRKSRC}/include/leveldb/*			\
		${DESTDIR}${PREFIX}/include/leveldb

	cd ${WRKSRC}/doc && ${PAX} -rw . ${DESTDIR}${PREFIX}/share/doc/leveldb

.include "options.mk"
@

