aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x11/Makefile1
-rw-r--r--x11/nwg-launchers/Makefile26
-rw-r--r--x11/nwg-launchers/distinfo5
-rw-r--r--x11/nwg-launchers/files/patch-bar_bar.json17
-rw-r--r--x11/nwg-launchers/pkg-descr4
-rw-r--r--x11/nwg-launchers/pkg-plist9
6 files changed, 62 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile
index 2ec650cf63e5..822994112f7e 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -234,6 +234,7 @@
SUBDIR += nvidia-driver-390
SUBDIR += nvidia-settings
SUBDIR += nvidia-xconfig
+ SUBDIR += nwg-launchers
SUBDIR += nxcomp
SUBDIR += p5-Clipboard
SUBDIR += p5-X11-GUITest
diff --git a/x11/nwg-launchers/Makefile b/x11/nwg-launchers/Makefile
new file mode 100644
index 000000000000..a26ce984e0f2
--- /dev/null
+++ b/x11/nwg-launchers/Makefile
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+PORTNAME= nwg-launchers
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.2.0
+CATEGORIES= x11
+
+PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
+PATCHFILES+= 5375b8196bfc.patch:-p1 # https://github.com/nwg-piotr/nwg-launchers/pull/69
+
+MAINTAINER= jbeich@FreeBSD.org
+COMMENT= GTK-based launchers: application grid, button bar, dmenu for sway and other window managers
+
+LICENSE= GPLv3+
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+# XXX Remove cmake dependency after nlohmann-json adds pkg-config support
+BUILD_DEPENDS= cmake:devel/cmake \
+ nlohmann-json>0:devel/nlohmann-json
+
+USES= compiler:c++17-lang gnome meson pkgconfig
+USE_GITHUB= yes
+USE_GNOME= gtkmm30
+GH_ACCOUNT= nwg-piotr
+
+.include <bsd.port.mk>
diff --git a/x11/nwg-launchers/distinfo b/x11/nwg-launchers/distinfo
new file mode 100644
index 000000000000..75992d8e2113
--- /dev/null
+++ b/x11/nwg-launchers/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1594772701
+SHA256 (nwg-piotr-nwg-launchers-v0.2.0_GH0.tar.gz) = e5dd81d812646b1bf000bee4d491e1011f3d3e10ba824779f79e70d6ff5503d8
+SIZE (nwg-piotr-nwg-launchers-v0.2.0_GH0.tar.gz) = 43240
+SHA256 (5375b8196bfc.patch) = d262ad2e76626ff41585d25a927fbb19c3da353594b718a572595006e1455604
+SIZE (5375b8196bfc.patch) = 2289
diff --git a/x11/nwg-launchers/files/patch-bar_bar.json b/x11/nwg-launchers/files/patch-bar_bar.json
new file mode 100644
index 000000000000..443174a2961e
--- /dev/null
+++ b/x11/nwg-launchers/files/patch-bar_bar.json
@@ -0,0 +1,17 @@
+--- bar/bar.json.orig 2020-07-15 00:25:01 UTC
++++ bar/bar.json
+@@ -11,12 +11,12 @@
+ },
+ {
+ "name": "Reboot",
+- "exec": "systemctl reboot",
++ "exec": "shutdown -r now",
+ "icon": "system-reboot"
+ },
+ {
+ "name": "Shutdown",
+- "exec": "systemctl -i poweroff",
++ "exec": "shutdown -p now",
+ "icon": "system-shutdown"
+ }
+ ]
diff --git a/x11/nwg-launchers/pkg-descr b/x11/nwg-launchers/pkg-descr
new file mode 100644
index 000000000000..db3c32b79e0b
--- /dev/null
+++ b/x11/nwg-launchers/pkg-descr
@@ -0,0 +1,4 @@
+nwg-launchers is C++ rewrite of sgtk-menu, an application launcher
+primarily developed for Sway but also works on other window managers.
+
+WWW: https://github.com/nwg-piotr/nwg-launchers
diff --git a/x11/nwg-launchers/pkg-plist b/x11/nwg-launchers/pkg-plist
new file mode 100644
index 000000000000..f60a25629f1e
--- /dev/null
+++ b/x11/nwg-launchers/pkg-plist
@@ -0,0 +1,9 @@
+bin/nwgbar
+bin/nwgdmenu
+bin/nwggrid
+%%DATADIR%%/nwgbar/bar.json
+%%DATADIR%%/nwgbar/icon-missing.svg
+%%DATADIR%%/nwgbar/style.css
+%%DATADIR%%/nwgdmenu/style.css
+%%DATADIR%%/nwggrid/icon-missing.svg
+%%DATADIR%%/nwggrid/style.css