git: 8e2176a0948a - main - math/qalculate-qt: Update to 4.2.0

From: Jason E. Hale <jhale_at_FreeBSD.org>
Date: Sat, 28 May 2022 04:10:24 UTC
The branch main has been updated by jhale:

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

commit 8e2176a0948adec09184815a9216103bf0a922ec
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2022-05-28 01:34:40 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2022-05-28 04:10:13 +0000

    math/qalculate-qt: Update to 4.2.0
    
    https://github.com/Qalculate/qalculate-qt/releases/tag/v4.2.0
---
 math/qalculate-qt/Makefile  |  6 +++++-
 math/qalculate-qt/distinfo  | 10 +++++++---
 math/qalculate-qt/pkg-plist |  4 ++--
 3 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/math/qalculate-qt/Makefile b/math/qalculate-qt/Makefile
index 553c9db62091..974e21f04615 100644
--- a/math/qalculate-qt/Makefile
+++ b/math/qalculate-qt/Makefile
@@ -1,8 +1,12 @@
 PORTNAME=	qalculate-qt
-PORTVERSION=	4.1.1
+PORTVERSION=	4.2.0
 CATEGORIES=	math
 MASTER_SITES=	https://github.com/Qalculate/${PORTNAME}/releases/download/v${PORTVERSION}/
 
+PATCH_SITES=	https://github.com/Qalculate/${PORTNAME}/commit/
+PATCHFILES+=	a8bb789828cf21ad0551dd4b1757984b57d8e76b.patch:-p1 #Add missing header
+PATCHFILES+=	fa69618d42b133e5942c4bb86efe2838b61af935.patch:-p1 #Fix version string
+
 MAINTAINER=	jhale@FreeBSD.org
 COMMENT=	Multi-purpose desktop calculator (Qt frontend)
 
diff --git a/math/qalculate-qt/distinfo b/math/qalculate-qt/distinfo
index 30dfa9335ec0..f3525f8027ef 100644
--- a/math/qalculate-qt/distinfo
+++ b/math/qalculate-qt/distinfo
@@ -1,3 +1,7 @@
-TIMESTAMP = 1649076127
-SHA256 (qalculate-qt-4.1.1.tar.gz) = 463e506331e8a49ec5ee355fe74da25d7a5cae945f5228081603be1f6d31f49f
-SIZE (qalculate-qt-4.1.1.tar.gz) = 1262587
+TIMESTAMP = 1653607991
+SHA256 (qalculate-qt-4.2.0.tar.gz) = 1c62e419bb1f4c16aa428f68281bee3c44a12dde865e0a0b22e53b09f79a0a36
+SIZE (qalculate-qt-4.2.0.tar.gz) = 1283316
+SHA256 (a8bb789828cf21ad0551dd4b1757984b57d8e76b.patch) = 4155abaf34b8a35a7ae48f4caa2a22d2a3e712f90d6ef215a4a77005c2fbb481
+SIZE (a8bb789828cf21ad0551dd4b1757984b57d8e76b.patch) = 691
+SHA256 (fa69618d42b133e5942c4bb86efe2838b61af935.patch) = 2adc056c5710feff68f802eddba25d9f8ec73a0bad8aacdaa16e7c619514d7bb
+SIZE (fa69618d42b133e5942c4bb86efe2838b61af935.patch) = 731
diff --git a/math/qalculate-qt/pkg-plist b/math/qalculate-qt/pkg-plist
index 6d5eb97b12b5..ae5331c8e0f1 100644
--- a/math/qalculate-qt/pkg-plist
+++ b/math/qalculate-qt/pkg-plist
@@ -1,5 +1,5 @@
 bin/qalculate-qt
-share/applications/qalculate-qt.desktop
+share/applications/io.github.Qalculate.qalculate-qt.desktop
 share/icons/hicolor/128x128/apps/qalculate-qt.png
 share/icons/hicolor/16x16/apps/qalculate-qt.png
 share/icons/hicolor/22x22/apps/qalculate-qt.png
@@ -7,7 +7,7 @@ share/icons/hicolor/32x32/apps/qalculate-qt.png
 share/icons/hicolor/64x64/apps/qalculate-qt.png
 share/icons/hicolor/scalable/apps/qalculate-qt.svg
 share/man/man1/qalculate-qt.1.gz
-share/metainfo/qalculate-qt.appdata.xml
+share/metainfo/io.github.Qalculate.qalculate-qt.metainfo.xml
 %%NLS%%%%DATADIR%%/translations/qalculate-qt_ca.qm
 %%NLS%%%%DATADIR%%/translations/qalculate-qt_de.qm
 %%NLS%%%%DATADIR%%/translations/qalculate-qt_es.qm