1 |
El lun, 09-05-2022 a las 13:50 +0200, Pacho Ramos escribió: |
2 |
> El dom, 08-05-2022 a las 23:07 +0000, Sam James escribió: |
3 |
> > From: orbea <orbea@××××××.net> |
4 |
> > |
5 |
> > samurai is a ninja-compatible build tool written in C which |
6 |
> > works with cmake, meson and other users of ninja. |
7 |
> > |
8 |
> > It is feature-complete and supports most of the same options |
9 |
> > as ninja. |
10 |
> > |
11 |
> > Signed-off-by: orbea <orbea@××××××.net> |
12 |
> > Signed-off-by: Sam James <sam@g.o> |
13 |
> > --- |
14 |
> > eclass/ninja-utils.eclass | 24 +++++++++++++++++++++++- |
15 |
> > 1 file changed, 23 insertions(+), 1 deletion(-) |
16 |
> > |
17 |
> > diff --git a/eclass/ninja-utils.eclass b/eclass/ninja-utils.eclass |
18 |
> > index c5f34934192f..67f7a6b5e8a7 100644 |
19 |
> > --- a/eclass/ninja-utils.eclass |
20 |
> > +++ b/eclass/ninja-utils.eclass |
21 |
> > @@ -26,6 +26,15 @@ esac |
22 |
> > if [[ -z ${_NINJA_UTILS_ECLASS} ]]; then |
23 |
> > _NINJA_UTILS_ECLASS=1 |
24 |
> > |
25 |
> > +# @ECLASS_VARIABLE: NINJA |
26 |
> > +# @PRE_INHERIT |
27 |
> > +# @DEFAULT_UNSET |
28 |
> > +# @DESCRIPTION: |
29 |
> > +# Specify a compatible ninja implementation to be used by eninja. |
30 |
> > +# At this point only "ninja" and "samu" are supported. |
31 |
> > +# The default is set to "ninja". |
32 |
> > +: ${NINJA:=ninja} |
33 |
> > + |
34 |
> > # @ECLASS_VARIABLE: NINJAOPTS |
35 |
> > # @DEFAULT_UNSET |
36 |
> > # @DESCRIPTION: |
37 |
> > @@ -35,6 +44,19 @@ _NINJA_UTILS_ECLASS=1 |
38 |
> > |
39 |
> > inherit multiprocessing |
40 |
> > |
41 |
> > +case "${NINJA}" in |
42 |
> > + ninja) |
43 |
> > + NINJA_DEPEND=">=dev-util/ninja-1.8.2" |
44 |
> > + ;; |
45 |
> > + samu) |
46 |
> > + NINJA_DEPEND="dev-util/samurai" |
47 |
> > + ;; |
48 |
> > + *) |
49 |
> > + eerror "Unknown value for \${NINJA}" |
50 |
> > + die "Value ${NINJA} is not supported" |
51 |
> > + ;; |
52 |
> > +esac |
53 |
> > + |
54 |
> |
55 |
> Personally I would add "samurai" as value instead of the abbreviated "samu" |
56 |
> form |
57 |
> (that could come from other words than "samurai")... but has you wish :), it |
58 |
> is |
59 |
> only a cosmetic change anyway |
60 |
> |
61 |
> Thanks |
62 |
> |
63 |
> |
64 |
*as you wish |