mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-mathematics/mathmod: add 12.0, qt6
qt6 license GPL2+ only : https://github.com/parisolab/mathmod/wiki/documentation#copyright Closes: https://bugs.gentoo.org/951137 Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr> Closes: https://github.com/gentoo/gentoo/pull/41433 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
committed by
Andreas Sturmlechner
parent
b00217e942
commit
c08c1c99b5
@@ -1 +1,2 @@
|
||||
DIST mathmod-11.1.tar.gz 7934535 BLAKE2B ccb5ba1ee74b0e6f2d605bf76f107ce43f695f2dc81fe0ef8498fdb29978f3da214178ed433eea9536f3ee801c24887988e0c1064833a6a1069e0349fb209a05 SHA512 50485094a5c0f08077a27215d4189ba28085ad9d6cc3323043955d63723271adf80ba2c8a75afd0b50ea7443a55f5d4efd8f8d5eae32a9c0718450784ff728ab
|
||||
DIST mathmod-12.0.tar.gz 9392067 BLAKE2B 2144c4aa06c3c13bdb5dca333134195d92bea5dcf0478e80f2ca25b41e4c74344725cced3bc72fc4b4f571da5b3ec734b0ea05fc7b1f80566f8b83d229e5627f SHA512 d8a247a14e03c4d6fb4812b4404338162d7ff79745ebe31c467a444fdb48441b950a9d39c7b31fedb3f2bb1961d3075e44eb264b863708bd48f949b8185d60c6
|
||||
|
||||
21
sci-mathematics/mathmod/files/mathmod-12.0-rm_complex.patch
Normal file
21
sci-mathematics/mathmod/files/mathmod-12.0-rm_complex.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
From 61b94a59728fd691fb363ccc4e5f5bbb35e2b3c2 Mon Sep 17 00:00:00 2001
|
||||
From: Abderrahman Taha <taha_ab@yahoo.fr>
|
||||
Date: Wed, 2 Apr 2025 01:04:49 -0400
|
||||
Subject: [PATCH] #269 Collision between <complex.h> and QT
|
||||
|
||||
---
|
||||
pariso/commun.h | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/pariso/commun.h b/pariso/commun.h
|
||||
index 2d647f3..0827cb8 100644
|
||||
--- a/pariso/commun.h
|
||||
+++ b/pariso/commun.h
|
||||
@@ -22,7 +22,6 @@
|
||||
|
||||
#include "../fparser/fparser.hh"
|
||||
#include <qthread.h>
|
||||
-#include <complex.h>
|
||||
#include <tgmath.h>
|
||||
|
||||
#define PI (double(314159265) / double(100000000))
|
||||
42
sci-mathematics/mathmod/mathmod-12.0.ebuild
Normal file
42
sci-mathematics/mathmod/mathmod-12.0.ebuild
Normal file
@@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop qmake-utils xdg
|
||||
|
||||
DESCRIPTION="Plot parametric and implicit surfaces"
|
||||
HOMEPAGE="https://github.com/parisolab/mathmod
|
||||
https://sourceforge.net/projects/mathmod/
|
||||
https://www.facebook.com/parisolab"
|
||||
SRC_URI="https://github.com/parisolab/mathmod/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
dev-qt/qtbase:6[gui,opengl,widgets]
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
# Fix collision between <complex.h> and QT
|
||||
# Merged, to be removed with release 12.1
|
||||
"${FILESDIR}"/${P}-rm_complex.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
eqmake6 MathMod.pro
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin MathMod
|
||||
insinto /usr/share/${P}
|
||||
doins mathmodconfig.js mathmodcollection.js advancedmodels.js
|
||||
local size
|
||||
for size in 16 32 64; do
|
||||
newicon -s ${size} images/icon/catenoid_mini_${size}x${size}.png catenoid.png
|
||||
done
|
||||
make_desktop_entry MathMod MathMod catenoid
|
||||
}
|
||||
Reference in New Issue
Block a user