commit:     71c7a696bf1455f433e6266dfbdc27ef9e28fdae
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  8 19:13:12 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Nov 13 06:16:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71c7a696

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 <AT> gentoo.org>
Part-of: https://github.com/gentoo/gentoo/pull/44539
Signed-off-by: Sam James <sam <AT> gentoo.org>

 eclass/ninja-utils.eclass | 15 ++++++++++-----
 1 file 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}"

Reply via email to