commit:     960f6c6ab1a4ef031387b70a45f4ccba4c029ff6
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  8 19:46:13 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Dec 10 22:47:11 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=960f6c6a

sci-mathematics/mathmod: Switch make_desktop_entry to --eapi9

Closes: https://bugs.gentoo.org/966115
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 sci-mathematics/mathmod/mathmod-13.0-r1.ebuild | 42 ++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/sci-mathematics/mathmod/mathmod-13.0-r1.ebuild 
b/sci-mathematics/mathmod/mathmod-13.0-r1.ebuild
new file mode 100644
index 000000000000..17d25c5a372c
--- /dev/null
+++ b/sci-mathematics/mathmod/mathmod-13.0-r1.ebuild
@@ -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]
+       media-libs/libglvnd
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+       # https://github.com/parisolab/mathmod/pull/288.patch
+       "${FILESDIR}"/${PN}-13.0-missing_include.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 --eapi9 MathMod -n MathMod -i catenoid
+}

Reply via email to