commit:     a680adeb1d403700afc1ea11ee83218f47728772
Author:     Eric Joldasov <bratishkaerik <AT> landless-city <DOT> net>
AuthorDate: Sun May 11 11:23:56 2025 +0000
Commit:     Eric Joldasov <bratishkaerik <AT> getgoogleoff <DOT> me>
CommitDate: Sun May 11 11:24:04 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a680adeb

dev-zig/zls: sync 9999 with 0.14.0

Signed-off-by: Eric Joldasov <bratishkaerik <AT> landless-city.net>

 dev-zig/zls/zls-9999.ebuild | 26 ++++++++------------------
 1 file changed, 8 insertions(+), 18 deletions(-)

diff --git a/dev-zig/zls/zls-9999.ebuild b/dev-zig/zls/zls-9999.ebuild
index 2de575acf..865faed72 100644
--- a/dev-zig/zls/zls-9999.ebuild
+++ b/dev-zig/zls/zls-9999.ebuild
@@ -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/";
-}

Reply via email to