dev-zig/zls: new package, add 9999

Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
This commit is contained in:
Eric Joldasov
2022-11-04 23:19:35 +06:00
parent c063b92116
commit eaad72328d
2 changed files with 51 additions and 0 deletions

View File

@@ -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"
}