diff --git a/comms/klog/Makefile b/comms/klog/Makefile index ab47cc76ca9c..7aea97446e06 100644 --- a/comms/klog/Makefile +++ b/comms/klog/Makefile @@ -1,52 +1,54 @@ PORTNAME= klog -PORTVERSION= 2.3.2 +PORTVERSION= 2.3.3 CATEGORIES= comms hamradio MAINTAINER= hamradio@FreeBSD.org COMMENT= Simple Qt-based amateur radio logger WWW= https://github.com/ea4k/klog/wiki LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libhamlib.so:comms/hamlib USES= compiler:c++11-lang gl qmake qt:5 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 GH_ACCOUNT= ea4k GH_PROJECT= klog DESKTOP_ENTRIES= "KLog" "Simple Amateur Radio Logging Program" \ "" "klog" "Network;HamRadio;" \ true PLIST_FILES= bin/klog \ ${DATADIR}/translations/klog_ca.qm \ ${DATADIR}/translations/klog_cs.qm \ ${DATADIR}/translations/klog_da.qm \ ${DATADIR}/translations/klog_de.qm \ ${DATADIR}/translations/klog_es.qm \ ${DATADIR}/translations/klog_fi.qm \ ${DATADIR}/translations/klog_fr.qm \ ${DATADIR}/translations/klog_hr.qm \ ${DATADIR}/translations/klog_it.qm \ + ${DATADIR}/translations/klog_lv.qm \ ${DATADIR}/translations/klog_ja.qm \ ${DATADIR}/translations/klog_pl.qm \ + ${DATADIR}/translations/klog_uk.qm \ man/man1/klog.1.gz post-patch: @${REINPLACE_CMD} \ 's|"\/usr\/share\/klog\/translations\/klog_"|"${DATADIR}/translations/klog_"|' \ ${WRKSRC}/src/main.cpp do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/build/target/klog ${STAGEDIR}${PREFIX}/bin ${MKDIR} ${STAGEDIR}${DATADIR}/translations ${INSTALL_DATA} ${WRKSRC}/src/build/target/translations/klog_*.qm \ ${STAGEDIR}${DATADIR}/translations ${INSTALL_MAN} ${WRKSRC}/src/klog.1 ${STAGEDIR}${MANPREFIX}/man/man1 .include diff --git a/comms/klog/distinfo b/comms/klog/distinfo index 6ef158708ecb..d5289d2c1ac6 100644 --- a/comms/klog/distinfo +++ b/comms/klog/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1702745062 -SHA256 (ea4k-klog-2.3.2_GH0.tar.gz) = 1aef1d7871074f17ec39e7b7990e35be678fb573240fded2834f837354c2a347 -SIZE (ea4k-klog-2.3.2_GH0.tar.gz) = 4768856 +TIMESTAMP = 1703965454 +SHA256 (ea4k-klog-2.3.3_GH0.tar.gz) = 59e30fdee4bcd0ffa732ddddfec34c47ad34d66da2a033534b0805175be2031d +SIZE (ea4k-klog-2.3.3_GH0.tar.gz) = 4776834 diff --git a/comms/klog/files/patch-src_main.cpp b/comms/klog/files/patch-src_main.cpp new file mode 100644 index 000000000000..88e0f3adcefa --- /dev/null +++ b/comms/klog/files/patch-src_main.cpp @@ -0,0 +1,13 @@ +--- src/main.cpp.orig 2023-12-26 00:00:15 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 +