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 13FA41581F2 for ; Sat, 14 Dec 2024 11:46:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 33B44E09D5; Sat, 14 Dec 2024 11:46:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id 15526E09D5 for ; Sat, 14 Dec 2024 11:46:37 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 48625342FA2 for ; Sat, 14 Dec 2024 11:46:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0304922CE for ; Sat, 14 Dec 2024 11:46:31 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1734132280.45d66397fb075bb928e384dc227143dacc54145f.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-db/soci/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-db/soci/metadata.xml dev-db/soci/soci-4.0.3-r1.ebuild dev-db/soci/soci-4.0.3.ebuild X-VCS-Directories: dev-db/soci/ X-VCS-Committer: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: 45d66397fb075bb928e384dc227143dacc54145f X-VCS-Branch: master Date: Sat, 14 Dec 2024 11:46:31 +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: 5534ee26-70b9-4e8e-9f5b-ab0959b2be2e X-Archives-Hash: 65abd8226e764c6da85d94df3df8209e commit: 45d66397fb075bb928e384dc227143dacc54145f Author: Jan-Espen Oversand radiotube org> AuthorDate: Fri Dec 13 23:24:40 2024 +0000 Commit: David Roman gmail com> CommitDate: Fri Dec 13 23:24:40 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=45d66397 dev-db/soci: add use flags for backends and cmake flags Signed-off-by: Jan-Espen Oversand radiotube.org> dev-db/soci/metadata.xml | 5 ++++ dev-db/soci/soci-4.0.3-r1.ebuild | 50 ++++++++++++++++++++++++++++++++++++++++ dev-db/soci/soci-4.0.3.ebuild | 28 ---------------------- 3 files changed, 55 insertions(+), 28 deletions(-) diff --git a/dev-db/soci/metadata.xml b/dev-db/soci/metadata.xml index e64cd5769..69b1e1d6a 100644 --- a/dev-db/soci/metadata.xml +++ b/dev-db/soci/metadata.xml @@ -5,6 +5,11 @@ sigsegv@radiotube.org Jan-Espen Oversand + + Enable running with UB sanitizer + Enable dynamic linking with shared objects + Enable c++11 support + soci diff --git a/dev-db/soci/soci-4.0.3-r1.ebuild b/dev-db/soci/soci-4.0.3-r1.ebuild new file mode 100644 index 000000000..3ca7b75a7 --- /dev/null +++ b/dev-db/soci/soci-4.0.3-r1.ebuild @@ -0,0 +1,50 @@ + +EAPI=8 + +inherit cmake + +DESCRIPTION="SOCI - The C++ Database Access Library" +HOMEPAGE="https://sourceforge.net/projects/soci/" +SRC_URI="https://sourceforge.net/projects/soci/files/soci/${P}/${P}.tar.gz/download -> ${P}.tar.gz" + +LICENSE="Boost-1.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="odbc sqlite oracle postgres mysql +shared +static test ubsan lto cxx11" +REQUIRED_USE="|| ( shared static )" +RESTRICT="!test? ( test )" + +CMAKE_SKIP_TESTS=( + soci_odbc_test_mssql + soci_odbc_test_mssql_static + soci_odbc_test_mysql + soci_odbc_test_mysql_static + soci_odbc_test_postgresql + soci_odbc_test_postgresql_static + soci_postgresql_test + soci_postgresql_test_static + soci_mysql_test + soci_mysql_test_static +) + +RDEPEND=" + >=dev-libs/boost-1.85.0-r1 + odbc? ( dev-db/unixODBC ) + sqlite? ( dev-db/sqlite ) + oracle? ( dev-db/oracle-instantclient[sdk] ) + postgres? ( dev-db/postgresql ) + mysql? ( dev-db/mysql ) +" +DEPEND="${RDEPEND}" + +src_configure() { + local mycmakeargs=( + -DSOCI_SHARED="$(usex shared)" + -DSOCI_STATIC="$(usex static)" + -DSOCI_TESTS="$(usex test)" + -DSOCI_UBSAN="$(usex ubsan)" + -DSOCI_LTO="$(usex lto)" + -DSOCI_CXX11="$(usex cxx11)" + ) + cmake_src_configure +} diff --git a/dev-db/soci/soci-4.0.3.ebuild b/dev-db/soci/soci-4.0.3.ebuild deleted file mode 100644 index dfdd6ed83..000000000 --- a/dev-db/soci/soci-4.0.3.ebuild +++ /dev/null @@ -1,28 +0,0 @@ - -EAPI=8 - -inherit cmake - -DESCRIPTION="SOCI - The C++ Database Access Library" -HOMEPAGE="https://sourceforge.net/projects/soci/" -SRC_URI="https://sourceforge.net/projects/soci/files/soci/soci-4.0.3/${P}.tar.gz/download -> ${P}.tar.gz" - -LICENSE="Boost-1.0" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -CMAKE_SKIP_TESTS=( - soci_odbc_test_mssql - soci_odbc_test_mssql_static - soci_odbc_test_mysql - soci_odbc_test_mysql_static - soci_odbc_test_postgresql - soci_odbc_test_postgresql_static - soci_postgresql_test - soci_postgresql_test_static -) - -RDEPEND=">=dev-libs/boost-1.85.0-r1 >=dev-db/unixODBC-2.3.12 >=dev-db/sqlite-3.46.1" -DEPEND="${RDEPEND}" -