git: 88d34f0f06aa - main - devel/cutelee: don't look for Qt5 at all

From: Adriaan de Groot <adridg_at_FreeBSD.org>
Date: Tue, 01 Jul 2025 12:00:22 UTC
The branch main has been updated by adridg:

URL: https://cgit.FreeBSD.org/ports/commit/?id=88d34f0f06aa7b9d9d39a1795043dfcbe2ca4ce6

commit 88d34f0f06aa7b9d9d39a1795043dfcbe2ca4ce6
Author:     Adriaan de Groot <adridg@FreeBSD.org>
AuthorDate: 2025-07-01 11:41:15 +0000
Commit:     Adriaan de Groot <adridg@FreeBSD.org>
CommitDate: 2025-07-01 11:59:49 +0000

    devel/cutelee: don't look for Qt5 at all
    
    If Qt5 is installed on the system (at all, so it finds Qt5Core)
    then this assumes that Qt5 qmake is also installed; this can trigger
    build failures. Since we don't want to build for Qt5 anyway, just
    switch that machinery off.
---
 devel/cutelee/Makefile                   |  1 +
 devel/cutelee/files/patch-CMakeLists.txt | 13 +++++++++++++
 2 files changed, 14 insertions(+)

diff --git a/devel/cutelee/Makefile b/devel/cutelee/Makefile
index 28d422e6c5e5..2676d15a1b10 100644
--- a/devel/cutelee/Makefile
+++ b/devel/cutelee/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	cutelee
 DISTVERSIONPREFIX=	v
 DISTVERSION=	6.1.0
+PORTREVISION=	1
 CATEGORIES=	devel
 
 MAINTAINER=	adridg@FreeBSD.org
diff --git a/devel/cutelee/files/patch-CMakeLists.txt b/devel/cutelee/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..184f9de2ebef
--- /dev/null
+++ b/devel/cutelee/files/patch-CMakeLists.txt
@@ -0,0 +1,13 @@
+--- CMakeLists.txt.orig	2022-11-14 15:03:45 UTC
++++ CMakeLists.txt
+@@ -13,8 +13,8 @@ include(GNUInstallDirs)
+ 
+ include(GNUInstallDirs)
+ 
+-find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)
+-find_package(Qt${QT_VERSION_MAJOR} 5.6.0 COMPONENTS Core REQUIRED)
++find_package(QT NAMES Qt6 COMPONENTS Core REQUIRED)
++find_package(Qt${QT_VERSION_MAJOR} 6.0 COMPONENTS Core REQUIRED)
+ 
+ option(BUILD_SHARED_LIBS "Build in shared lib mode" ON)
+ option( BUILD_TEMPLATES "Build the Cutelee template library" TRUE )