pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

zls: import zls-0.16.0 as wip/zls



Module Name:	pkgsrc-wip
Committed By:	Iku Iwasa <iquiw%NetBSD.org@localhost>
Pushed By:	iquiw
Date:		Sun Jun 14 10:06:30 2026 +0900
Changeset:	c7107512f4ccd28a3c73b1d020fed1c00bd1beaa

Modified Files:
	Makefile
Added Files:
	zls/COMMIT_MSG
	zls/DESCR
	zls/Makefile
	zls/PLIST
	zls/distinfo
	zls/patches/patch-build.zig
	zls/zig-depends.mk

Log Message:
zls: import zls-0.16.0 as wip/zls

Copied from devel/zls and updated to the latest release.

* zls-0.16.0 built with zig-0.16.0.
* PIE enabled with a patch for build.zig.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c7107512f4ccd28a3c73b1d020fed1c00bd1beaa

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                    |  1 +
 zls/COMMIT_MSG              |  4 ++++
 zls/DESCR                   |  4 ++++
 zls/Makefile                | 24 ++++++++++++++++++++++++
 zls/PLIST                   |  2 ++
 zls/distinfo                |  6 ++++++
 zls/patches/patch-build.zig | 14 ++++++++++++++
 zls/zig-depends.mk          |  6 ++++++
 8 files changed, 61 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 2e6b73bf83..d844f14da4 100644
--- a/Makefile
+++ b/Makefile
@@ -6279,6 +6279,7 @@ SUBDIR+=	ziparchive
 SUBDIR+=	zipios
 SUBDIR+=	zk
 SUBDIR+=	zlua
+SUBDIR+=	zls
 SUBDIR+=	zmap
 SUBDIR+=	zodiac
 SUBDIR+=	zpaq
diff --git a/zls/COMMIT_MSG b/zls/COMMIT_MSG
new file mode 100644
index 0000000000..5eb6808b73
--- /dev/null
+++ b/zls/COMMIT_MSG
@@ -0,0 +1,4 @@
+devel/zls: update to 0.16.0
+
+* zls-0.16.0 built with zig-0.16.0.
+* PIE enabled with a patch for build.zig.
diff --git a/zls/DESCR b/zls/DESCR
new file mode 100644
index 0000000000..85e412a49a
--- /dev/null
+++ b/zls/DESCR
@@ -0,0 +1,4 @@
+The Zig Language Server (ZLS) is a tool that implements
+Microsoft's Language Server Protocol for Zig in Zig.
+In simpler terms: it'll provide you with completions,
+go-to definition, etc. when you write Zig code!
diff --git a/zls/Makefile b/zls/Makefile
new file mode 100644
index 0000000000..dbcf4a7f76
--- /dev/null
+++ b/zls/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD$
+
+DISTNAME=	zls-0.16.0
+CATEGORIES=	devel
+MASTER_SITES=	${MASTER_SITE_GITHUB:=zigtools/}
+GITHUB_PROJECT=	zls
+GITHUB_TAG=	${PKGVERSION_NOREV}
+
+COMMENT=	Language Server for zig
+MAINTAINER=	pkgsrc%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/zigtools/zls/
+LICENSE=	mit
+
+ZIGSTRIP=		no
+ZIGBUILDARGS+=		--verbose
+
+# Temporary required, a zig build system parser is being written.
+ALLOW_NETWORK_ACCESS=	yes
+
+# TODO: target "zig-vendor-packages" fails if build.zig does not exist in this directory.
+# .include "zig-depends.mk"
+
+.include "../../lang/zig/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/zls/PLIST b/zls/PLIST
new file mode 100644
index 0000000000..cbbb77283a
--- /dev/null
+++ b/zls/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2024/04/29 13:27:52 nikita Exp $
+bin/zls
diff --git a/zls/distinfo b/zls/distinfo
new file mode 100644
index 0000000000..6b6ac388b3
--- /dev/null
+++ b/zls/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2024/04/29 13:27:52 nikita Exp $
+
+BLAKE2s (zls-0.16.0.tar.gz) = f1e44bb48e4bceca42fe20acad5103822875538ea8e00fbabb3121679c5c33d1
+SHA512 (zls-0.16.0.tar.gz) = 14a33c05dd4c3e6b12f303a88f164e39b3956cb8d0ad541c7c926ace73d95a8573475217cb8dd82215b2ec92505c370decd5809ea70103511aa72e7d80945dd5
+Size (zls-0.16.0.tar.gz) = 464023 bytes
+SHA1 (patch-build.zig) = 104c753d62a9aff9204707e19901e31b705ddfd8
diff --git a/zls/patches/patch-build.zig b/zls/patches/patch-build.zig
new file mode 100644
index 0000000000..0697c9a4ad
--- /dev/null
+++ b/zls/patches/patch-build.zig
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Enable PIE.
+
+--- build.zig.orig	2026-04-16 19:43:57.000000000 +0000
++++ build.zig
+@@ -217,6 +217,7 @@ pub fn build(b: *Build) !void {
+             .use_llvm = use_llvm,
+             .use_lld = use_llvm,
+         });
++        exe.pie = pie;
+         b.installArtifact(exe);
+     }
+ 
diff --git a/zls/zig-depends.mk b/zls/zig-depends.mk
new file mode 100644
index 0000000000..99d2e5f30e
--- /dev/null
+++ b/zls/zig-depends.mk
@@ -0,0 +1,6 @@
+# $NetBSD$
+
+ZIG_PACKAGE_DEPENDS+=	https://github.com/ziglibs/known-folders/archive/d6d03830968cca6b7b9f24fd97ee348346a6905d.tar.gz
+ZIG_PACKAGE_DEPENDS+=	https://github.com/ziglibs/diffz/archive/b39fe07e7fdbcf56e43ba2890b9f484f16969f90.tar.gz
+ZIG_PACKAGE_DEPENDS+=	https://github.com/zigtools/lsp-kit/archive/b886a2b0d5cee85ecbcc3089b863f7517cc9ff7f.tar.gz
+ZIG_PACKAGE_DEPENDS+=	https://github.com/wolfpld/tracy/archive/refs/tags/v0.13.1.tar.gz


Home | Main Index | Thread Index | Old Index