mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
dev-zig/zls: sync 9999 with 0.14.0
Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
This commit is contained in:
@@ -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/"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user