commit:     b0e6866dd94cbd748143842a9d841d4d40489afa
Author:     Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Thu May 20 05:47:21 2021 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Fri May 21 02:30:26 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0e6866d

x11-libs/libxkbcommon: Add support for wayland

Closes: https://github.com/gentoo/gentoo/pull/20893
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 x11-libs/libxkbcommon/libxkbcommon-1.3.0.ebuild | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/x11-libs/libxkbcommon/libxkbcommon-1.3.0.ebuild 
b/x11-libs/libxkbcommon/libxkbcommon-1.3.0.ebuild
index ce2e0966826..38cc5c15931 100644
--- a/x11-libs/libxkbcommon/libxkbcommon-1.3.0.ebuild
+++ b/x11-libs/libxkbcommon/libxkbcommon-1.3.0.ebuild
@@ -18,7 +18,7 @@ inherit meson multilib-minimal ${GIT_ECLASS} python-any-r1 
virtualx
 DESCRIPTION="keymap handling library for toolkits and window systems"
 HOMEPAGE="https://xkbcommon.org/ https://github.com/xkbcommon/libxkbcommon/";
 LICENSE="MIT"
-IUSE="X doc static-libs test"
+IUSE="doc static-libs test wayland X"
 RESTRICT="!test? ( test )"
 SLOT="0"
 
@@ -26,14 +26,18 @@ BDEPEND="
        sys-devel/bison
        doc? ( app-doc/doxygen )
        test? ( ${PYTHON_DEPS} )
+       wayland? ( dev-util/wayland-scanner )
 "
 RDEPEND="
        X? ( >=x11-libs/libxcb-1.10:=[${MULTILIB_USEDEP},xkb] )
+       wayland? ( >=dev-libs/wayland-1.2.0 )
        dev-libs/libxml2[${MULTILIB_USEDEP}]
        x11-misc/compose-tables
 "
 DEPEND="${RDEPEND}
-       X? ( x11-base/xorg-proto )"
+       X? ( x11-base/xorg-proto )
+       wayland? ( >=dev-libs/wayland-protocols-1.12 )
+"
 
 pkg_setup() {
        if use test; then
@@ -45,7 +49,7 @@ multilib_src_configure() {
        local emesonargs=(
                -Ddefault_library="$(usex static-libs both shared)"
                -Dxkb-config-root="${EPREFIX}/usr/share/X11/xkb"
-               -Denable-wayland=false # Demo applications
+               $(meson_use wayland enable-wayland)
                $(meson_use X enable-x11)
                $(meson_use doc enable-docs)
        )

Reply via email to