summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'kde-plasma')
-rw-r--r--kde-plasma/xdg-desktop-portal-kde/metadata.xml3
-rw-r--r--kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.16.2.ebuild26
2 files changed, 22 insertions, 7 deletions
diff --git a/kde-plasma/xdg-desktop-portal-kde/metadata.xml b/kde-plasma/xdg-desktop-portal-kde/metadata.xml
index 2fdbf33d963d..bcfc8e0c39c0 100644
--- a/kde-plasma/xdg-desktop-portal-kde/metadata.xml
+++ b/kde-plasma/xdg-desktop-portal-kde/metadata.xml
@@ -5,4 +5,7 @@
<email>kde@gentoo.org</email>
<name>Gentoo KDE Project</name>
</maintainer>
+ <use>
+ <flag name="screencast">Enable screencast portal using <pkg>media-video/pipewire</pkg></flag>
+ </use>
</pkgmetadata>
diff --git a/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.16.2.ebuild b/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.16.2.ebuild
index b36da6ccfc53..0f81e42f3e0b 100644
--- a/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.16.2.ebuild
+++ b/kde-plasma/xdg-desktop-portal-kde/xdg-desktop-portal-kde-5.16.2.ebuild
@@ -9,13 +9,8 @@ inherit kde5
DESCRIPTION="Backend implementation for xdg-desktop-portal that is using Qt/KDE Frameworks"
LICENSE="LGPL-2+"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
-IUSE=""
+IUSE="screencast"
-# TODO: Needed for screencast portal
-# dev-libs/glib:2
-# media-libs/libepoxy
-# media-libs/mesa[gbm]
-# not packaged: PipeWire
COMMON_DEPEND="
$(add_frameworks_dep kcoreaddons)
$(add_frameworks_dep ki18n)
@@ -26,11 +21,28 @@ COMMON_DEPEND="
$(add_qt_dep qtgui)
$(add_qt_dep qtprintsupport 'cups')
$(add_qt_dep qtwidgets)
+ screencast? (
+ dev-libs/glib:2
+ media-libs/libepoxy
+ media-libs/mesa[gbm]
+ media-video/pipewire
+ )
"
DEPEND="${COMMON_DEPEND}
$(add_frameworks_dep kwayland)
$(add_qt_dep qtconcurrent)
"
RDEPEND="${COMMON_DEPEND}
- sys-apps/xdg-desktop-portal
+ screencast? ( sys-apps/xdg-desktop-portal[screencast] )
+ !screencast? ( sys-apps/xdg-desktop-portal )
"
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_find_package screencast GLIB2)
+ $(cmake-utils_use_find_package screencast PipeWire)
+ $(cmake-utils_use_find_package screencast GBM)
+ $(cmake-utils_use_find_package screencast Epoxy)
+ )
+ kde5_src_configure
+}