commit:     01820a436efa3aa9cdb6de7a52c6b6900656b030
Author:     Thomas Raschbacher <lordvan <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 19 20:50:40 2025 +0000
Commit:     Thomas Raschbacher <lordvan <AT> gentoo <DOT> org>
CommitDate: Wed Nov 19 20:50:40 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01820a43

dev-db/libzdb: add 3.4.1

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

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

diff --git a/dev-db/libzdb/Manifest b/dev-db/libzdb/Manifest
index c29d9ea8eb6a..bbaacf6e6af1 100644
--- a/dev-db/libzdb/Manifest
+++ b/dev-db/libzdb/Manifest
@@ -1,2 +1,3 @@
 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

diff --git a/dev-db/libzdb/libzdb-3.4.1.ebuild 
b/dev-db/libzdb/libzdb-3.4.1.ebuild
new file mode 100644
index 000000000000..039207399ab3
--- /dev/null
+++ b/dev-db/libzdb/libzdb-3.4.1.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2025 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