x11/fuzzel: unbreak zsh completion for --icon-theme

_fuzzel💿38: no such file or directory: /usr/share/icons
This commit is contained in:
Jan Beich 2021-10-09 11:16:35 +00:00
parent d46ef2e7f1
commit 774261e4a6

View File

@ -1,5 +1,6 @@
PORTNAME= fuzzel
DISTVERSION= 1.6.3
PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= https://codeberg.org/dnkl/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
@ -39,7 +40,9 @@ PNG_LIB_DEPENDS= libpng.so:graphics/png
PNG_MESON_ENABLED= enable-png
post-patch:
@${REINPLACE_CMD} 's,/usr/local,${PREFIX},g' \
# Respect PREFIX for icons
@${REINPLACE_CMD} 's,/usr/share,${DATADIR:H},' \
${WRKSRC}/completions/zsh/_${PORTNAME} \
${WRKSRC}/xdg.c
.include <bsd.port.mk>