commit:     95516dff05dd06ae72a531796ac7b128b162cebc
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Tue May  4 01:54:54 2021 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Tue May  4 02:07:10 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95516dff

dev-libs/wayland-protocols: Switch to meson

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 .../wayland-protocols-9999.ebuild                  | 43 +++++++++++-----------
 1 file changed, 22 insertions(+), 21 deletions(-)

diff --git a/dev-libs/wayland-protocols/wayland-protocols-9999.ebuild 
b/dev-libs/wayland-protocols/wayland-protocols-9999.ebuild
index 8eed22822b4..f9b1910a51a 100644
--- a/dev-libs/wayland-protocols/wayland-protocols-9999.ebuild
+++ b/dev-libs/wayland-protocols/wayland-protocols-9999.ebuild
@@ -1,37 +1,38 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
+inherit meson
+
 DESCRIPTION="Wayland protocol files"
 HOMEPAGE="https://wayland.freedesktop.org/";
 
 if [[ ${PV} = 9999* ]]; then
        EGIT_REPO_URI="https://gitlab.freedesktop.org/wayland/${PN}.git/";
-       inherit git-r3 autotools
+       inherit git-r3
 else
        SRC_URI="https://wayland.freedesktop.org/releases/${P}.tar.xz";
-       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 
~s390 ~sparc ~x86"
+       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
 fi
 
 LICENSE="MIT"
 SLOT="0"
-IUSE=""
-
-DEPEND="dev-libs/wayland"
-RDEPEND="${DEPEND}"
-BDEPEND="virtual/pkgconfig"
-
-src_prepare() {
-       default
-
-       [[ ${PV} == 9999 ]] && eautoreconf
-}
-
-src_test() {
-       export XDG_RUNTIME_DIR="${T}/runtime-dir"
-       mkdir "${XDG_RUNTIME_DIR}" || die
-       chmod 0700 "${XDG_RUNTIME_DIR}" || die
-
-       default
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+       test? ( dev-libs/wayland )
+"
+RDEPEND=""
+BDEPEND="
+       dev-util/wayland-scanner
+       virtual/pkgconfig
+"
+
+src_configure() {
+       local emesonargs=(
+               $(meson_use test tests)
+       )
+       meson_src_configure
 }

Reply via email to