git: 22d291bffead - main - x11/mlterm: Install mlterm.desktop

From: MANTANI Nobutaka <nobutaka_at_FreeBSD.org>
Date: Tue, 24 Jan 2023 14:26:51 UTC
The branch main has been updated by nobutaka:

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

commit 22d291bffeadf36da534664df1535074dca87c7e
Author:     MANTANI Nobutaka <nobutaka@FreeBSD.org>
AuthorDate: 2023-01-24 14:21:22 +0000
Commit:     MANTANI Nobutaka <nobutaka@FreeBSD.org>
CommitDate: 2023-01-24 14:25:44 +0000

    x11/mlterm: Install mlterm.desktop
    
    PR:             269108
---
 x11/mlterm/Makefile             |  5 ++++-
 x11/mlterm/files/mlterm.desktop | 18 ++++++++++++++++++
 x11/mlterm/pkg-plist            |  1 +
 3 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/x11/mlterm/Makefile b/x11/mlterm/Makefile
index e1e10cc53f67..f6c4fbe0bd15 100644
--- a/x11/mlterm/Makefile
+++ b/x11/mlterm/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	mlterm
 PORTVERSION=	3.9.2
+PORTREVISION=	1
 CATEGORIES=	x11
 
 MAINTAINER=	nobutaka@FreeBSD.org
@@ -12,7 +13,7 @@ LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
 		libfreetype.so:print/freetype2 \
 		libharfbuzz.so:print/harfbuzz
 
-USES=		cpe gettext gnome libtool perl5 pkgconfig xorg
+USES=		cpe desktop-file-utils gettext gnome libtool perl5 pkgconfig xorg
 USE_GITHUB=	yes
 USE_GNOME=	cairo gdkpixbuf2 gtk20 vte
 USE_LDCONFIG=	yes
@@ -87,5 +88,7 @@ post-install:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/doc/ja/README.ja ${STAGEDIR}${DOCSDIR}
+	${MKDIR} ${STAGEDIR}${DESKTOPDIR}
+	${INSTALL_DATA} ${FILESDIR}/mlterm.desktop ${STAGEDIR}${DESKTOPDIR}
 
 .include <bsd.port.mk>
diff --git a/x11/mlterm/files/mlterm.desktop b/x11/mlterm/files/mlterm.desktop
new file mode 100644
index 000000000000..eaa972adb84f
--- /dev/null
+++ b/x11/mlterm/files/mlterm.desktop
@@ -0,0 +1,18 @@
+[Desktop Entry]
+Type=Application
+Version=1.0
+Name=mlterm
+Name[en]=mlterm
+Name[ja]=mlterm
+GenericName=Terminal
+GenericName[en]=Terminal
+GenericName[ja]=端末
+Comment=Multi-lingual Terminal Emulater
+Comment[en]=Multi-lingual Terminal Emulater
+Comment[ja]=多言語対応端末
+Categories=System;TerminalEmulator;
+Keywords=console;command line;execute;
+Keywords[en]=console;command line;execute;
+Keywords[ja]=コンソール;コマンドライン;実行;
+Exec=mlterm
+Icon=terminal
diff --git a/x11/mlterm/pkg-plist b/x11/mlterm/pkg-plist
index 29be6db3cde5..e28de9d648e9 100644
--- a/x11/mlterm/pkg-plist
+++ b/x11/mlterm/pkg-plist
@@ -109,6 +109,7 @@ man/man1/mlclient.1.gz
 man/man1/mlterm.1.gz
 %%PORTDOCS%%%%DOCSDIR%%/README
 %%PORTDOCS%%%%DOCSDIR%%/README.ja
+share/applications/mlterm.desktop
 share/locale/ar/LC_MESSAGES/mlconfig.mo
 share/locale/de/LC_MESSAGES/mlconfig.mo
 share/locale/ja/LC_MESSAGES/mlconfig.mo