git: 0cd15798f3c6 - 2022Q3 - x11/wezterm: respect LOCALBASE for cursor icons

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sun, 07 Aug 2022 21:06:33 UTC
The branch 2022Q3 has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0cd15798f3c65756e1ecfad1137d732915187cc0

commit 0cd15798f3c65756e1ecfad1137d732915187cc0
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-08-07 20:26:44 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-08-07 21:06:26 +0000

    x11/wezterm: respect LOCALBASE for cursor icons
    
    (cherry picked from commit 056f940666db5c9c992ac14a5f97738647c2e441)
---
 x11/wezterm/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/x11/wezterm/Makefile b/x11/wezterm/Makefile
index 034f2572d9f2..4e90ca038c21 100644
--- a/x11/wezterm/Makefile
+++ b/x11/wezterm/Makefile
@@ -572,6 +572,9 @@ PORTDOCS=		html
 post-patch:
 # Extract (snapshot) version from the port instead of .tag file
 	@${ECHO_CMD} '${DISTVERSIONFULL}' >${WRKSRC}/.tag
+# Respect LOCALBASE for cursors
+	@${REINPLACE_CMD} 's,/usr/share,${LOCALBASE}/share,' \
+		${WRKSRC}/window/src/os/x11/cursor.rs
 
 do-build-DOCS-on:
 # Build HTML documentation similar to ci/build-docs.sh