1 |
On 15 December 2017 at 17:38, Mike Gilbert <floppym@g.o> wrote: |
2 |
> --- |
3 |
> eclass/meson.eclass | 13 +++++++++++++ |
4 |
> 1 file changed, 13 insertions(+) |
5 |
> |
6 |
> diff --git a/eclass/meson.eclass b/eclass/meson.eclass |
7 |
> index 2c943dd6ae27..71735fbfc67d 100644 |
8 |
> --- a/eclass/meson.eclass |
9 |
> +++ b/eclass/meson.eclass |
10 |
> @@ -137,6 +137,19 @@ _meson_create_cross_file() { |
11 |
> EOF |
12 |
> } |
13 |
> |
14 |
> +# @FUNCTION: meson_use |
15 |
> +# @USAGE: <USE flag> [option name] |
16 |
> +# @DESCRIPTION: |
17 |
> +# Given a USE flag and meson project option, outputs a string like: |
18 |
> +# |
19 |
> +# -Doption=true |
20 |
> +# -Doption=false |
21 |
> +# |
22 |
> +# If the project option is unspecified, it defaults to the USE flag. |
23 |
> +meson_use() { |
24 |
> + usex "$1" "-D${2-$1}=true" "-D${2-$1}=false" |
25 |
> +} |
26 |
> + |
27 |
> # @FUNCTION: meson_src_configure |
28 |
> # @DESCRIPTION: |
29 |
> # This is the meson_src_configure function. |
30 |
> -- |
31 |
> 2.15.1 |
32 |
> |
33 |
> |
34 |
|
35 |
Isn't this the beginning of this wheel |
36 |
https://github.com/gentoo/gentoo/commit/e9116b1aebc819a10410960cbb4931aa5e399af1 |
37 |
? |