mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-cpp/muParserX: fix compat w/ CMake 4
Closes: https://bugs.gentoo.org/953767 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
49
dev-cpp/muParserX/files/muParserX-4.0.12-cmake-4.patch
Normal file
49
dev-cpp/muParserX/files/muParserX-4.0.12-cmake-4.patch
Normal file
@@ -0,0 +1,49 @@
|
||||
https://github.com/beltoforion/muparserx/commit/d671af0882d4ba09a4bba810877b796f1877d41e
|
||||
https://github.com/beltoforion/muparserx/commit/c605872591d542e1630e3fcc4b292d8a0702acd2
|
||||
|
||||
From d671af0882d4ba09a4bba810877b796f1877d41e Mon Sep 17 00:00:00 2001
|
||||
From: nalinigans <nalini@omicsautomation.com>
|
||||
Date: Tue, 21 Mar 2023 10:13:14 -0400
|
||||
Subject: [PATCH] Move to at least 3.3 to support
|
||||
https://www.cmake.org/cmake/help/latest/policy/CMP0063.html
|
||||
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 2bc28fc..2d43781 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,7 +1,7 @@
|
||||
########################################################################
|
||||
# Project setup
|
||||
########################################################################
|
||||
-cmake_minimum_required(VERSION 2.8.12)
|
||||
+cmake_minimum_required(VERSION 3.3)
|
||||
project(muparserx CXX)
|
||||
|
||||
########################################################################
|
||||
From c605872591d542e1630e3fcc4b292d8a0702acd2 Mon Sep 17 00:00:00 2001
|
||||
From: Nalini Ganapati <nalini@datma.com>
|
||||
Date: Mon, 18 Dec 2023 11:46:35 -0800
|
||||
Subject: [PATCH] Move to 3.17 as cmake is dropping compatibility for <3.5
|
||||
versions
|
||||
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 2d43781..00156e9 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,7 +1,7 @@
|
||||
########################################################################
|
||||
# Project setup
|
||||
########################################################################
|
||||
-cmake_minimum_required(VERSION 3.3)
|
||||
+cmake_minimum_required(VERSION 3.17)
|
||||
project(muparserx CXX)
|
||||
|
||||
########################################################################
|
||||
28
dev-cpp/muParserX/muParserX-4.0.12-r1.ebuild
Normal file
28
dev-cpp/muParserX/muParserX-4.0.12-r1.ebuild
Normal file
@@ -0,0 +1,28 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Parsing Expressions with Strings, Complex Numbers, Vectors, Matrices and more"
|
||||
HOMEPAGE="https://beltoforion.de/en/muparser/"
|
||||
SRC_URI="https://github.com/beltoforion/muparserx/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}"/muparserx-${PV}
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-cmake-4.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
# TODO: -DUSE_WIDE_STRING?
|
||||
local mycmakeargs=(
|
||||
-DBUILD_EXAMPLES=OFF
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user