mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 20:13:01 -04:00
dev-zig/zls: add 0.14.0
Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
This commit is contained in:
67
dev-zig/zls/zls-0.14.0.ebuild
Normal file
67
dev-zig/zls/zls-0.14.0.ebuild
Normal file
@@ -0,0 +1,67 @@
|
||||
# Copyright 2022-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="The officially unofficial Ziglang language server"
|
||||
HOMEPAGE="https://zigtools.org/zls/ https://github.com/zigtools/zls"
|
||||
|
||||
declare -g -r -A ZBS_DEPENDENCIES=(
|
||||
[known_folders-0.0.0-Fy-PJtLDAADGDOwYwMkVydMSTp_aN-nfjCZw6qPQ2ECL.tar.gz]='https://github.com/ziglibs/known-folders/archive/aa24df42183ad415d10bc0a33e6238c437fc0f59.tar.gz'
|
||||
[lsp_codegen-0.1.0-CMjjo0ZXCQB-rAhPYrlfzzpU0u0u2MeGvUucZ-_g32eg.tar.gz]='https://github.com/zigtools/zig-lsp-codegen/archive/063a98c13a2293d8654086140813bdd1de6501bc.tar.gz'
|
||||
[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
|
||||
else
|
||||
ZIG_SLOT="0.14"
|
||||
|
||||
SRC_URI="
|
||||
https://github.com/zigtools/zls/archive/refs/tags/${PV}.tar.gz -> zls-${PV}.tar.gz
|
||||
"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
inherit zig
|
||||
SRC_URI+="${ZBS_DEPENDENCIES_SRC_URI}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
|
||||
# Sync with "minimum_runtime_zig_version" from upstream's "build.zig".
|
||||
RDEPEND="
|
||||
|| (
|
||||
>=dev-lang/zig-0.14.0
|
||||
>=dev-lang/zig-bin-0.14.0
|
||||
)
|
||||
"
|
||||
|
||||
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
|
||||
-Denable-tracy=false
|
||||
)
|
||||
|
||||
zig_src_configure
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog "You can find configuration guide here:"
|
||||
elog "https://zigtools.org/zls/"
|
||||
}
|
||||
Reference in New Issue
Block a user