commit: 96cfb4eb1e04bbdabebf0f995cae4e4d65f2df5d Author: Jan-Espen Oversand <sigsegv <AT> radiotube <DOT> org> AuthorDate: Wed May 28 13:26:43 2025 +0000 Commit: David Roman <davidroman96 <AT> gmail <DOT> com> CommitDate: Wed May 28 13:26:43 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=96cfb4eb
dev-db/soci: cmake 4 compat patch Signed-off-by: Jan-Espen Oversand <sigsegv <AT> radiotube.org> dev-db/soci/files/soci-4.0.3-cmake-4.patch | 20 +++++++++++ dev-db/soci/soci-4.0.3-r4.ebuild | 53 ++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) diff --git a/dev-db/soci/files/soci-4.0.3-cmake-4.patch b/dev-db/soci/files/soci-4.0.3-cmake-4.patch new file mode 100644 index 0000000000..0a123aeae5 --- /dev/null +++ b/dev-db/soci/files/soci-4.0.3-cmake-4.patch @@ -0,0 +1,20 @@ +--- soci-4.0.3/CMakeLists.txt.orig 2025-05-25 10:58:59.233104228 +0200 ++++ soci-4.0.3/CMakeLists.txt 2025-05-25 11:02:52.179087165 +0200 +@@ -10,7 +10,7 @@ + ############################################################################### + # General settings + ############################################################################### +-cmake_minimum_required(VERSION 2.8 FATAL_ERROR) ++cmake_minimum_required(VERSION 3.10 FATAL_ERROR) + + project(SOCI) + +@@ -26,7 +26,7 @@ + option(SOCI_VISIBILITY "Enable hiding private symbol using ELF visibility if supported by the platform" ON) + + if (SOCI_LTO) +- cmake_minimum_required(VERSION 3.9) ++ cmake_minimum_required(VERSION 3.10) + + # Check and enable lto support + include(CheckIPOSupported) diff --git a/dev-db/soci/soci-4.0.3-r4.ebuild b/dev-db/soci/soci-4.0.3-r4.ebuild new file mode 100644 index 0000000000..d93e7e1dc5 --- /dev/null +++ b/dev-db/soci/soci-4.0.3-r4.ebuild @@ -0,0 +1,53 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +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 static-libs test lto +cxx11" +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}/${P}"-cmake-4.patch +) + +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_STATIC="$(usex static-libs)" + -DSOCI_TESTS="$(usex test)" + -DSOCI_LTO="$(usex lto)" + -DSOCI_CXX11="$(usex cxx11)" + ) + cmake_src_configure +}
