From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2EC18158164 for ; Sun, 17 Nov 2024 19:47:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6A9A3E0F87; Sun, 17 Nov 2024 19:47:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5493FE0F87 for ; Sun, 17 Nov 2024 19:47:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 88969340C39 for ; Sun, 17 Nov 2024 19:47:27 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ED5BD18C4 for ; Sun, 17 Nov 2024 19:47:25 +0000 (UTC) From: "Thomas Raschbacher" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Raschbacher" Message-ID: <1731872818.12de73a0018d4b039ffe91ab95784336793b0ff1.lordvan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/libzdb/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-db/libzdb/Manifest dev-db/libzdb/libzdb-3.4.0.ebuild X-VCS-Directories: dev-db/libzdb/ X-VCS-Committer: lordvan X-VCS-Committer-Name: Thomas Raschbacher X-VCS-Revision: 12de73a0018d4b039ffe91ab95784336793b0ff1 X-VCS-Branch: master Date: Sun, 17 Nov 2024 19:47:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5a4d1dd3-4a90-4130-9196-c9c20ad6298b X-Archives-Hash: 162f765e386be6bfe05b8dc02563ae2d commit: 12de73a0018d4b039ffe91ab95784336793b0ff1 Author: Thomas Raschbacher gentoo org> AuthorDate: Sun Nov 17 15:44:26 2024 +0000 Commit: Thomas Raschbacher gentoo 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 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 +}