git: 02148aa2cc6b - 2022Q4 - x11/wl-clipboard: respect LOCALBASE for MIME types
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 12 Oct 2022 16:39:35 UTC
The branch 2022Q4 has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=02148aa2cc6bbe671c0242933c9cd3d9379f1d6c commit 02148aa2cc6bbe671c0242933c9cd3d9379f1d6c Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2022-10-12 16:08:24 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2022-10-12 16:39:22 +0000 x11/wl-clipboard: respect LOCALBASE for MIME types (cherry picked from commit 75618bfd83dd8ce7922ea45b46e22f352689d5db) --- x11/wl-clipboard/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/x11/wl-clipboard/Makefile b/x11/wl-clipboard/Makefile index 3898244ec5ec..becd6cfa12aa 100644 --- a/x11/wl-clipboard/Makefile +++ b/x11/wl-clipboard/Makefile @@ -1,6 +1,7 @@ PORTNAME= wl-clipboard DISTVERSIONPREFIX= v DISTVERSION= 2.1.0 +PORTREVISION= 1 CATEGORIES= x11 wayland MAINTAINER= jbeich@FreeBSD.org @@ -31,5 +32,11 @@ PLIST_FILES= bin/wl-copy \ post-patch: @${REINPLACE_CMD} 's,/usr/share,${DATADIR:H},' \ ${WRKSRC}/completions/fish/meson.build +# Search mime-support (etc/mime.types) and shared-mime-info (share/mime/types) + @${REINPLACE_CMD} -e 's,/usr/share,${LOCALBASE}/share,' \ + -e '/local/!s,/etc,${LOCALBASE}&,' \ + ${WRKSRC}/completions/bash/wl-copy \ + ${WRKSRC}/completions/zsh/_wl-copy \ + ${WRKSRC}/src/util/files.c .include <bsd.port.mk>