commit:     12de73a0018d4b039ffe91ab95784336793b0ff1
Author:     Thomas Raschbacher <lordvan <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 17 15:44:26 2024 +0000
Commit:     Thomas Raschbacher <lordvan <AT> gentoo <DOT> org>
CommitDate: Sun Nov 17 19:46:58 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12de73a0

dev-db/libzdb: add 3.4.0

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

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

diff --git a/dev-db/libzdb/Manifest b/dev-db/libzdb/Manifest
index dccae33c1c34..c29d9ea8eb6a 100644
--- a/dev-db/libzdb/Manifest
+++ b/dev-db/libzdb/Manifest
@@ -1 +1,2 @@
 DIST libzdb-3.2.3.tar.gz 771263 BLAKE2B 
a734dbee38ad175cd4d60afc7fe38c72318d5c74daf1556587997e592b2136d96fc747210aac4151764d8644a8b657a9364ffc1c7fcb133d8487f2585c12c22c
 SHA512 
3cf0641a7aabf91fa9bc7ed93bce6fa3e692cad309086e3f899ede443ffdd84ed20dda38fbc48764733537cdc105ae7e555a23cf7bc9b8f99e233787e0271e29
+DIST libzdb-3.4.0.tar.gz 956184 BLAKE2B 
b75d35c4061d3b98e88f82515f1289c22fb364eefca8e28cab870fb2cea3206511e7e2d34daf8017b4c129602e5cfbd260f894970603e35cae7827e123f793f6
 SHA512 
b3363c9d4fb9c5a7e076d2ab465b43e9ed4a4332f5020b22b8229f049f8f8644a20a72a6f36f7e7cb37fa6e1fd7532b051be06c2f33245ff16de9cd91dc05b3a

diff --git a/dev-db/libzdb/libzdb-3.4.0.ebuild 
b/dev-db/libzdb/libzdb-3.4.0.ebuild
new file mode 100644
index 000000000000..300fd5a6106a
--- /dev/null
+++ b/dev-db/libzdb/libzdb-3.4.0.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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