app-misc/wlx-overlay-s: add 9999

Signed-off-by: Sam Wilson <sam@binarycake.ca>
This commit is contained in:
Sam Wilson 2025-02-10 09:52:36 -05:00
parent 32e9d5f8ea
commit b58178406a
No known key found for this signature in database
GPG Key ID: 3BCAC1786B00E477
4 changed files with 159 additions and 0 deletions

View File

@ -0,0 +1,41 @@
diff --git a/wlx-overlay-s-9999/Cargo.lock b/wlx-overlay-s-9999/Cargo.lock
index 1662153..d7a76af 100644
--- a/wlx-overlay-s-9999/Cargo.lock
+++ b/wlx-overlay-s-9999/Cargo.lock
@@ -3025,7 +3025,7 @@ dependencies = [
[[package]]
name = "ovr_overlay"
version = "0.0.0"
-source = "git+https://github.com/galister/ovr_overlay_oyasumi#bd03e5bf886f84d438aad95da5c5cc28725013a8"
+source = "git+https://github.com/galister/ovr_overlay_oyasumi?rev=5b5b8bbfdd6d9059f79b2847d8f657e093f2b120#5b5b8bbfdd6d9059f79b2847d8f657e093f2b120"
dependencies = [
"byteorder",
"derive_more",
@@ -3040,12 +3040,13 @@ dependencies = [
[[package]]
name = "ovr_overlay_sys"
version = "0.0.0"
-source = "git+https://github.com/galister/ovr_overlay_oyasumi#bd03e5bf886f84d438aad95da5c5cc28725013a8"
+source = "git+https://github.com/galister/ovr_overlay_oyasumi?rev=5b5b8bbfdd6d9059f79b2847d8f657e093f2b120#5b5b8bbfdd6d9059f79b2847d8f657e093f2b120"
dependencies = [
"autocxx",
"autocxx-build",
"cxx",
"normpath",
+ "pkg-config",
]
[[package]]
diff --git a/wlx-overlay-s-9999/Cargo.toml b/wlx-overlay-s-9999/Cargo.toml
index f1d8e91..73a08ea 100644
--- a/wlx-overlay-s-9999/Cargo.toml
+++ b/wlx-overlay-s-9999/Cargo.toml
@@ -39,7 +39,7 @@ openxr = { git = "https://github.com/galister/openxrs", rev = "af4a55d", feature
ovr_overlay = { features = [
"ovr_input",
"ovr_system",
-], git = "https://github.com/galister/ovr_overlay_oyasumi", optional = true }
+], git = "https://github.com/galister/ovr_overlay_oyasumi", rev = "5b5b8bbfdd6d9059f79b2847d8f657e093f2b120", optional = true }
regex = "1.10.4"
rodio = { version = "0.20.1", default-features = false, features = [
"wav",

View File

@ -0,0 +1,13 @@
diff --git a/src/overlays/screen.rs b/src/overlays/screen.rs
index e4a6c3d..c092b29 100644
--- a/src/overlays/screen.rs
+++ b/src/overlays/screen.rs
@@ -33,7 +33,7 @@ use {
};
#[cfg(all(feature = "x11", feature = "pipewire"))]
-use wlx_capture::pipewire::PipewireStream;
+use {crate::config::AStrMapExt, wlx_capture::pipewire::PipewireStream};
#[cfg(feature = "wayland")]
use {

View File

@ -10,6 +10,7 @@
<flag name="openxr">Support Khronos Group's OpenXR API.</flag>
<flag name="osc">Support VRChat's Open Sound Control protocol.</flag>
<flag name="pipewire">Enable pipewire support for desktop capture.</flag>
<flag name="wayvr">Enable WayVR, a Wayland server for a VR environment.</flag>
</use>
<upstream>
<remote-id type="github">galister/wlx-overlay-s</remote-id>

View File

@ -0,0 +1,104 @@
# 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..19})
RUST_MIN_SLOT="1.83.0"
inherit cargo git-r3 llvm-r2 desktop
EGIT_REPO_URI="https://github.com/galister/wlx-overlay-s.git"
DESCRIPTION="A lightweight OpenXR/OpenVR overlay for Wayland and X11 desktops"
HOMEPAGE="https://github.com/galister/wlx-overlay-s"
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 +wayvr"
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]
)
wayvr? (
dev-libs/wayland
media-libs/libglvnd
)
$(llvm_gen_dep '
llvm-core/clang:${LLVM_SLOT}=
')
"
BDEPEND="
virtual/pkgconfig
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${P}-x11-pipewire.patch"
)
pkg_setup() {
export PKG_CONFIG_ALLOW_CROSS=1
export OPENVR_NO_VENDOR=1
rust_pkg_setup
}
src_unpack() {
git-r3_src_unpack
eapply "${FILESDIR}/${P}-devendor-openvr.patch"
cargo_live_src_unpack
}
src_configure() {
local myfeatures=(
$(usev openvr)
$(usev openxr)
$(usev wayland)
$(usev X x11)
$(usev pipewire)
$(usev osc)
$(usev wayvr)
)
cargo_src_configure --no-default-features --frozen
}
src_install() {
doicon --size 256 wlx-overlay-s.png
doicon --size scalable wlx-overlay-s.svg
domenu wlx-overlay-s.desktop
cargo_src_install
}