x11-terms/wezterm: Added 'wayland' USE flag

Signed-off-by: Jonas Frei <freijon@pm.me>
This commit is contained in:
Jonas Frei
2022-10-18 20:43:40 +02:00
parent d06c08aa76
commit 9c9c97bad1

View File

@@ -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