git: 06f5b3e27670 - main - x11/waybar: respect PREFIX for icons after 5b52ba0c0247

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Thu, 27 Oct 2022 14:42:36 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=06f5b3e2767022b00e8c2947200ad5f31f1a7983

commit 06f5b3e2767022b00e8c2947200ad5f31f1a7983
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-10-27 14:39:45 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-10-27 14:42:17 +0000

    x11/waybar: respect PREFIX for icons after 5b52ba0c0247
---
 x11/waybar/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/x11/waybar/Makefile b/x11/waybar/Makefile
index 0adff1c17610..3974de5e89b7 100644
--- a/x11/waybar/Makefile
+++ b/x11/waybar/Makefile
@@ -131,6 +131,9 @@ post-patch:
 		${WRKSRC}/src/modules/gamemode.cpp \
 		${WRKSRC}/src/modules/inhibitor.cpp \
 		${WRKSRC}/src/modules/upower/upower.cpp
+# Respect PREFIX for icons
+	@${REINPLACE_CMD} 's,/usr/share,${DATADIR:H},' \
+		${WRKSRC}/src/modules/wlr/taskbar.cpp
 
 pre-test:
 	@if [ ! -e ${WRKDIR}/.meson_build_tests ]; then \