git: 7193a240c040 - main - devel/zeal: Prepare for Qt 6.10

From: Jason E. Hale <jhale_at_FreeBSD.org>
Date: Fri, 05 Dec 2025 01:04:21 UTC
The branch main has been updated by jhale:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7193a240c04041ae074fb5fa27e88267718469a0

commit 7193a240c04041ae074fb5fa27e88267718469a0
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2025-12-04 22:49:58 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2025-12-05 01:03:37 +0000

    devel/zeal: Prepare for Qt 6.10
    
    Add backport of upstream patch to fix build with Qt 6.10.
    
    Assume maintainership.
---
 devel/zeal/Makefile               |  2 +-
 devel/zeal/files/patch-qt6.10-fix | 38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 39 insertions(+), 1 deletion(-)

diff --git a/devel/zeal/Makefile b/devel/zeal/Makefile
index 90cfdb56bd67..5826c2799121 100644
--- a/devel/zeal/Makefile
+++ b/devel/zeal/Makefile
@@ -3,7 +3,7 @@ DISTVERSIONPREFIX=	v
 DISTVERSION=	0.7.2
 CATEGORIES=	devel
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	jhale@FreeBSD.org
 COMMENT=	Offline documentation browser
 WWW=		https://zealdocs.org
 
diff --git a/devel/zeal/files/patch-qt6.10-fix b/devel/zeal/files/patch-qt6.10-fix
new file mode 100644
index 000000000000..11a7bc3575e2
--- /dev/null
+++ b/devel/zeal/files/patch-qt6.10-fix
@@ -0,0 +1,38 @@
+Backport of upstream commit [1] to fix build with Qt 6.10.
+
+[1] https://github.com/zealdocs/zeal/commit/11f6a85bb5f314ba8e1dbdc7654ef2647b75161e
+
+--- src/libs/ui/docsetsdialog.cpp.orig	2024-09-08 15:33:39 UTC
++++ src/libs/ui/docsetsdialog.cpp
+@@ -360,7 +360,8 @@ void DocsetsDialog::downloadCompleted()
+         QTemporaryFile *tmpFile = m_tmpFiles[docsetName];
+         if (!tmpFile) {
+             tmpFile = new QTemporaryFile(QStringLiteral("%1/%2.XXXXXX.tmp").arg(Core::Application::cacheLocation(), docsetName), this);
+-            tmpFile->open();
++            if (!tmpFile->open())
++                return;
+             m_tmpFiles.insert(docsetName, tmpFile);
+         }
+ 
+@@ -403,7 +404,8 @@ void DocsetsDialog::downloadProgress(qint64 received, 
+         QTemporaryFile *tmpFile = m_tmpFiles[docsetName];
+         if (!tmpFile) {
+             tmpFile = new QTemporaryFile(QStringLiteral("%1/%2.XXXXXX.tmp").arg(Core::Application::cacheLocation(), docsetName), this);
+-            tmpFile->open();
++            if (!tmpFile->open())
++                return;
+             m_tmpFiles.insert(docsetName, tmpFile);
+         }
+ 
+--- src/libs/ui/qxtglobalshortcut/CMakeLists.txt.orig	2024-09-08 15:33:39 UTC
++++ src/libs/ui/qxtglobalshortcut/CMakeLists.txt
+@@ -42,6 +42,9 @@ elseif(UNIX AND X11_FOUND)
+         find_package(Qt5 COMPONENTS X11Extras REQUIRED)
+         target_link_libraries(QxtGlobalShortcut Qt5::X11Extras)
+     else()
++        if(Qt6Core_VERSION VERSION_GREATER_EQUAL 6.10)
++            find_package(Qt6 COMPONENTS GuiPrivate REQUIRED)
++        endif()
+         target_link_libraries(QxtGlobalShortcut Qt${QT_VERSION_MAJOR}::GuiPrivate)
+     endif()
+