diff options
author | Eric Joldasov <bratishkaerik@getgoogleoff.me> | 2022-11-04 23:19:35 +0600 |
---|---|---|
committer | Eric Joldasov <bratishkaerik@getgoogleoff.me> | 2022-11-04 23:19:35 +0600 |
commit | eaad72328d91430a3ca4ecdc86b06b135c5efecd (patch) | |
tree | 420ca376de82527ed6cade6fc7e45095d90188e7 /dev-zig | |
parent | dev-zig: new category (diff) | |
download | guru-eaad72328d91430a3ca4ecdc86b06b135c5efecd.tar.gz guru-eaad72328d91430a3ca4ecdc86b06b135c5efecd.tar.bz2 guru-eaad72328d91430a3ca4ecdc86b06b135c5efecd.zip |
dev-zig/zls: new package, add 9999
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
Diffstat (limited to 'dev-zig')
-rw-r--r-- | dev-zig/zls/metadata.xml | 12 | ||||
-rw-r--r-- | dev-zig/zls/zls-9999.ebuild | 39 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-zig/zls/metadata.xml b/dev-zig/zls/metadata.xml new file mode 100644 index 000000000..f7d26335b --- /dev/null +++ b/dev-zig/zls/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>bratishkaerik@getgoogleoff.me</email> + <name>Eric Joldasov</name> + </maintainer> + <upstream> + <remote-id type="github">zigtools/zls</remote-id> + <bugs-to>https://github.com/zigtools/zls/issues</bugs-to> + </upstream> +</pkgmetadata> diff --git a/dev-zig/zls/zls-9999.ebuild b/dev-zig/zls/zls-9999.ebuild new file mode 100644 index 000000000..bbb09a80b --- /dev/null +++ b/dev-zig/zls/zls-9999.ebuild @@ -0,0 +1,39 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit git-r3 + +EGIT_REPO_URI="https://github.com/zigtools/zls" + +HOMEPAGE="https://github.com/zigtools/zls" +DESCRIPTION="Zig LSP implementation + Zig Language Server" + +LICENSE="MIT" +SLOT="0" + +DEPEND="~dev-lang/zig-9999" +RDEPEND="${DEPEND}" + +# see https://github.com/ziglang/zig/issues/3382 +# For now, Zig doesn't support CFLAGS/LDFLAGS/etc. +QA_FLAGS_IGNORED="usr/bin/zls" + +src_compile() { + zig build -Drelease-safe -Ddata_version=master --verbose || die +} + +src_test() { + zig build test -Drelease-safe -Ddata_version=master --verbose || die +} + +src_install() { + DESTDIR="${ED}" zig build install --prefix /usr -Drelease-safe -Ddata_version=master --verbose || die + dodoc README.md +} + +pkg_postinst() { + elog "For creating or updating config run this command: zls --config" + elog "You can find more information about options here https://github.com/zigtools/zls#configuration-options" +} |