sci-libs/parmetis: Fix build w/ CMake-4

Closes: https://bugs.gentoo.org/963577
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2026-05-17 23:48:28 +02:00
parent 30f7695626
commit 572d141080
2 changed files with 24 additions and 3 deletions

View File

@@ -0,0 +1,21 @@
Source: https://github.com/KarypisLab/ParMETIS/pull/34
From c4731003101f0579505c3fe6c07247e17be24e39 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= <foss@grueninger.de>
Date: Fri, 4 Jul 2025 23:14:49 +0200
Subject: [PATCH] Require CMake 3.10
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 146bc5f..b1661a9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 3.10)
project(ParMETIS C)

View File

@@ -1,11 +1,10 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake toolchain-funcs
COMMIT="8ee6a372ca703836f593e3c450ca903f04be14df"
inherit cmake toolchain-funcs
DESCRIPTION="Parallel (MPI) unstructured graph partitioning library"
HOMEPAGE="https://github.com/KarypisLab/ParMETIS"
@@ -29,6 +28,7 @@ RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${P}-respect-user-flags.patch
"${FILESDIR}"/${P}-multilib.patch
"${FILESDIR}"/${P}-cmake4.patch
)
pkg_pretend() {