git: 2edab7ca8298 - main - math/vtk9: Add workaround for a regression in VTK that requires qmake and moc

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 02 Nov 2022 16:23:01 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2edab7ca82988fc4a066d0c40d50bcd8a472d098

commit 2edab7ca82988fc4a066d0c40d50bcd8a472d098
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-11-02 14:58:49 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-11-02 16:22:57 +0000

    math/vtk9: Add workaround for a regression in VTK that requires qmake and moc
    
    find_package(VTK QUIET COMPONENTS GUISupportQt) erroneously
    requires qmake and moc to be present.
    
    misc/visp regressed for this reason after VTK was updated to 9.2.2
    even though VTK is only a proxy dependency for visp.
    
    Reported by:    fallout
---
 math/vtk9/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/math/vtk9/Makefile b/math/vtk9/Makefile
index f8d6979ac5e9..d43ca1f931ba 100644
--- a/math/vtk9/Makefile
+++ b/math/vtk9/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	vtk
 DISTVERSION=	9.2.2
+PORTREVISION=	1
 CATEGORIES=	math graphics
 MASTER_SITES=	https://vtk.org/files/release/${VTK_SHORT_VER}/
 PKGNAMESUFFIX=	9
@@ -72,7 +73,7 @@ PYTHON_CMAKE_ON=	-DVTK_PYTHON_VERSION=${PYTHON_MAJOR_VER} -DPython3_EXECUTABLE=$
 PYTHON_VARS=		SUB_FILES=PKG-INFO SUB_LIST=PORTVERSION=${PORTVERSION}
 
 QT5_USES=		qt:5
-QT5_USE=		QT=core,declarative,gui,network,opengl,sql,uiplugin,widgets,x11extras,qmake:build,buildtools:build
+QT5_USE=		QT=core,declarative,gui,network,opengl,sql,uiplugin,widgets,x11extras,qmake,buildtools # qmake and buildtools should be with :build, but see https://gitlab.kitware.com/vtk/vtk/-/issues/18705
 QT5_CMAKE_ON=		-DVTK_GROUP_ENABLE_Qt:STRING=YES \
 			-DCMAKE_PREFIX_PATH:STRING=${LOCALBASE}/lib/qt5