summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-07-07 17:33:05 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2019-07-07 17:51:03 +0200
commit689f851fdd7ed3b3de87d790b5fe45765cf92442 (patch)
tree2d6accc123354920afca5c2df764666fc8316395 /kde-plasma
parentsys-apps/xdg-desktop-portal: Add USE screencast (diff)
downloadgentoo-689f851fdd7ed3b3de87d790b5fe45765cf92442.tar.gz
gentoo-689f851fdd7ed3b3de87d790b5fe45765cf92442.tar.bz2
gentoo-689f851fdd7ed3b3de87d790b5fe45765cf92442.zip
kde-plasma/xdg-desktop-portal-kde: Add USE screencast
Bug: https://bugs.gentoo.org/686336 Package-Manager: Portage-2.3.68, Repoman-2.3.16 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
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
+}