commit:     400c8f66f8919b284c16b37ae081fb8373a3200e
Author:     Thomas Raschbacher <lordvan <AT> gentoo <DOT> org>
AuthorDate: Mon Feb  2 08:28:41 2026 +0000
Commit:     Thomas Raschbacher <lordvan <AT> gentoo <DOT> org>
CommitDate: Mon Feb  2 08:28:41 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=400c8f66

dev-db/libzdb: add 3.5.0

Signed-off-by: Thomas Raschbacher <lordvan <AT> gentoo.org>

 dev-db/libzdb/Manifest            |  1 +
 dev-db/libzdb/libzdb-3.5.0.ebuild | 86 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 87 insertions(+)

diff --git a/dev-db/libzdb/Manifest b/dev-db/libzdb/Manifest
index bbaacf6e6af1..0173cd038c91 100644
--- a/dev-db/libzdb/Manifest
+++ b/dev-db/libzdb/Manifest
@@ -1,3 +1,4 @@
 DIST libzdb-3.2.3.tar.gz 771263 BLAKE2B 
a734dbee38ad175cd4d60afc7fe38c72318d5c74daf1556587997e592b2136d96fc747210aac4151764d8644a8b657a9364ffc1c7fcb133d8487f2585c12c22c
 SHA512 
3cf0641a7aabf91fa9bc7ed93bce6fa3e692cad309086e3f899ede443ffdd84ed20dda38fbc48764733537cdc105ae7e555a23cf7bc9b8f99e233787e0271e29
 DIST libzdb-3.4.0.tar.gz 956184 BLAKE2B 
b75d35c4061d3b98e88f82515f1289c22fb364eefca8e28cab870fb2cea3206511e7e2d34daf8017b4c129602e5cfbd260f894970603e35cae7827e123f793f6
 SHA512 
b3363c9d4fb9c5a7e076d2ab465b43e9ed4a4332f5020b22b8229f049f8f8644a20a72a6f36f7e7cb37fa6e1fd7532b051be06c2f33245ff16de9cd91dc05b3a
 DIST libzdb-3.4.1.tar.gz 976416 BLAKE2B 
50ce7d006508b09efe44c71783d3740e01b9dd36c5e1278756d2fd5447a39092daf783e57f0eec901fd8f2e600af0b8de529e7ae3e49f901a6c3eddaeda08841
 SHA512 
a653c5b85c8902310a93af987ebc23b0b6d9b5f10b4a9a1469c772cc9f52fcc153b5d2d4ba250670c6d039fe02a9b63429c5f64e5956542b8b3d4475c4e4071a
+DIST libzdb-3.5.0.tar.gz 1038028 BLAKE2B 
43871a5a2a205babbc1a07b05366ac6c96a684d71faef460b2d0f6fe4c60a15329c13a6dc80302f2f1a6b27fc88bbb3953d6bbe50b0ea4caaaf3b4ea0bf61c40
 SHA512 
ddbde199abd153cd72237761bee0d40db22de5f72089573e55296afe7a5de3f9dd2b8e10d3e7d72547843916fb4c9f8c78d967e8e5f8e4f943f679dad9f46cdb

diff --git a/dev-db/libzdb/libzdb-3.5.0.ebuild 
b/dev-db/libzdb/libzdb-3.5.0.ebuild
new file mode 100644
index 000000000000..730f67f2cb71
--- /dev/null
+++ b/dev-db/libzdb/libzdb-3.5.0.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A thread safe high level multi-database connection pool library"
+HOMEPAGE="https://www.tildeslash.com/libzdb/";
+SRC_URI="https://www.tildeslash.com/${PN}/dist/${P}.tar.gz";
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug doc mysql postgres +sqlite ssl static-libs"
+REQUIRED_USE=" || ( postgres mysql sqlite )"
+
+RESTRICT=test
+
+RDEPEND="mysql? ( dev-db/mysql-connector-c:0= )
+       postgres? ( dev-db/postgresql:* )
+       sqlite? ( >=dev-db/sqlite-3.7:3[unlock-notify(+)] )
+       ssl? ( dev-libs/openssl:0= )"
+DEPEND="${RDEPEND}
+       virtual/pkgconfig
+       doc? ( app-text/doxygen )"
+
+src_prepare() {
+       default
+       sed -i -e "s|&& ./pool||g" test/Makefile.in || die
+}
+
+src_configure() {
+       ## TODO: check what --enable-optimized actually does
+       ## TODO: find someone with oracle db to add oci8 support
+       myconf=""
+       # enable default hidden visibility
+       myconf="${myconf} --enable-protected"
+
+       if use sqlite; then
+               myconf="${myconf} --with-sqlite=${EPREFIX}/usr/ 
--enable-sqliteunlock"
+       else
+               myconf="${myconf} --without-sqlite"
+       fi
+
+       if use mysql; then
+               myconf="${myconf} --with-mysql=${EPREFIX}/usr/bin/mysql_config"
+       else
+               myconf="${myconf} --without-mysql"
+       fi
+
+       if use postgres; then
+               myconf="${myconf} 
--with-postgresql=${EPREFIX}/usr/bin/pg_config"
+       else
+               myconf="${myconf} --without-postgresql"
+       fi
+
+       econf \
+               $(use_enable debug profiling) \
+               $(use_enable static-libs static) \
+               $(use_enable ssl openssl) \
+               --without-oci \
+               ${myconf}
+}
+
+src_compile() {
+       default
+       if use doc; then
+               emake doc
+       fi
+}
+
+src_install() {
+       default
+
+       # the --disable-static flag only skips .a
+       use static-libs || rm -f "${D}"/usr/lib*/libzdb.la
+
+       dodoc AUTHORS CHANGES README
+       if use doc;then
+               docinto html
+               dodoc -r "${S}/doc/api-docs"/*
+       fi
+}
+
+src_test() {
+       emake verify
+}

Reply via email to