app-text/ebook-tools: Fix build w/ cmake-4

Closes: https://bugs.gentoo.org/955639
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2025-05-08 21:59:14 +02:00
parent 419441ab64
commit 87aab65951
2 changed files with 13 additions and 1 deletions

View File

@@ -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() {

View File

@@ -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)