git: 8e6e8b340720 - 2021Q3 - x11/mako: unbreak icon search

Jan Beich jbeich at FreeBSD.org
Thu Sep 2 06:54:43 UTC 2021


The branch 2021Q3 has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8e6e8b34072064e953d9da2c6898d2893d1a5f2a

commit 8e6e8b34072064e953d9da2c6898d2893d1a5f2a
Author:     Jan Beich <jbeich at FreeBSD.org>
AuthorDate: 2021-09-02 06:45:29 +0000
Commit:     Jan Beich <jbeich at FreeBSD.org>
CommitDate: 2021-09-02 06:54:01 +0000

    x11/mako: unbreak icon search
    
    Example:
    $ notify-send --icon=mpv song.mp3
    
    (cherry picked from commit 9ea1c4642797c6c798ca562e614d4c383dd5869b)
---
 x11/mako/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/x11/mako/Makefile b/x11/mako/Makefile
index 735ed6d8a0f0..ecf6e6d273ec 100644
--- a/x11/mako/Makefile
+++ b/x11/mako/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	mako
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.6
+PORTREVISION=	1
 CATEGORIES=	x11
 
 MAINTAINER=	jbeich at FreeBSD.org
@@ -36,4 +37,10 @@ MANPAGES_PLIST_FILES=	man/man1/${PORTNAME}.1.gz \
 PIXBUF_USE=		GNOME=gdkpixbuf2
 PIXBUF_MESON_ENABLED=	icons
 
+post-patch:
+# Respect PREFIX for icons
+	@${REINPLACE_CMD} 's,/usr/share,${DATADIR:H},g' \
+		${WRKSRC}/icon.c \
+		${WRKSRC}/${PORTNAME}.5.scd
+
 .include <bsd.port.mk>


More information about the dev-commits-ports-branches mailing list