comms/klog: Update to 2.4.1

This commit is contained in:
Michael Reifenberger 2025-05-16 18:51:29 +02:00
parent 7881669b81
commit f0cb9ef404
3 changed files with 17 additions and 19 deletions

View File

@ -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

View File

@ -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

View File

@ -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")