dev-zig/zls: sync 9999 with 0.14.0

Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
This commit is contained in:
Eric Joldasov
2025-05-11 16:23:56 +05:00
parent 19109788e5
commit a680adeb1d

View File

@@ -3,17 +3,21 @@
EAPI=8
DESCRIPTION="The officially unofficial Ziglang language server"
DESCRIPTION="Non-official language server for Zig"
HOMEPAGE="https://zigtools.org/zls/ https://github.com/zigtools/zls"
# Sync with "minimum_build_zig_version" from upstream's "build.zig".
if [[ ${PV} == 9999 ]]; then
ZIG_SLOT="9999"
EGIT_REPO_URI="https://github.com/zigtools/zls"
inherit git-r3
src_unpack() {
git-r3_src_unpack
zig_live_fetch -Denable-tracy=false
}
else
ZIG_SLOT="0.14"
# Should be the "minimum_build_zig_version" from upstream's "build.zig".
ZIG_SLOT="$(ver_cut 1-2)" # works only for releases, but that's okay
SRC_URI="
https://github.com/zigtools/zls/archive/refs/tags/${PV}.tar.gz -> zls-${PV}.tar.gz
@@ -35,16 +39,7 @@ RDEPEND="
)
"
DOCS=( "README.md" )
src_unpack() {
if [[ ${PV} == 9999 ]]; then
git-r3_src_unpack
zig_live_fetch -Denable-tracy=false
else
zig_src_unpack
fi
}
DOCS=( README.md )
src_configure() {
local my_zbs_args=(
@@ -54,8 +49,3 @@ src_configure() {
zig_src_configure
}
pkg_postinst() {
elog "You can find configuration guide here:"
elog "https://zigtools.org/zls/"
}