git: 3ab2afc78506 - main - devel/zls: add new port
Jan Beich
jbeich at FreeBSD.org
Sun Aug 1 00:59:51 UTC 2021
The branch main has been updated by jbeich:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3ab2afc785061b463732e1ed2bde968c9e3b95c7
commit 3ab2afc785061b463732e1ed2bde968c9e3b95c7
Author: Jan Beich <jbeich at FreeBSD.org>
AuthorDate: 2021-08-01 00:43:58 +0000
Commit: Jan Beich <jbeich at FreeBSD.org>
CommitDate: 2021-08-01 00:59:07 +0000
devel/zls: add new port
Zig Language Server, or zls, is a language server for Zig. The Zig
wiki states that "The Zig community is decentralized" and "There is no
concept of 'official' or 'unofficial'", so instead of calling zls
unofficial, and I'm going to call it a cool option, one of many.
https://github.com/zigtools/zls
---
devel/Makefile | 1 +
devel/zls/Makefile | 33 +++++++++++++++++++++++++++++++++
devel/zls/distinfo | 7 +++++++
devel/zls/pkg-descr | 6 ++++++
4 files changed, 47 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index d0c429672c2e..a09205a1a105 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7091,6 +7091,7 @@
SUBDIR += zapcc
SUBDIR += zeal
SUBDIR += zfp
+ SUBDIR += zls
SUBDIR += zookeeper
SUBDIR += zpu-binutils
SUBDIR += zpu-gcc
diff --git a/devel/zls/Makefile b/devel/zls/Makefile
new file mode 100644
index 000000000000..31c3966c58ce
--- /dev/null
+++ b/devel/zls/Makefile
@@ -0,0 +1,33 @@
+PORTNAME= zls
+DISTVERSION= 0.1.0-226
+DISTVERSIONSUFFIX= -g39d8718
+CATEGORIES= devel
+
+MAINTAINER= jbeich at FreeBSD.org
+COMMENT= Zig LSP implementation + Zig Language Server
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.md
+
+BUILD_DEPENDS= zig>=0.8.0:lang/zig
+RUN_DEPENDS= zig:lang/zig
+
+USE_GITHUB= yes
+GH_ACCOUNT= zigtools
+GH_TUPLE= ziglibs:known-folders:0.7.0-6-ge179436:known_folders/src/known-folders \
+ ziglibs:zinput:0.1.0-16-g95106b1:zinput/src/zinput
+MAKE_ENV= DESTDIR="${STAGEDIR}"
+CONFIGURE_ARGS= --prefix "${PREFIX}" \
+ ${WITH_DEBUG:U-Drelease-fast=true} \
+ --verbose
+NO_INSTALL= yes # strip(1) breaks runtime
+PLIST_FILES= bin/${PORTNAME} \
+ bin/build_runner.zig
+
+do-build:
+ @(cd ${WRKSRC} && ${MAKE_ENV} zig build ${CONFIGURE_ARGS})
+
+do-test:
+ @(cd ${WRKSRC} && ${TEST_ENV} zig build test ${CONFIGURE_ARGS})
+
+.include <bsd.port.mk>
diff --git a/devel/zls/distinfo b/devel/zls/distinfo
new file mode 100644
index 000000000000..17d732ad44a2
--- /dev/null
+++ b/devel/zls/distinfo
@@ -0,0 +1,7 @@
+TIMESTAMP = 1622931690
+SHA256 (zigtools-zls-0.1.0-226-g39d8718_GH0.tar.gz) = 3fcd98187947582dcd17fb0305c44c50d08ef032607be898f4bf2133e232385d
+SIZE (zigtools-zls-0.1.0-226-g39d8718_GH0.tar.gz) = 217073
+SHA256 (ziglibs-known-folders-0.7.0-6-ge179436_GH0.tar.gz) = 169b3d7ff2e649aefda9fff498c54ddfe12c790d30843f3d4d40a9e760309f50
+SIZE (ziglibs-known-folders-0.7.0-6-ge179436_GH0.tar.gz) = 6424
+SHA256 (ziglibs-zinput-0.1.0-16-g95106b1_GH0.tar.gz) = 0a6a8d2ce8ff21c7dba1e2918e9b997764446748d699f6be1f33aeaf6dd7bf37
+SIZE (ziglibs-zinput-0.1.0-16-g95106b1_GH0.tar.gz) = 4009
diff --git a/devel/zls/pkg-descr b/devel/zls/pkg-descr
new file mode 100644
index 000000000000..b8c10fd12d1f
--- /dev/null
+++ b/devel/zls/pkg-descr
@@ -0,0 +1,6 @@
+Zig Language Server, or zls, is a language server for Zig. The Zig
+wiki states that "The Zig community is decentralized" and "There is no
+concept of 'official' or 'unofficial'", so instead of calling zls
+unofficial, and I'm going to call it a cool option, one of many.
+
+WWW: https://github.com/zigtools/zls
More information about the dev-commits-ports-all
mailing list