net-libs/biblesync: fix build w/ cmake 4, EAPI 8

Closes: https://bugs.gentoo.org/952093
Signed-off-by: Johannes Huber <johu@gmx.de>
Part-of: https://github.com/gentoo/gentoo/pull/42300
Closes: https://github.com/gentoo/gentoo/pull/42300
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Johannes Huber 2025-05-28 18:15:59 +02:00 committed by Andreas Sturmlechner
parent 3978d0f1cf
commit 411b65ee47
No known key found for this signature in database
GPG Key ID: AE591BBC73E4DD5E
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="A multicast protocol to support Bible software shared co-navigation"
HOMEPAGE="https://wiki.crosswire.org/BibleSync"
SRC_URI="https://github.com/karlkleinpaste/${PN}/releases/download/${PV}/${P}.tar.gz"
LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64"
PATCHES=( "${FILESDIR}"/${P}-cmake4.patch )
src_configure() {
local mycmakeargs=(
# To prevent multilib-strict violations
-DLIBDIR="${EPREFIX}"/usr/$(get_libdir)
)
cmake_src_configure
}

View File

@ -0,0 +1,23 @@
From 4b00f9fd3d0c858947eee18206ef44f9f6bd2283 Mon Sep 17 00:00:00 2001
From: Karl Kleinpaste <karl@kleinpaste.org>
Date: Wed, 26 Mar 2025 14:30:21 -0400
Subject: [PATCH] fix #14 update cmake min version to 3.5 for cmake 4 min
permissible.
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7225bcb..8060d9c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,7 @@
PROJECT(libbiblesync CXX)
SET(BIBLESYNC_VERSION 2.1.0)
# A required CMake line
-CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
+CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
# Where our custom Find* files are located
SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")