git: f0cb9ef404dc - main - comms/klog: Update to 2.4.1

From: Michael Reifenberger <mr_at_FreeBSD.org>
Date: Fri, 16 May 2025 16:57:19 UTC
The branch main has been updated by mr:

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

commit f0cb9ef404dc16456a0ff116a687c29013d97823
Author:     Michael Reifenberger <mr@FreeBSD.org>
AuthorDate: 2025-05-16 16:51:29 +0000
Commit:     Michael Reifenberger <mr@FreeBSD.org>
CommitDate: 2025-05-16 16:51:29 +0000

    comms/klog: Update to 2.4.1
---
 comms/klog/Makefile                 | 10 +++++-----
 comms/klog/distinfo                 |  6 +++---
 comms/klog/files/patch-src_main.cpp | 20 +++++++++-----------
 3 files changed, 17 insertions(+), 19 deletions(-)

diff --git a/comms/klog/Makefile b/comms/klog/Makefile
index 885bded8875b..cb83dad41e0c 100644
--- a/comms/klog/Makefile
+++ b/comms/klog/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	klog
-PORTVERSION=	2.3.4
+PORTVERSION=	2.4.1
 #PORTREVISION=	1
 CATEGORIES=	comms hamradio
 
@@ -11,12 +11,10 @@ LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 LIB_DEPENDS=	libhamlib.so:comms/hamlib
-USES=		compiler:c++11-lang gl qmake qt:5 xorg
+USES=		compiler:c++11-lang gl qmake qt:6 xorg
 USE_GITHUB=	yes
 USE_GL=		gl
-USE_QT=		buildtools:build charts core declarative gui \
-		linguisttools:build location multimedia network \
-		printsupport sql sql-sqlite3:run serialport testlib:build widgets
+USE_QT=		base declarative charts location positioning serialport sqldriver-sqlite tools
 GH_ACCOUNT=	ea4k
 GH_PROJECT=	klog
 
@@ -36,7 +34,9 @@ PLIST_FILES=	bin/klog \
 		${DATADIR}/translations/klog_it.qm \
 		${DATADIR}/translations/klog_lv.qm \
 		${DATADIR}/translations/klog_ja.qm \
+		${DATADIR}/translations/klog_nl.qm \
 		${DATADIR}/translations/klog_pl.qm \
+		${DATADIR}/translations/klog_ru.qm \
 		${DATADIR}/translations/klog_uk.qm \
 		share/man/man1/klog.1.gz
 
diff --git a/comms/klog/distinfo b/comms/klog/distinfo
index dd6699d91e72..3a0f75e1a722 100644
--- a/comms/klog/distinfo
+++ b/comms/klog/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1709550325
-SHA256 (ea4k-klog-2.3.4_GH0.tar.gz) = c7ccbdcd2c11314c4ddda911a65be6f7430fbf58145d62e0604cefe7644f63f2
-SIZE (ea4k-klog-2.3.4_GH0.tar.gz) = 4837249
+TIMESTAMP = 1747383065
+SHA256 (ea4k-klog-2.4.1_GH0.tar.gz) = 9f0fcd984d8c640f6c55c7b3036ba2e310e4371ca5d21ee42997505b69c2410c
+SIZE (ea4k-klog-2.4.1_GH0.tar.gz) = 4916023
diff --git a/comms/klog/files/patch-src_main.cpp b/comms/klog/files/patch-src_main.cpp
index 88e0f3adcefa..a39c8ffe6d2c 100644
--- a/comms/klog/files/patch-src_main.cpp
+++ b/comms/klog/files/patch-src_main.cpp
@@ -1,13 +1,11 @@
---- src/main.cpp.orig	2023-12-26 00:00:15 UTC
+--- src/main.cpp.orig	2025-05-16 09:03:24 UTC
 +++ src/main.cpp
-@@ -151,6 +151,10 @@ int main(int argc, char *argv[])
-             myappTranslator.load(QCoreApplication::applicationDirPath() + "/translations/klog_" + (QLocale::system().name())); /* Flawfinder: ignore */
-         }
- 
-+        else if (((QLocale::system().name()).left(1)) == "C") /* Flawfinder: ignore */
-+        { // If language is C, it will execute without showing message
-+
-+        }
-         else if (((QLocale::system().name()).left(2)) == "en") /* Flawfinder: ignore */
-         { // If language is English, it will execute without showing message
+@@ -96,7 +96,7 @@ void loadTranslations(QApplication &app, QTranslator &
+         missingTranslation = false;
+     }
  
+-    if (missingTranslation && language != "en")
++    if (missingTranslation && language != "en" && language != "C"  )
+     {
+         QMessageBox::warning(nullptr, "KLog",
+                              QString("No translation files for your language were found. KLog will be shown in English.\n")