git: 4c8f33b97ae2 - main - devel/zls: Reintroduce and fix the localbase etc path patching in known-folders

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Wed, 31 Dec 2025 17:14:28 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4c8f33b97ae27d5d0127cebf4ce3d7417262455d

commit 4c8f33b97ae27d5d0127cebf4ce3d7417262455d
Author:     Kenneth Raplee <kenrap@kennethraplee.com>
AuthorDate: 2025-12-28 23:19:10 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-12-31 17:14:20 +0000

    devel/zls: Reintroduce and fix the localbase etc path patching in known-folders
    
    Pull Request:   https://github.com/freebsd/freebsd-ports/pull/470
    Co-authored-by: Gleb Popov <arrowd@FreeBSD.org>
---
 devel/zls/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/devel/zls/Makefile b/devel/zls/Makefile
index 834a1e7ec903..ea97fb703c75 100644
--- a/devel/zls/Makefile
+++ b/devel/zls/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	zls
 DISTVERSION=	0.15.1
+PORTREVISION=	1
 CATEGORIES=	devel
 
 MAINTAINER=	kenrap@kennethraplee.com
@@ -23,4 +24,8 @@ ZIG_TUPLE=	diffz:github.com/ziglibs/diffz/archive/a20dd1f11b10819a6f570f98b42e1c
 
 PLIST_FILES=	bin/${PORTNAME}
 
+post-patch:
+# Respect PREFIX for global_configuration
+	${REINPLACE_CMD} -e 's,/etc,${PREFIX}&,' ${WRKSRC_known_folders}/known-folders.zig
+
 .include <bsd.port.mk>