From patchwork Mon Dec 19 20:08:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Volk X-Patchwork-Id: 16939 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D9C2C4332F for ; Mon, 19 Dec 2022 20:09:18 +0000 (UTC) Received: from mailout03.t-online.de (mailout03.t-online.de [194.25.134.81]) by mx.groups.io with SMTP id smtpd.web11.32721.1671480548445779936 for ; Mon, 19 Dec 2022 12:09:08 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=SPF record not found (domain: t-online.de, ip: 194.25.134.81, mailfrom: f_l_k@t-online.de) Received: from fwd84.dcpf.telekom.de (fwd84.aul.t-online.de [10.223.144.110]) by mailout03.t-online.de (Postfix) with SMTP id 7EA217F6D for ; Mon, 19 Dec 2022 21:09:06 +0100 (CET) Received: from flk-MS-7C91.fritz.box ([84.163.36.130]) by fwd84.t-online.de with (TLSv1.3:TLS_AES_256_GCM_SHA384 encrypted) esmtp id 1p7MRd-45CT4b0; Mon, 19 Dec 2022 21:09:05 +0100 From: Markus Volk To: openembedded-devel@lists.openembedded.org Cc: Markus Volk Subject: [meta-gnome][PATCHv2] xdg-desktop-portal: add recipe Date: Mon, 19 Dec 2022 21:08:49 +0100 Message-Id: <20221219200849.3539000-1-f_l_k@t-online.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-TOI-EXPURGATEID: 150726::1671480545-4CC58B8C-CA7F77A9/0/0 CLEAN NORMAL X-TOI-MSGID: 9fc275b1-91f5-474b-942d-4d6be3f55fc6 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 19 Dec 2022 20:09:18 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/100111 Signed-off-by: Markus Volk --- ...p-portal-pc-in-add-pc_sysrootdir-dir.patch | 25 +++++++++++ .../xdg-desktop-portal_1.16.0.bb | 41 +++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 meta-oe/recipes-support/xdg-desktop-portal/xdg-desktop-portal/0001-xdg-desktop-portal-pc-in-add-pc_sysrootdir-dir.patch create mode 100644 meta-oe/recipes-support/xdg-desktop-portal/xdg-desktop-portal_1.16.0.bb diff --git a/meta-oe/recipes-support/xdg-desktop-portal/xdg-desktop-portal/0001-xdg-desktop-portal-pc-in-add-pc_sysrootdir-dir.patch b/meta-oe/recipes-support/xdg-desktop-portal/xdg-desktop-portal/0001-xdg-desktop-portal-pc-in-add-pc_sysrootdir-dir.patch new file mode 100644 index 000000000..4b80c6e9f --- /dev/null +++ b/meta-oe/recipes-support/xdg-desktop-portal/xdg-desktop-portal/0001-xdg-desktop-portal-pc-in-add-pc_sysrootdir-dir.patch @@ -0,0 +1,25 @@ +From 7727dbfef4dd7ced3958ae9ada59a8899976b12d Mon Sep 17 00:00:00 2001 +From: Markus Volk +Date: Mon, 12 Dec 2022 18:40:31 +0100 +Subject: [PATCH] xdg-desktop-portal.pc.in: add pc_sysrootdir dir + +--- + xdg-desktop-portal.pc.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/xdg-desktop-portal.pc.in b/xdg-desktop-portal.pc.in +index 585c0c8..15b5817 100644 +--- a/xdg-desktop-portal.pc.in ++++ b/xdg-desktop-portal.pc.in +@@ -2,7 +2,7 @@ prefix=@prefix@ + datarootdir=@datarootdir@ + datadir=@datadir@ + +-interfaces_dir=${datadir}/dbus-1/interfaces/ ++interfaces_dir=${pc_sysrootdir}${datadir}/dbus-1/interfaces + + Name: xdg-desktop-portal + Description: Desktop integration portal +-- +2.34.1 + diff --git a/meta-oe/recipes-support/xdg-desktop-portal/xdg-desktop-portal_1.16.0.bb b/meta-oe/recipes-support/xdg-desktop-portal/xdg-desktop-portal_1.16.0.bb new file mode 100644 index 000000000..c946d8606 --- /dev/null +++ b/meta-oe/recipes-support/xdg-desktop-portal/xdg-desktop-portal_1.16.0.bb @@ -0,0 +1,41 @@ +SUMMARY = "A portal frontend service for Flatpak and possibly other desktop containment frameworks." +HOMEPAGE = "https://github.com/flatpak/xdg-desktop-portal" +LICENSE = "LGPL-2.1-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" + +REQUIRED_DISTRO_FEATURES = "polkit" + +DEPENDS = " \ + json-glib \ + glib-2.0 \ + libportal \ + geoclue \ + pipewire \ + dbus-native \ + fuse3 \ + bubblewrap-native \ + xmlto-native \ + flatpak \ + python3-dbus-native \ +" + +PORTAL_BACKENDS ?= " \ + ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'xdg-desktop-portal-wlr', '', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'gtk', 'xdg-desktop-portal-gnome', '', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'gtk+3', 'xdg-desktop-portal-gnome', '', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'gtk4', 'xdg-desktop-portal-gnome', '', d)} \ +" + +RDEPENDS:${PN} = "bubblewrap ${PORTAL_BACKENDS}" + +inherit meson pkgconfig python3native + +SRC_URI = " \ + git://github.com/flatpak/xdg-desktop-portal.git;protocol=https;branch=main \ + file://0001-xdg-desktop-portal-pc-in-add-pc_sysrootdir-dir.patch \ +" + +S = "${WORKDIR}/git" +SRCREV = "88af6c8ca4106fcf70925355350a669848e9fd5a" + +FILES:${PN} += "${libdir}/systemd ${datadir}/dbus-1"