• [gentoo-dev] [PATCH v2 1/5] zig-toolchain.eclass: new eclass

    From Eric Joldasov@21:1/5 to All on Fri Oct 25 23:40:02 2024
    Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
    ---
    eclass/zig-toolchain.eclass | 375 ++++++++++++++++++++++++++++++++++++
    1 file changed, 375 insertions(+)
    create mode 100644 eclass/zig-toolchain.eclass

    diff --git a/eclass/zig-toolchain.eclass b/eclass/zig-toolchain.eclass
    new file mode 100644
    index 000000000000..42a3f8ec3706
    --- /dev/null
    +++ b/eclass/zig-toolchain.eclass
    @@ -0,0 +1,375 @@
    +# Copyright 2024 Gentoo Authors
    +# Distributed under the terms of the GNU General Public License v2
    +
    +# @ECLASS: zig-toolchain.eclass
    +# @MAINTAINER:
    +# Eric Joldasov <bratishkaerik@landless-city.net>
    +# @AUTHOR:
    +# Eric Joldasov <bratishkaerik@landless-city.net>
    +# @SUPPORTED_EAPIS: 8
    +# @BLURB: Prepare Zig toolchain and set environment variables
    +# @DESCRIPTION:
    +# Prepare Zig toolchain and set environment variables.
    +# Supports Zig 0.13+.
    +# Does not set any default function, ebuilds must call them manually.
    +# Generally, only "zig-toolchain_populate_env_vars" is needed.
    +#
    +# Intended to be used by ebuilds that call "zig build-exe/l