git: 5b81e27816b2 - main - devel/lua-language-server: Fix runtime by defining metapath

From: Adam Weinberger <adamw_at_FreeBSD.org>
Date: Sat, 03 Dec 2022 14:35:25 UTC
The branch main has been updated by adamw:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5b81e27816b256e67e0c4c9e6cdc5dc0bcb82edc

commit 5b81e27816b256e67e0c4c9e6cdc5dc0bcb82edc
Author:     Ihor Antonov <ihro@antonovs.family>
AuthorDate: 2022-12-03 14:32:22 +0000
Commit:     Adam Weinberger <adamw@FreeBSD.org>
CommitDate: 2022-12-03 14:35:15 +0000

    devel/lua-language-server: Fix runtime by defining metapath
    
    lua-language-server never ran correctly on FreeBSD. Setting metapath
    allows that dir to be created rather than it trying (and failing) to
    be created under $SHAREDIR.
---
 devel/lua-language-server/Makefile                     | 1 +
 devel/lua-language-server/files/lua-language-server.in | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/devel/lua-language-server/Makefile b/devel/lua-language-server/Makefile
index f1561ff6a48e..4863ed0481dc 100644
--- a/devel/lua-language-server/Makefile
+++ b/devel/lua-language-server/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	lua-language-server
 DISTVERSION=	3.6.4
+PORTREVISION=	1
 CATEGORIES=	devel
 
 MAINTAINER=	adamw@FreeBSD.org
diff --git a/devel/lua-language-server/files/lua-language-server.in b/devel/lua-language-server/files/lua-language-server.in
index 1d0447160891..3769af677064 100644
--- a/devel/lua-language-server/files/lua-language-server.in
+++ b/devel/lua-language-server/files/lua-language-server.in
@@ -3,4 +3,6 @@
 TMPPATH=$(/usr/bin/mktemp -d '/tmp/lua-language-server.XXXXXX' || exit 1)
 
 exec '%%DATADIR%%/bin/lua-language-server' \
-    --logpath="${TMPPATH}/log" "$@"
+    --logpath="${TMPPATH}/log" \
+    --metapath="${TMPPATH}/meta" \
+    "$@"