git: 1025d508f269 - main - x11/disman: Prepare for Qt 6.10

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=1025d508f269403335f4e0ad0ed0be94d9abbbcd

commit 1025d508f269403335f4e0ad0ed0be94d9abbbcd
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2025-12-05 00:38:14 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2025-12-05 01:03:44 +0000

    x11/disman: Prepare for Qt 6.10
    
    Add patch to fix configure with Qt 6.10. Private targets must now
    be explicitly found with their CMake config.
---
 x11/disman/files/patch-CMakeLists.txt | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/x11/disman/files/patch-CMakeLists.txt b/x11/disman/files/patch-CMakeLists.txt
index c434ac2f1311..3b79a37616ad 100644
--- a/x11/disman/files/patch-CMakeLists.txt
+++ b/x11/disman/files/patch-CMakeLists.txt
@@ -1,11 +1,14 @@
 Drop unused dependencies (kf6-kwayland isn't packaged, anyway)
 
---- CMakeLists.txt.orig	2024-02-27 13:20:11 UTC
+Private targets are no longer implied starting with Qt 6.10.0.
+
+--- CMakeLists.txt.orig	2024-10-09 17:59:04 UTC
 +++ CMakeLists.txt
-@@ -35,19 +35,6 @@ find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED
+@@ -34,19 +34,12 @@ find_package(Qt6 ${QT_MIN_VERSION} CONFIG REQUIRED
+     Gui
      Test
  )
- 
+-
 -find_package(KF6 ${KF6_MIN_VERSION} COMPONENTS
 -  CoreAddons
 -  Wayland
@@ -18,7 +21,12 @@ Drop unused dependencies (kf6-kwayland isn't packaged, anyway)
 -  TYPE OPTIONAL
 -  PURPOSE "Required for KWin/KWayland backend"
 -)
--
++if(Qt6_VERSION VERSION_GREATER_EQUAL 6.10.0)
++  find_package(Qt6 6.10.0 CONFIG REQUIRED
++    COMPONENTS
++      GuiPrivate
++  )
++endif()
+ 
  find_package(Wrapland ${PROJECT_VERSION} CONFIG)
  set_package_properties(Wrapland PROPERTIES
-   TYPE OPTIONAL