From dea32190a367882fbd96b59f489396e5c9f945c0 Mon Sep 17 00:00:00 2001 From: projectmoon Date: Wed, 14 Aug 2024 10:15:00 +0200 Subject: [PATCH] input-leap: Change libei flag to wayland --- docs/Input-Leap.md | 7 ++++--- x11-misc/input-leap/input-leap-9999.ebuild | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/Input-Leap.md b/docs/Input-Leap.md index cf9425d..43250f1 100644 --- a/docs/Input-Leap.md +++ b/docs/Input-Leap.md @@ -34,21 +34,22 @@ x11-misc/input-leap::projectmoon ** ## USE Flags -This ebuild of Input Leap supports Wayland integration via `libei`, onb +This ebuild of Input Leap supports Wayland integration via `libei`, on supported compositors (notably, wlroots is apparently not supported by upstream). To use the `libei` integration, you must have a version of `libportal` with Input Capture support, which at time of writing (libportal 0.7.1) is not yet released. This overlay contains a custom ebuild of `dev-libs/libportal` that can -enable Input Capture. +enable Input Capture. The patch is cherry-picked from the upstream +commits. To configure Input Leap to use `libei` for Wayland support, add the following USE declarations: ``` dev-libs/libportal inputcapture -x11-misc/input-leap libei +x11-misc/input-leap wayland ``` Note that `inputcapture` is NOT a USE flag on the main Gentoo ebuild. So diff --git a/x11-misc/input-leap/input-leap-9999.ebuild b/x11-misc/input-leap/input-leap-9999.ebuild index 9eb5cb7..52c72b5 100644 --- a/x11-misc/input-leap/input-leap-9999.ebuild +++ b/x11-misc/input-leap/input-leap-9999.ebuild @@ -11,7 +11,7 @@ EGIT_REPO_URI="https://github.com/input-leap/input-leap.git" LICENSE="GPL-2" SLOT="0" -IUSE="libei gui test" +IUSE="wayland gui test" RESTRICT="!test? ( test )" RDEPEND=" @@ -24,7 +24,7 @@ RDEPEND=" x11-libs/libXinerama x11-libs/libXrandr x11-libs/libXtst - libei? ( + wayland? ( dev-libs/libei dev-libs/libportal[inputcapture] ) @@ -64,7 +64,7 @@ src_configure() { -DBARRIER_BUILD_GUI=$(usex gui) -DBARRIER_BUILD_INSTALLER=OFF -DBARRIER_BUILD_TESTS=$(usex test) - -DINPUTLEAP_BUILD_LIBEI=$(usex libei) + -DINPUTLEAP_BUILD_LIBEI=$(usex wayland) -DBARRIER_REVISION=00000000 -DBARRIER_USE_EXTERNAL_GTEST=ON -DBARRIER_VERSION_STAGE=gentoo