commit:     af32d8f6b04f4b1c62b0549d0c73b8fb4b681a34
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 31 15:40:44 2020 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Fri Jul 31 15:41:07 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af32d8f6

sys-apps/xdg-desktop-portal-gtk: new package

Needed for example for screensharing support in GTK+ applications
using pipewire on GNOME desktop.

Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 sys-apps/xdg-desktop-portal-gtk/Manifest           |  1 +
 sys-apps/xdg-desktop-portal-gtk/metadata.xml       |  8 ++++
 .../xdg-desktop-portal-gtk-1.7.1_pre.ebuild        | 47 ++++++++++++++++++++++
 3 files changed, 56 insertions(+)

diff --git a/sys-apps/xdg-desktop-portal-gtk/Manifest 
b/sys-apps/xdg-desktop-portal-gtk/Manifest
new file mode 100644
index 00000000000..acbbf6ecac3
--- /dev/null
+++ b/sys-apps/xdg-desktop-portal-gtk/Manifest
@@ -0,0 +1 @@
+DIST xdg-desktop-portal-gtk-1.7.1.tar.xz 369932 BLAKE2B 
510652a0025fc27d447a0482552a0ae9c8e08f0471166466356043c026c922b1b0779053bcc7902f041f93ccd71e2e71882594eee7f4dda8cea295e419192941
 SHA512 
2a2326559a4ed7e44ffddc1a6881c25f14822465f5660bc806e7d8a120d66268e2987329f4bc9f7821329eea41ee96b15a39c5f7ac805a1e04d0604a88b31c08

diff --git a/sys-apps/xdg-desktop-portal-gtk/metadata.xml 
b/sys-apps/xdg-desktop-portal-gtk/metadata.xml
new file mode 100644
index 00000000000..996e7cacd21
--- /dev/null
+++ b/sys-apps/xdg-desktop-portal-gtk/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Gentoo GNOME Desktop</name>
+       </maintainer>
+</pkgmetadata>

diff --git 
a/sys-apps/xdg-desktop-portal-gtk/xdg-desktop-portal-gtk-1.7.1_pre.ebuild 
b/sys-apps/xdg-desktop-portal-gtk/xdg-desktop-portal-gtk-1.7.1_pre.ebuild
new file mode 100644
index 00000000000..ab551f0f5df
--- /dev/null
+++ b/sys-apps/xdg-desktop-portal-gtk/xdg-desktop-portal-gtk-1.7.1_pre.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools systemd
+
+MY_PV="${PV//_pre*}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="portal backend implementation that is using GTK+ and various 
pieces of GNOME"
+HOMEPAGE="https://flatpak.org/ 
https://github.com/flatpak/xdg-desktop-portal-gtk";
+SRC_URI="https://github.com/flatpak/${PN}/releases/download/${MY_PV}/${MY_P}.tar.xz";
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS=""
+IUSE="wayland X"
+
+BDEPEND="
+       sys-devel/gettext
+       virtual/pkgconfig
+"
+
+DEPEND="
+       dev-libs/glib:2
+       dev-util/gdbus-codegen
+       gnome-base/gnome-desktop:3=
+       media-libs/fontconfig
+       sys-apps/dbus
+       >=sys-apps/xdg-desktop-portal-1.7
+       x11-libs/cairo[X?]
+       x11-libs/gdk-pixbuf:2
+       x11-libs/gtk+:3[wayland?,X?]
+"
+
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_configure() {
+       local myeconfargs=(
+               --with-systemduserunitdir="$(systemd_get_userunitdir)"
+       )
+
+       econf "${myeconfargs[@]}"
+}

Reply via email to