From 87aab659516d3855b91be9c4b4c42e317e03abce Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Thu, 8 May 2025 21:59:14 +0200 Subject: [PATCH] app-text/ebook-tools: Fix build w/ cmake-4 Closes: https://bugs.gentoo.org/955639 Signed-off-by: Andreas Sturmlechner --- app-text/ebook-tools/ebook-tools-0.2.2-r2.ebuild | 3 ++- .../ebook-tools/files/ebook-tools-0.2.2-cmake4.patch | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 app-text/ebook-tools/files/ebook-tools-0.2.2-cmake4.patch diff --git a/app-text/ebook-tools/ebook-tools-0.2.2-r2.ebuild b/app-text/ebook-tools/ebook-tools-0.2.2-r2.ebuild index 50b2469665eb1..29c9aec7e577a 100644 --- a/app-text/ebook-tools/ebook-tools-0.2.2-r2.ebuild +++ b/app-text/ebook-tools/ebook-tools-0.2.2-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -26,6 +26,7 @@ PATCHES=( "${FILESDIR}/${P}-crashfix.patch" "${FILESDIR}/${P}-fvisibility-hidden.patch" "${FILESDIR}/${P}-libzip-cmake.patch" + "${FILESDIR}/${P}-cmake4.patch" # bug 955639 ) src_prepare() { diff --git a/app-text/ebook-tools/files/ebook-tools-0.2.2-cmake4.patch b/app-text/ebook-tools/files/ebook-tools-0.2.2-cmake4.patch new file mode 100644 index 0000000000000..a71850cd3ab7b --- /dev/null +++ b/app-text/ebook-tools/files/ebook-tools-0.2.2-cmake4.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt 2012-09-04 16:32:32.000000000 +0200 ++++ b/CMakeLists.txt 2025-05-08 21:58:17.596985926 +0200 +@@ -1,6 +1,6 @@ +-project (EBOOK-TOOLS C) ++cmake_minimum_required(VERSION 3.5.0) + +-cmake_minimum_required(VERSION 2.4.0) ++project (EBOOK-TOOLS C) + + #set(CMAKE_CURRENT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src) + set(LIBRARY_OUTPUT_PATH ${EBOOK-TOOLS_BINARY_DIR}/libs)