# Copyright 2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 # Autogenerated by pycargoebuild 0.13.3 EAPI=8 LLVM_COMPAT=({15..22}) RUST_MIN_SLOT="1.83.0" inherit cargo git-r3 llvm-r2 desktop EGIT_REPO_URI="https://github.com/wayvr-org/wayvr.git" DESCRIPTION="A lightweight OpenXR/OpenVR overlay for Wayland and X11 desktops" HOMEPAGE="https://github.com/wayvr-org/wayvr.git" REQUIRED_USE=" || ( openvr openxr ) || ( wayland X ) wayland? ( pipewire ) " LICENSE="GPL-3" # Dependent crate licenses LICENSE+=" Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD CC0-1.0 GPL-3 ISC MIT Unicode-DFS-2016 Unlicense " SLOT="0" IUSE="+openvr +openxr +wayland +X +pipewire +osc +wayvrctl" DEPEND=" media-libs/alsa-lib media-libs/shaderc media-libs/fontconfig sys-apps/dbus media-libs/freetype X? ( x11-libs/libxcb x11-libs/libxkbcommon[X] x11-libs/libX11 x11-libs/libXext x11-libs/libXrandr ) openvr? ( =media-libs/openvr-1.23.8-r0 ) openxr? ( media-libs/openxr-loader[X?,wayland?] ) pipewire? ( media-video/pipewire ) wayland? ( x11-libs/libxkbcommon[wayland] ) $(llvm_gen_dep ' llvm-core/clang:${LLVM_SLOT}= ') " BDEPEND=" virtual/pkgconfig " RDEPEND="${DEPEND}" pkg_setup() { export PKG_CONFIG_ALLOW_CROSS=1 export OPENVR_NO_VENDOR=1 rust_pkg_setup } src_unpack() { git-r3_src_unpack cargo_live_src_unpack } src_configure() { local myfeatures=( $(usev openvr) $(usev openxr) $(usev wayland) $(usev X x11) $(usev pipewire) $(usev osc) ) cargo_src_configure --no-default-features --frozen } src_install() { cargo_src_install --path wayvr domenu wayvr/wayvr.desktop doicon wayvr/wayvr.png --size 128 doicon wayvr/wayvr.svg --size scalable if use wayvrctl; then cargo_src_configure --no-default-features cargo_src_install --path wayvrctl fi }