mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 20:13:01 -04:00
dev-zig/zls: improve ebuild a bit
- DESCRIPTION: reflect the `--help` message
- redefine live's src_unpack near git-r3 inherit
- inspired by 06ba1f0f70
- do not hardcode ZIG_SLOT
Signed-off-by: Filip Kobierski <fkobi@pm.me>
Part-of: https://github.com/gentoo/guru/pull/313
Closes: https://github.com/gentoo/guru/pull/313
Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
committed by
David Roman
parent
7d57c55dd6
commit
bfce42c504
@@ -3,7 +3,7 @@
|
||||
|
||||
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"
|
||||
|
||||
declare -g -r -A ZBS_DEPENDENCIES=(
|
||||
@@ -12,14 +12,18 @@ declare -g -r -A ZBS_DEPENDENCIES=(
|
||||
[N-V-__8AABhrAQAQLLLGadghhPsdxTgBk9N9aLVOjXW3ay0V.tar.gz]='https://github.com/ziglibs/diffz/archive/ef45c00d655e5e40faf35afbbde81a1fa5ed7ffb.tar.gz'
|
||||
)
|
||||
|
||||
# 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
|
||||
@@ -43,15 +47,6 @@ 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
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local my_zbs_args=(
|
||||
-Dpie=true
|
||||
|
||||
Reference in New Issue
Block a user