gentoo-ebuilds/sci-mathematics/mathmod/mathmod-13.0-r1.ebuild
Nicolas PARLANT 8a76450ae9
sci-mathematics/mathmod: fix gcc-16/gnu++20
lerp is declared globally with c++20 which is by default with gcc-16 and
allowed by qt-6.10

Closes: https://bugs.gentoo.org/967323
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/44999
Closes: https://github.com/gentoo/gentoo/pull/44999
Signed-off-by: Sam James <sam@gentoo.org>
2025-12-15 16:23:17 +00:00

43 lines
1,014 B
Bash

# 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=(
# both merged
"${FILESDIR}"/${PN}-13.0-missing_include.patch
"${FILESDIR}"/${PN}-13.0-fix_cxx20.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
}