commit:     be11f4de705d9dcaf687be208ddc0609b5938733
Author:     Kenton Groombridge <concord <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 10 13:56:10 2025 +0000
Commit:     Kenton Groombridge <concord <AT> gentoo <DOT> org>
CommitDate: Wed Sep 10 14:12:08 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be11f4de

dev-db/soci: new package, add 4.0.3-r5, 4.1.2-r1

Move dev-db/soci from ::guru to ::gentoo. Needed as a dependency of
future versions of net-voip/mumble and net-voip/murmur.

Increment version as the LTO USE flag was removed. Users who wish to
enable it can instead pass CMAKE_INTERPROCEDURAL_OPTIMIZATION=ON
directly.

Signed-off-by: Kenton Groombridge <concord <AT> gentoo.org>

 dev-db/soci/Manifest                       |  2 ++
 dev-db/soci/files/soci-4.0.3-cmake-4.patch | 20 ++++++++++++
 dev-db/soci/metadata.xml                   | 22 +++++++++++++
 dev-db/soci/soci-4.0.3-r5.ebuild           | 52 ++++++++++++++++++++++++++++++
 dev-db/soci/soci-4.1.2-r1.ebuild           | 47 +++++++++++++++++++++++++++
 5 files changed, 143 insertions(+)

diff --git a/dev-db/soci/Manifest b/dev-db/soci/Manifest
new file mode 100644
index 000000000000..a401da3d6f15
--- /dev/null
+++ b/dev-db/soci/Manifest
@@ -0,0 +1,2 @@
+DIST soci-4.0.3.tar.gz 1213452 BLAKE2B 
c0fe6d80e32a8df6de94d6fea5bafc1010b8f3e83a7132f95784e1dcc9b682e0037909621a5526c84dd78de60490016916d444f22dfb2a751c357c7a34ff6539
 SHA512 
1a3a00b8656a95d0e47256fe5ce5a26bc3fc6379b8cadfb12d4e604fb0168724d6cd7090b6b47ee329822593089386a59bdd040b081d873fcc31ad3555031bc6
+DIST soci-4.1.2.tar.gz 4380345 BLAKE2B 
9c2036fcf8a5021a4906384fceb4b9b0e7284a0daff6392d919a80c9d28d9bacb94346c0d5dffad571c8cb5da60d7e479dd4bc5cadcdd7a88e3918a714a35b45
 SHA512 
45fe481809abd9c22c609dd9488bf4c2d3fd9df20e5973be7898647061f52dbff260940f218337c351c2d33d1bcd10b811436bae4cbd03bcab827b76e41ac566

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 000000000000..0a123aeae5f4
--- /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/metadata.xml b/dev-db/soci/metadata.xml
new file mode 100644
index 000000000000..40cab7479373
--- /dev/null
+++ b/dev-db/soci/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Kenton Groombridge</name>
+       </maintainer>
+       <maintainer type="person" proxied="yes">
+               <email>[email protected]</email>
+               <name>Jan-Espen Oversand</name>
+       </maintainer>
+       <maintainer type="project" proxied="proxy">
+               <email>[email protected]</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <use>
+               <flag name="cxx11">Enable c++11 support</flag>
+       </use>
+       <upstream>
+               <remote-id type="sourceforge">soci</remote-id>
+       </upstream>
+</pkgmetadata>

diff --git a/dev-db/soci/soci-4.0.3-r5.ebuild b/dev-db/soci/soci-4.0.3-r5.ebuild
new file mode 100644
index 000000000000..6c6442cb85c3
--- /dev/null
+++ b/dev-db/soci/soci-4.0.3-r5.ebuild
@@ -0,0 +1,52 @@
+# Copyright 2024-2025 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 ~x86"
+IUSE="+cxx11 mysql odbc oracle postgres sqlite static-libs test"
+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
+       mysql? ( dev-db/mysql:* )
+       odbc? ( dev-db/unixODBC )
+       oracle? ( dev-db/oracle-instantclient:=[sdk] )
+       postgres? ( dev-db/postgresql:= )
+       sqlite? ( dev-db/sqlite )
+"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+       local mycmakeargs=(
+               -DSOCI_STATIC="$(usex static-libs)"
+               -DSOCI_TESTS="$(usex test)"
+               -DSOCI_CXX11="$(usex cxx11)"
+       )
+       cmake_src_configure
+}

diff --git a/dev-db/soci/soci-4.1.2-r1.ebuild b/dev-db/soci/soci-4.1.2-r1.ebuild
new file mode 100644
index 000000000000..7c0488fa60c4
--- /dev/null
+++ b/dev-db/soci/soci-4.1.2-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2024-2025 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 ~x86"
+IUSE="mysql odbc oracle postgres sqlite static-libs test"
+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
+       mysql? ( dev-db/mysql:* )
+       odbc? ( dev-db/unixODBC )
+       oracle? ( dev-db/oracle-instantclient:=[sdk] )
+       postgres? ( dev-db/postgresql:= )
+       sqlite? ( dev-db/sqlite )
+"
+DEPEND="${RDEPEND}"
+
+src_configure() {
+       local mycmakeargs=(
+               -DSOCI_STATIC="$(usex static-libs)"
+               -DSOCI_TESTS="$(usex test)"
+       )
+       cmake_src_configure
+}

Reply via email to