git: 3134a82bb460 - main - x11-wm/xdgmenumaker: XDG menu generator for various WMs (new port).

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Fri, 07 Apr 2023 07:29:51 UTC
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3134a82bb460522e758004581548f571a5390452

commit 3134a82bb460522e758004581548f571a5390452
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2023-04-07 07:29:12 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2023-04-07 07:29:12 +0000

    x11-wm/xdgmenumaker: XDG menu generator for various WMs (new port).
---
 x11-wm/Makefile               |  1 +
 x11-wm/xdgmenumaker/Makefile  | 22 ++++++++++++++++++++++
 x11-wm/xdgmenumaker/distinfo  |  3 +++
 x11-wm/xdgmenumaker/pkg-descr |  7 +++++++
 x11-wm/xdgmenumaker/pkg-plist | 14 ++++++++++++++
 5 files changed, 47 insertions(+)

diff --git a/x11-wm/Makefile b/x11-wm/Makefile
index 36a85272a33d..737524324cf7 100644
--- a/x11-wm/Makefile
+++ b/x11-wm/Makefile
@@ -122,6 +122,7 @@
     SUBDIR += wmname
     SUBDIR += wmx
     SUBDIR += xcompmgr
+    SUBDIR += xdgmenumaker
     SUBDIR += xfce4
     SUBDIR += xfce4-desktop
     SUBDIR += xfce4-panel
diff --git a/x11-wm/xdgmenumaker/Makefile b/x11-wm/xdgmenumaker/Makefile
new file mode 100644
index 000000000000..c25ea7287ae8
--- /dev/null
+++ b/x11-wm/xdgmenumaker/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	xdgmenumaker
+PORTVERSION=	2.0
+CATEGORIES=	x11-wm python
+
+MAINTAINER=	danfe@FreeBSD.org
+COMMENT=	Generates XDG menus for several window managers
+WWW=		https://github.com/gapan/xdgmenumaker
+
+LICENSE=	GPLv3
+
+BUILD_DEPENDS=	txt2tags:textproc/txt2tags
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}xdg>=0:devel/py-xdg@${PY_FLAVOR}
+
+USES=		gnome python:run shebangfix
+USE_GNOME=	gtk30 pygobject3
+USE_GITHUB=	yes
+GH_ACCOUNT=	gapan
+SHEBANG_FILES=	src/xdgmenumaker
+
+ALL_TARGET=	man
+
+.include <bsd.port.mk>
diff --git a/x11-wm/xdgmenumaker/distinfo b/x11-wm/xdgmenumaker/distinfo
new file mode 100644
index 000000000000..13d13408b874
--- /dev/null
+++ b/x11-wm/xdgmenumaker/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1622935626
+SHA256 (gapan-xdgmenumaker-2.0_GH0.tar.gz) = eda8f25a09131db2186035d660fea8ae13f016c0f4a51f7bb52a39c7deb9e328
+SIZE (gapan-xdgmenumaker-2.0_GH0.tar.gz) = 309405
diff --git a/x11-wm/xdgmenumaker/pkg-descr b/x11-wm/xdgmenumaker/pkg-descr
new file mode 100644
index 000000000000..96355d3a677a
--- /dev/null
+++ b/x11-wm/xdgmenumaker/pkg-descr
@@ -0,0 +1,7 @@
+xdgmenumaker is a command line tool, written in Python, that generates
+application menus using XDG information, by scanning *.desktop files in
+all $XDG_DATA_DIRS/applications directories.  Applications are sorted
+according to the main categories as specified by freedesktop.org.
+
+Menu entries that are generated by xdgmenumaker are localized according
+to the running user's locale settings.
diff --git a/x11-wm/xdgmenumaker/pkg-plist b/x11-wm/xdgmenumaker/pkg-plist
new file mode 100644
index 000000000000..a5483f9cf51c
--- /dev/null
+++ b/x11-wm/xdgmenumaker/pkg-plist
@@ -0,0 +1,14 @@
+bin/xdgmenumaker
+share/desktop-directories/xdgmenumaker-accessories.directory
+share/desktop-directories/xdgmenumaker-applications.directory
+share/desktop-directories/xdgmenumaker-development.directory
+share/desktop-directories/xdgmenumaker-education.directory
+share/desktop-directories/xdgmenumaker-games.directory
+share/desktop-directories/xdgmenumaker-graphics.directory
+share/desktop-directories/xdgmenumaker-multimedia.directory
+share/desktop-directories/xdgmenumaker-network.directory
+share/desktop-directories/xdgmenumaker-office.directory
+share/desktop-directories/xdgmenumaker-other.directory
+share/desktop-directories/xdgmenumaker-settings.directory
+share/desktop-directories/xdgmenumaker-system.directory
+share/man/man1/xdgmenumaker.1.gz