git: 7a7003ccbfb2 - main - devel/xopcodecalc: install .desktop file (missed in previous commit)

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Wed, 17 Nov 2021 10:58:36 UTC
The branch main has been updated by danfe:

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

commit 7a7003ccbfb298a4bd187ffc582767ad2372b96f
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2021-11-17 10:57:22 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2021-11-17 10:57:23 +0000

    devel/xopcodecalc: install .desktop file (missed in previous commit)
    
    Waive the revision bump for the very fresh port.
---
 devel/xopcodecalc/Makefile  | 3 +++
 devel/xopcodecalc/pkg-plist | 1 +
 2 files changed, 4 insertions(+)

diff --git a/devel/xopcodecalc/Makefile b/devel/xopcodecalc/Makefile
index 2a0fa3842298..75dab7dcf9a0 100644
--- a/devel/xopcodecalc/Makefile
+++ b/devel/xopcodecalc/Makefile
@@ -28,6 +28,9 @@ do-install:
 		${STAGEDIR}${PREFIX}/bin
 	cd ${INSTALL_WRKSRC}/DEBIAN && ${COPYTREE_SHARE} hicolor \
 		${STAGEDIR}${PREFIX}/share/icons
+	${SED} -e 's,#VERSION#,${PORTVERSION},' \
+		${WRKSRC}/DEBIAN/xocalc.desktop \
+		> ${STAGEDIR}${DESKTOPDIR}/xocalc.desktop
 
 .include <bsd.port.mk>
 
diff --git a/devel/xopcodecalc/pkg-plist b/devel/xopcodecalc/pkg-plist
index c50098f3da3a..c1c7dc3ed00a 100644
--- a/devel/xopcodecalc/pkg-plist
+++ b/devel/xopcodecalc/pkg-plist
@@ -1,4 +1,5 @@
 bin/xocalc
+share/applications/xocalc.desktop
 share/icons/hicolor/16x16/apps/xocalc.png
 share/icons/hicolor/20x20/apps/xocalc.png
 share/icons/hicolor/24x24/apps/xocalc.png