commit:     76e12e0335d05b8ff689b0addd0b3d527cd7fccc
Author:     Nicolas PARLANT <nicolas.parlant <AT> parhuet <DOT> fr>
AuthorDate: Thu Nov 13 17:33:24 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Nov 15 05:03:50 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76e12e03

sci-libs/jkqtplotter: avoid Qt5 building

Qt checking prevents the correct use of QT_VERSION_MAJOR however defined.
If installed, jkqtplotter compiles with the unwanted Qt5.

Closes: https://bugs.gentoo.org/966047
Signed-off-by: Nicolas PARLANT <nicolas.parlant <AT> parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/44619
Closes: https://github.com/gentoo/gentoo/pull/44619
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...pre20251013.ebuild => jkqtplotter-5.0.0_pre20251013-r1.ebuild} | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sci-libs/jkqtplotter/jkqtplotter-5.0.0_pre20251013.ebuild 
b/sci-libs/jkqtplotter/jkqtplotter-5.0.0_pre20251013-r1.ebuild
similarity index 91%
rename from sci-libs/jkqtplotter/jkqtplotter-5.0.0_pre20251013.ebuild
rename to sci-libs/jkqtplotter/jkqtplotter-5.0.0_pre20251013-r1.ebuild
index 96986680804a..d4b9e83979cc 100644
--- a/sci-libs/jkqtplotter/jkqtplotter-5.0.0_pre20251013.ebuild
+++ b/sci-libs/jkqtplotter/jkqtplotter-5.0.0_pre20251013-r1.ebuild
@@ -39,6 +39,14 @@ BDEPEND="
        )
 "
 
+src_prepare() {
+       # avoid Qt5 automagic, https://bugs.gentoo.org/966047
+       sed -e "/^ *find_package.*QT NAMES/s/Qt5 //" \
+               -i cmake/jkqtplotter_common_qtsettings.cmake || die
+
+       cmake_src_prepare
+}
+
 src_configure() {
        local mycmakeargs=(
                -DCMAKE_SKIP_RPATH=ON

Reply via email to