1 |
On pią, 2017-05-05 at 10:35 -0500, William Hubbs wrote: |
2 |
> # Copyright 2017 Gentoo Foundation |
3 |
|
4 |
Aren't we supposed to use the full range of years here? |
5 |
|
6 |
> # Distributed under the terms of the GNU General Public License v2 |
7 |
> |
8 |
> # @ECLASS: meson.eclass |
9 |
> # @MAINTAINER: |
10 |
> # William Hubbs <williamh@g.o> |
11 |
> # @BLURB: common ebuild functions for meson-based packages |
12 |
> # @DESCRIPTION: |
13 |
> # |
14 |
> # @EXAMPLE: |
15 |
> # Typical ebuild using meson.eclass: |
16 |
> # |
17 |
> # @CODE |
18 |
> # EAPI=6 |
19 |
> # |
20 |
> # inherit meson |
21 |
> # |
22 |
> # ... |
23 |
> # |
24 |
> # src_configure() { |
25 |
> # local emesonargs=( |
26 |
> # -Dqt4=$(usex qt4 true false) |
27 |
> # -Dthreads=$(usex threads true false) |
28 |
> # -Dtiff=$(usex tiff true false) |
29 |
> # ) |
30 |
> # meson_src_configure |
31 |
> # } |
32 |
> # |
33 |
> # ... |
34 |
> # |
35 |
> # @CODE |
36 |
> |
37 |
> case ${EAPI:-0} in |
38 |
> 6) ;; |
39 |
> *) die "EAPI=${EAPI} is not supported" ;; |
40 |
> esac |
41 |
> |
42 |
> EXPORT_FUNCTIONS src_configure src_compile src_test src_install |
43 |
> |
44 |
> if [[ -z ${_MESON_ECLASS} ]]; then |
45 |
> _MESON_ECLASS=1 |
46 |
> |
47 |
> inherit ninja-utils |
48 |
|
49 |
Extra tab on front of the line. |
50 |
|
51 |
-- |
52 |
Best regards, |
53 |
Michał Górny |