x11-misc/xwaylandvideobridge: new package

This commit is contained in:
oatiz 2023-08-15 01:07:16 +08:00 committed by 梁永祥
parent fbe8bc485a
commit c4969e5d62
4 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST xwaylandvideobridge-20230814.tar.bz2 30845 BLAKE2B 2c62fc92051c704313cd8be510f981c3e1e3a9cef8548b421c14b146b7be85fd0643a28a063c504a51de6be7954c930560902c109e4c9e3bde69cf50a1f24b47 SHA512 d699d44f4886008ca6f1441ae192bc3b93773f577a1565da81679fe8b3f53314c2b429512b3b8cc88f8b966829a89938adcf3406dfe4ddba29a1a4e451fb396e

View File

@ -0,0 +1,13 @@
diff --git a/src/xwaylandvideobridge.cpp b/src/xwaylandvideobridge.cpp
index 7ec7d6a..d0c3bed 100644
--- a/src/xwaylandvideobridge.cpp
+++ b/src/xwaylandvideobridge.cpp
@@ -125,7 +125,7 @@ void XwaylandVideoBridge::startStream(const QDBusObjectPath& path)
{ QLatin1String("handle_token"), m_handleToken },
{ QLatin1String("types"), iface->availableSourceTypes() },
{ QLatin1String("multiple"), false }, //for now?
- { QLatin1String("cursor_mode"), uint(Metadata) }
+ { QLatin1String("cursor_mode"), uint(Embedded) }
};
auto reply = iface->SelectSources(m_path, sourcesParameters);

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>lyraile</name>
<email>iamoatiz@gmail.com</email>
</maintainer>
<longdescription>
A tool to make it easy to stream wayland windows and screens to Xwayland applicatons that don't have native pipewire support. Patched to use cursor mode 2.
</longdescription>
<upstream>
<remote-id type="kde-invent">system/xwaylandvideobridge</remote-id>
</upstream>
</pkgmetadata>

View File

@ -0,0 +1,44 @@
#Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit vcs-snapshot cmake
DESCRIPTION="Utility to allow streaming Wayland windows to X applications"
HOMEPAGE="https://invent.kde.org/system/xwaylandvideobridge"
EGIT_COMMIT="16091a997d40eb9e5a46f3f0eecceff8fe348c87"
SRC_URI="https://invent.kde.org/system/${PN}/-/archive/${EGIT_COMMIT}/${PN}-${EGIT_COMMIT}.tar.bz2 -> ${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
RESTRICT="mirror"
KEYWORDS="~amd64"
DEPEND="
dev-qt/qtcore:5
dev-qt/qtdeclarative:5
dev-qt/qtx11extras:5
kde-frameworks/extra-cmake-modules:5
kde-frameworks/kcoreaddons:5
kde-frameworks/kwidgetsaddons:5
kde-frameworks/kwindowsystem:5
kde-frameworks/knotifications:5
kde-frameworks/ki18n:5
kde-plasma/kpipewire:5
x11-libs/libxcb
"
BDEPEND="
${DEPEND}
dev-util/ninja
"
RDEPEND="
${DEPEND}
x11-themes/hicolor-icon-theme
"
PATCHES=(
"${FILESDIR}/cursor-mode.patch"
)