git: 0372ca28f2a2 - main - devel/zls: respect PREFIX for zls config (system-wide)
Jan Beich
jbeich at FreeBSD.org
Sun Aug 1 01:35:14 UTC 2021
The branch main has been updated by jbeich:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0372ca28f2a2eccfe334c8ef49a9cf20a884566b
commit 0372ca28f2a2eccfe334c8ef49a9cf20a884566b
Author: Jan Beich <jbeich at FreeBSD.org>
AuthorDate: 2021-08-01 01:30:30 +0000
Commit: Jan Beich <jbeich at FreeBSD.org>
CommitDate: 2021-08-01 01:34:48 +0000
devel/zls: respect PREFIX for zls config (system-wide)
/etc/zls.json -> /usr/local/etc/zls.json
---
devel/zls/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/devel/zls/Makefile b/devel/zls/Makefile
index 31c3966c58ce..517ab42773e6 100644
--- a/devel/zls/Makefile
+++ b/devel/zls/Makefile
@@ -1,6 +1,7 @@
PORTNAME= zls
DISTVERSION= 0.1.0-226
DISTVERSIONSUFFIX= -g39d8718
+PORTREVISION= 1
CATEGORIES= devel
MAINTAINER= jbeich at FreeBSD.org
@@ -24,6 +25,11 @@ NO_INSTALL= yes # strip(1) breaks runtime
PLIST_FILES= bin/${PORTNAME} \
bin/build_runner.zig
+post-patch:
+# Respect PREFIX for global_configuration
+ @${REINPLACE_CMD} -e 's,/etc,${PREFIX}&,' \
+ ${WRKSRC_known_folders}/known-folders.zig
+
do-build:
@(cd ${WRKSRC} && ${MAKE_ENV} zig build ${CONFIGURE_ARGS})
More information about the dev-commits-ports-all
mailing list