On Mon, May 30, 2022 at 3:57 PM Anna “CyberTailor” <cyber+gen...@sysrq.in> wrote: > > On 2022-05-08 23:07, Sam James wrote: > > From: orbea <or...@riseup.net> > > > > samurai is a ninja-compatible build tool written in C which > > works with cmake, meson and other users of ninja. > > > > It is feature-complete and supports most of the same options > > as ninja. > > > > Signed-off-by: orbea <or...@riseup.net> > > Signed-off-by: Sam James <s...@gentoo.org> > > --- > > eclass/ninja-utils.eclass | 24 +++++++++++++++++++++++- > > 1 file changed, 23 insertions(+), 1 deletion(-) > > > > diff --git a/eclass/ninja-utils.eclass b/eclass/ninja-utils.eclass > > index c5f34934192f..67f7a6b5e8a7 100644 > > --- a/eclass/ninja-utils.eclass > > +++ b/eclass/ninja-utils.eclass > > @@ -26,6 +26,15 @@ esac > > if [[ -z ${_NINJA_UTILS_ECLASS} ]]; then > > _NINJA_UTILS_ECLASS=1 > > > > +# @ECLASS_VARIABLE: NINJA > > +# @PRE_INHERIT > > How about making it @USER_VARIABLE instead? Because it's more likely to > be set in make.conf rather than in an ebuild.
It's "unofficially" supported as a user variable. If users set it in make.conf, it will break metadata invariance and the dependency cache will need to be rebuilt. If we truly want to support it as a user variable, we need to provide some alternate means of varying BDEPEND.