diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-11-08 20:13:12 +0100 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-11-13 06:16:27 +0000 |
| commit | 71c7a696bf1455f433e6266dfbdc27ef9e28fdae (patch) | |
| tree | 5f5469d2c06e130b61caaa83045c765caa3172b2 /eclass | |
| parent | 14db42fe5c5a73da824787c2af55536447d2b83c (diff) | |
| download | gentoo-71c7a696bf1455f433e6266dfbdc27ef9e28fdae.tar.gz gentoo-71c7a696bf1455f433e6266dfbdc27ef9e28fdae.tar.bz2 gentoo-71c7a696bf1455f433e6266dfbdc27ef9e28fdae.zip | |
ninja-utils.eclass: Permit "ninja-reference"
Permit "ninja-reference" to explicitly force dev-build/ninja. Update
the documentation, since the code no longer permits "other values".
Closes: https://bugs.gentoo.org/922639
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Part-of: https://github.com/gentoo/gentoo/pull/44539
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
| -rw-r--r-- | eclass/ninja-utils.eclass | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/eclass/ninja-utils.eclass b/eclass/ninja-utils.eclass index f07c7d410987..c38fd4094a4e 100644 --- a/eclass/ninja-utils.eclass +++ b/eclass/ninja-utils.eclass @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # @ECLASS: ninja-utils.eclass @@ -29,9 +29,14 @@ _NINJA_UTILS_ECLASS=1 # @PRE_INHERIT # @DESCRIPTION: # Specify a compatible ninja implementation to be used by eninja(). -# At this point only "ninja" and "samu" are explicitly supported, -# but other values can be set where NINJA_DEPEND will then be set -# to a blank variable. +# Accepts the following values: +# +# - ninja -- use the "ninja" symlink per app-alternatives/ninja +# +# - ninja-reference -- use "ninja-reference" for dev-build/ninja +# +# - samu -- use "samu" for dev-build/samurai +# # The default is set to "ninja". : "${NINJA:=ninja}" @@ -75,7 +80,7 @@ get_NINJAOPTS() { # also supports being called via 'nonfatal'. eninja() { case "${NINJA}" in - ninja|samu) + ninja|ninja-reference|samu) ;; *) ewarn "Unknown value '${NINJA}' for \${NINJA}" |
