Skip to content

Commit

Permalink
sys-apps/xdg-desktop-portal: Add USE screencast
Browse files Browse the repository at this point in the history
Bug: https://bugs.gentoo.org/686336
Package-Manager: Portage-2.3.68, Repoman-2.3.16
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Jul 7, 2019
1 parent 1aafb5a commit 670fb5a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions sys-apps/xdg-desktop-portal/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
<email>[email protected]</email>
<name>Gentoo KDE Project</name>
</maintainer>
<use>
<flag name="screencast">Enable screencast portal using <pkg>media-video/pipewire</pkg></flag>
</use>
</pkgmetadata>
5 changes: 3 additions & 2 deletions sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.4.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SRC_URI="https://github.com/flatpak/${PN}/releases/download/${PV}/${P}.tar.xz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="doc geolocation"
IUSE="doc geolocation screencast"

BDEPEND="
dev-util/gdbus-codegen
Expand All @@ -27,15 +27,16 @@ DEPEND="
dev-libs/glib:2[dbus]
sys-fs/fuse:0
geolocation? ( >=app-misc/geoclue-2.5.3:2.0 )
screencast? ( media-video/pipewire )
"
RDEPEND="${DEPEND}"

src_configure() {
local myeconfargs=(
--disable-pipewire
--with-systemduserunitdir="$(systemd_get_userunitdir)"
$(use_enable doc docbook-docs)
$(use_enable geolocation geoclue)
$(use_enable screencast pipewire)
)
econf "${myeconfargs[@]}"
}

0 comments on commit 670fb5a

Please sign in to comment.