Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-zig/zls/
Date: Sat, 05 Nov 2022 15:26:35
Message-Id: 1667582375.eaad72328d91430a3ca4ecdc86b06b135c5efecd.arthurzam@gentoo
1 commit: eaad72328d91430a3ca4ecdc86b06b135c5efecd
2 Author: Eric Joldasov <bratishkaerik <AT> getgoogleoff <DOT> me>
3 AuthorDate: Fri Nov 4 17:19:35 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 4 17:19:35 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=eaad7232
7
8 dev-zig/zls: new package, add 9999
9
10 Signed-off-by: Eric Joldasov <bratishkaerik <AT> getgoogleoff.me>
11
12 dev-zig/zls/metadata.xml | 12 ++++++++++++
13 dev-zig/zls/zls-9999.ebuild | 39 +++++++++++++++++++++++++++++++++++++++
14 2 files changed, 51 insertions(+)
15
16 diff --git a/dev-zig/zls/metadata.xml b/dev-zig/zls/metadata.xml
17 new file mode 100644
18 index 000000000..f7d26335b
19 --- /dev/null
20 +++ b/dev-zig/zls/metadata.xml
21 @@ -0,0 +1,12 @@
22 +<?xml version="1.0" encoding="UTF-8"?>
23 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
24 +<pkgmetadata>
25 + <maintainer type="person">
26 + <email>bratishkaerik@××××××××××××.me</email>
27 + <name>Eric Joldasov</name>
28 + </maintainer>
29 + <upstream>
30 + <remote-id type="github">zigtools/zls</remote-id>
31 + <bugs-to>https://github.com/zigtools/zls/issues</bugs-to>
32 + </upstream>
33 +</pkgmetadata>
34
35 diff --git a/dev-zig/zls/zls-9999.ebuild b/dev-zig/zls/zls-9999.ebuild
36 new file mode 100644
37 index 000000000..bbb09a80b
38 --- /dev/null
39 +++ b/dev-zig/zls/zls-9999.ebuild
40 @@ -0,0 +1,39 @@
41 +# Copyright 2022 Gentoo Authors
42 +# Distributed under the terms of the GNU General Public License v2
43 +
44 +EAPI=8
45 +
46 +inherit git-r3
47 +
48 +EGIT_REPO_URI="https://github.com/zigtools/zls"
49 +
50 +HOMEPAGE="https://github.com/zigtools/zls"
51 +DESCRIPTION="Zig LSP implementation + Zig Language Server"
52 +
53 +LICENSE="MIT"
54 +SLOT="0"
55 +
56 +DEPEND="~dev-lang/zig-9999"
57 +RDEPEND="${DEPEND}"
58 +
59 +# see https://github.com/ziglang/zig/issues/3382
60 +# For now, Zig doesn't support CFLAGS/LDFLAGS/etc.
61 +QA_FLAGS_IGNORED="usr/bin/zls"
62 +
63 +src_compile() {
64 + zig build -Drelease-safe -Ddata_version=master --verbose || die
65 +}
66 +
67 +src_test() {
68 + zig build test -Drelease-safe -Ddata_version=master --verbose || die
69 +}
70 +
71 +src_install() {
72 + DESTDIR="${ED}" zig build install --prefix /usr -Drelease-safe -Ddata_version=master --verbose || die
73 + dodoc README.md
74 +}
75 +
76 +pkg_postinst() {
77 + elog "For creating or updating config run this command: zls --config"
78 + elog "You can find more information about options here https://github.com/zigtools/zls#configuration-options"
79 +}