commit:     0756f73e144a02ae05f28468063ec5d09498fdd5
Author:     Eric Joldasov <bratishkaerik <AT> landless-city <DOT> net>
AuthorDate: Wed Jun  4 06:35:11 2025 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Wed Jun  4 06:35:11 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0756f73e

dev-zig/zls: move src_unpack block closer to other phases

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

 dev-zig/zls/zls-0.14.0.ebuild | 11 +++++++----
 dev-zig/zls/zls-9999.ebuild   | 11 +++++++----
 2 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/dev-zig/zls/zls-0.14.0.ebuild b/dev-zig/zls/zls-0.14.0.ebuild
index f8651590d4..179e69e765 100644
--- a/dev-zig/zls/zls-0.14.0.ebuild
+++ b/dev-zig/zls/zls-0.14.0.ebuild
@@ -17,10 +17,6 @@ if [[ ${PV} == 9999 ]]; then
 
        EGIT_REPO_URI="https://github.com/zigtools/zls";
        inherit git-r3
-       src_unpack() {
-               git-r3_src_unpack
-               zig_live_fetch -Denable-tracy=false
-       }
 else
        # 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
@@ -47,6 +43,13 @@ RDEPEND="
 
 DOCS=( README.md )
 
+if [[ ${PV} == 9999 ]]; then
+       src_unpack() {
+               git-r3_src_unpack
+               zig_live_fetch -Denable-tracy=false
+       }
+fi
+
 src_configure() {
        local my_zbs_args=(
                -Dpie=true

diff --git a/dev-zig/zls/zls-9999.ebuild b/dev-zig/zls/zls-9999.ebuild
index 865faed72d..713d0b9f87 100644
--- a/dev-zig/zls/zls-9999.ebuild
+++ b/dev-zig/zls/zls-9999.ebuild
@@ -11,10 +11,6 @@ if [[ ${PV} == 9999 ]]; then
 
        EGIT_REPO_URI="https://github.com/zigtools/zls";
        inherit git-r3
-       src_unpack() {
-               git-r3_src_unpack
-               zig_live_fetch -Denable-tracy=false
-       }
 else
        # 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
@@ -41,6 +37,13 @@ RDEPEND="
 
 DOCS=( README.md )
 
+if [[ ${PV} == 9999 ]]; then
+       src_unpack() {
+               git-r3_src_unpack
+               zig_live_fetch -Denable-tracy=false
+       }
+fi
+
 src_configure() {
        local my_zbs_args=(
                -Dpie=true

Reply via email to