net-libs/libomemo-c: Fix build w/ >=cmake-4

Closes: https://bugs.gentoo.org/953548
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2025-04-12 16:59:40 +02:00
parent d94620942d
commit d9e3cd92af
2 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
--- a/CMakeLists.txt 2025-02-28 16:30:57.000000000 +0100
+++ b/CMakeLists.txt 2025-04-12 16:56:54.729179310 +0200
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8.4)
+cmake_minimum_required(VERSION 3.5)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/")
project(omemo-c)

View File

@@ -10,8 +10,8 @@ HOMEPAGE="https://github.com/dino/libomemo-c/"
SRC_URI="https://github.com/dino/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD BSD-1 GPL-3 ISC"
KEYWORDS="amd64"
SLOT="0"
KEYWORDS="amd64"
IUSE="test"
RESTRICT="!test? ( test )"
@@ -23,6 +23,9 @@ DEPEND="${RDEPEND}
)
"
# upstream are switching to meson, so no need to try send this upstream
PATCHES=( "${FILESDIR}/${P}-cmake4.patch" ) # bug 953548
src_configure() {
local mycmakeargs=(
-DBUILD_TESTING=$(usex test)