From 411b65ee47bcc44f844c597a48724a68c5c24d12 Mon Sep 17 00:00:00 2001 From: Johannes Huber Date: Wed, 28 May 2025 18:15:59 +0200 Subject: [PATCH] net-libs/biblesync: fix build w/ cmake 4, EAPI 8 Closes: https://bugs.gentoo.org/952093 Signed-off-by: Johannes Huber Part-of: https://github.com/gentoo/gentoo/pull/42300 Closes: https://github.com/gentoo/gentoo/pull/42300 Signed-off-by: Andreas Sturmlechner --- net-libs/biblesync/biblesync-2.1.0-r1.ebuild | 24 +++++++++++++++++++ .../files/biblesync-2.1.0-cmake4.patch | 23 ++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 net-libs/biblesync/biblesync-2.1.0-r1.ebuild create mode 100644 net-libs/biblesync/files/biblesync-2.1.0-cmake4.patch diff --git a/net-libs/biblesync/biblesync-2.1.0-r1.ebuild b/net-libs/biblesync/biblesync-2.1.0-r1.ebuild new file mode 100644 index 0000000000000..434cac7222bca --- /dev/null +++ b/net-libs/biblesync/biblesync-2.1.0-r1.ebuild @@ -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 +} diff --git a/net-libs/biblesync/files/biblesync-2.1.0-cmake4.patch b/net-libs/biblesync/files/biblesync-2.1.0-cmake4.patch new file mode 100644 index 0000000000000..26379dd7a407e --- /dev/null +++ b/net-libs/biblesync/files/biblesync-2.1.0-cmake4.patch @@ -0,0 +1,23 @@ +From 4b00f9fd3d0c858947eee18206ef44f9f6bd2283 Mon Sep 17 00:00:00 2001 +From: Karl Kleinpaste +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") +