commit:     643ee5d9612eb37bf71c05f0d08da9834acf50fa
Author:     Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
AuthorDate: Sat Mar  5 01:46:01 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Mar  5 23:56:45 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=643ee5d9

sci-libs/vtk: select desired Qt version

If both, Qt5 and Qt6 are installed and found, Qt6 is preferred. The
ebuild, however, does not build against Qt6. To ensure Qt5 is selected
we pass VTK_QT_VERSION to cmake.

Closes: https://bugs.gentoo.org/834595
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
Closes: https://github.com/gentoo/gentoo/pull/24405
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/vtk/vtk-9.1.0.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sci-libs/vtk/vtk-9.1.0.ebuild b/sci-libs/vtk/vtk-9.1.0.ebuild
index ee1a824bac00..7be370c13c6a 100644
--- a/sci-libs/vtk/vtk-9.1.0.ebuild
+++ b/sci-libs/vtk/vtk-9.1.0.ebuild
@@ -457,7 +457,10 @@ src_configure() {
        fi
 
        if use qt5; then
-               mycmakeargs+=( -DVTK_MODULE_ENABLE_VTK_GUISupportQt="WANT" )
+               mycmakeargs+=(
+                       -DVTK_MODULE_ENABLE_VTK_GUISupportQt="WANT"
+                       -DVTK_QT_VERSION="5"
+               )
                if use mysql || use postgres; then
                        mycmakeargs+=( 
-DVTK_MODULE_ENABLE_VTK_GUISupportQtSQL="WANT" )
                fi

Reply via email to