commit: 9c9c97bad1412b69e473ca88ac6393639538f7b0
Author: Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Tue Oct 18 18:43:40 2022 +0000
Commit: Jonas Frei <freijon <AT> pm <DOT> me>
CommitDate: Tue Oct 18 18:43:40 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9c9c97ba
x11-terms/wezterm: Added 'wayland' USE flag
Signed-off-by: Jonas Frei <freijon <AT> pm.me>
x11-terms/wezterm/wezterm-20220905.ebuild | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/x11-terms/wezterm/wezterm-20220905.ebuild
b/x11-terms/wezterm/wezterm-20220905.ebuild
index 261825b5e..18060effd 100644
--- a/x11-terms/wezterm/wezterm-20220905.ebuild
+++ b/x11-terms/wezterm/wezterm-20220905.ebuild
@@ -562,6 +562,7 @@ SUBMODULES=(
LICENSE="0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions Artistic-2 BSD BSD-2
Boost-1.0 CC0-1.0 GPL-3 ISC LGPL-2.1 MIT MPL-2.0 Unicode-DFS-2016 Unlicense
WTFPL-2 ZLIB"
SLOT="0"
KEYWORDS="~amd64"
+IUSE="wayland"
PATCHES=(
"${FILESDIR}/${P}-vendored-sources.patch"
@@ -569,7 +570,7 @@ PATCHES=(
DEPEND="
dev-libs/openssl
- dev-libs/wayland
+ wayland? ( dev-libs/wayland )
media-libs/fontconfig
media-libs/mesa
sys-apps/dbus
@@ -637,6 +638,17 @@ src_prepare() {
eapply_user
}
+src_configure() {
+ if use wayland; then
+ cargo_src_configure
+ else
+ local myfeatures=(
+ $(usex wayland vendored-fonts '')
+ )
+ cargo_src_configure --no-default-features
+ fi
+}
+
src_install() {
exeinto /usr/bin
doexe target/release/wezterm