aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2023-04-07 07:29:12 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2023-04-07 07:29:12 +0000
commit3134a82bb460522e758004581548f571a5390452 (patch)
tree789398e608da9ce1d13fec6a7b41ad0f798747a2
parent018274cbc53802b98950eb504337f1987fba5905 (diff)
downloadports-3134a82bb460522e758004581548f571a5390452.tar.gz
ports-3134a82bb460522e758004581548f571a5390452.zip
x11-wm/xdgmenumaker: XDG menu generator for various WMs (new port).
-rw-r--r--x11-wm/Makefile1
-rw-r--r--x11-wm/xdgmenumaker/Makefile22
-rw-r--r--x11-wm/xdgmenumaker/distinfo3
-rw-r--r--x11-wm/xdgmenumaker/pkg-descr7
-rw-r--r--x11-wm/xdgmenumaker/pkg-plist14
5 files changed, 47 insertions, 0 deletions
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