1 |
commit: 95516dff05dd06ae72a531796ac7b128b162cebc |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 4 01:54:54 2021 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 4 02:07:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95516dff |
7 |
|
8 |
dev-libs/wayland-protocols: Switch to meson |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
.../wayland-protocols-9999.ebuild | 43 +++++++++++----------- |
13 |
1 file changed, 22 insertions(+), 21 deletions(-) |
14 |
|
15 |
diff --git a/dev-libs/wayland-protocols/wayland-protocols-9999.ebuild b/dev-libs/wayland-protocols/wayland-protocols-9999.ebuild |
16 |
index 8eed22822b4..f9b1910a51a 100644 |
17 |
--- a/dev-libs/wayland-protocols/wayland-protocols-9999.ebuild |
18 |
+++ b/dev-libs/wayland-protocols/wayland-protocols-9999.ebuild |
19 |
@@ -1,37 +1,38 @@ |
20 |
-# Copyright 1999-2020 Gentoo Authors |
21 |
+# Copyright 1999-2021 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
EAPI=7 |
25 |
|
26 |
+inherit meson |
27 |
+ |
28 |
DESCRIPTION="Wayland protocol files" |
29 |
HOMEPAGE="https://wayland.freedesktop.org/" |
30 |
|
31 |
if [[ ${PV} = 9999* ]]; then |
32 |
EGIT_REPO_URI="https://gitlab.freedesktop.org/wayland/${PN}.git/" |
33 |
- inherit git-r3 autotools |
34 |
+ inherit git-r3 |
35 |
else |
36 |
SRC_URI="https://wayland.freedesktop.org/releases/${P}.tar.xz" |
37 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
38 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
39 |
fi |
40 |
|
41 |
LICENSE="MIT" |
42 |
SLOT="0" |
43 |
-IUSE="" |
44 |
- |
45 |
-DEPEND="dev-libs/wayland" |
46 |
-RDEPEND="${DEPEND}" |
47 |
-BDEPEND="virtual/pkgconfig" |
48 |
- |
49 |
-src_prepare() { |
50 |
- default |
51 |
- |
52 |
- [[ ${PV} == 9999 ]] && eautoreconf |
53 |
-} |
54 |
- |
55 |
-src_test() { |
56 |
- export XDG_RUNTIME_DIR="${T}/runtime-dir" |
57 |
- mkdir "${XDG_RUNTIME_DIR}" || die |
58 |
- chmod 0700 "${XDG_RUNTIME_DIR}" || die |
59 |
- |
60 |
- default |
61 |
+IUSE="test" |
62 |
+RESTRICT="!test? ( test )" |
63 |
+ |
64 |
+DEPEND=" |
65 |
+ test? ( dev-libs/wayland ) |
66 |
+" |
67 |
+RDEPEND="" |
68 |
+BDEPEND=" |
69 |
+ dev-util/wayland-scanner |
70 |
+ virtual/pkgconfig |
71 |
+" |
72 |
+ |
73 |
+src_configure() { |
74 |
+ local emesonargs=( |
75 |
+ $(meson_use test tests) |
76 |
+ ) |
77 |
+ meson_src_configure |
78 |
} |