git: 70bc012d67ca - main - deskutils/copyq: Prepare for Qt 6.10

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=70bc012d67cabac8b709be75e7485ee9385fab98

commit 70bc012d67cabac8b709be75e7485ee9385fab98
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2025-12-01 07:59:43 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2025-12-05 01:03:36 +0000

    deskutils/copyq: Prepare for Qt 6.10
    
    This fixes the Qt::GuiPrivate target not being found in the configure
    stage.
    
    With hat:       kde@
---
 .../copyq/files/patch-src_platform_x11_x11platform.cmake  | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/deskutils/copyq/files/patch-src_platform_x11_x11platform.cmake b/deskutils/copyq/files/patch-src_platform_x11_x11platform.cmake
new file mode 100644
index 000000000000..391c31240ee8
--- /dev/null
+++ b/deskutils/copyq/files/patch-src_platform_x11_x11platform.cmake
@@ -0,0 +1,15 @@
+Fix configure with Qt 6.10.
+
+https://github.com/hluk/CopyQ/pull/3339/
+
+--- src/platform/x11/x11platform.cmake.orig	2025-10-22 07:58:33 UTC
++++ src/platform/x11/x11platform.cmake
+@@ -39,7 +39,7 @@ if (WITH_X11)
+     set(copyq_LIBRARIES ${copyq_LIBRARIES} ${X11_LIBRARIES} ${X11_Xfixes_LIB})
+ 
+     if(WITH_QT6)
+-        if (QT_VERSION VERSION_GREATER_EQUAL "6.10.0")
++        if (Qt6_VERSION VERSION_GREATER_EQUAL "6.10.0")
+             find_package(${copyq_qt} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS GuiPrivate)
+         endif()
+         list(APPEND copyq_LIBRARIES Qt::GuiPrivate)