From patchwork Tue Jan 3 17:13:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Volk X-Patchwork-Id: 17563 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 B7814C3DA7D for ; Tue, 3 Jan 2023 17:13:52 +0000 (UTC) Received: from mailout11.t-online.de (mailout11.t-online.de [194.25.134.85]) by mx.groups.io with SMTP id smtpd.web11.69447.1672766022236414697 for ; Tue, 03 Jan 2023 09:13:42 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=SPF record not found (domain: t-online.de, ip: 194.25.134.85, mailfrom: f_l_k@t-online.de) Received: from fwd79.dcpf.telekom.de (fwd79.aul.t-online.de [10.223.144.105]) by mailout11.t-online.de (Postfix) with SMTP id 59A3B1C598 for ; Tue, 3 Jan 2023 18:13:40 +0100 (CET) Received: from flk-MS-7C91.fritz.box ([79.219.228.243]) by fwd79.t-online.de with (TLSv1.3:TLS_AES_256_GCM_SHA384 encrypted) esmtp id 1pCkr6-2HFdbN0; Tue, 3 Jan 2023 18:13:40 +0100 From: Markus Volk To: openembedded-devel@lists.openembedded.org Cc: Markus Volk Subject: [meta-gnome][PATCHv2] xdg-desktop-portal-gtk: add recipe Date: Tue, 3 Jan 2023 18:13:27 +0100 Message-Id: <20230103171327.183892-1-f_l_k@t-online.de> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-TOI-EXPURGATEID: 150726::1672766020-F2FE8417-479CDBBA/0/0 CLEAN NORMAL X-TOI-MSGID: 53f54bbc-200c-4ee5-9ea8-6ebd83e7a9a0 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 ; Tue, 03 Jan 2023 17:13:52 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-devel/message/100367 - add it as denpendency for xdg-desktop-portal-gnome Signed-off-by: Markus Volk --- .../xdg-desktop-portal-gnome_43.1.bb | 3 ++ .../xdg-desktop-portal-gtk_1.14.1.bb | 42 +++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 meta-gnome/recipes-support/xdg-desktop-portal/xdg-desktop-portal-gtk_1.14.1.bb diff --git a/meta-gnome/recipes-support/xdg-desktop-portal/xdg-desktop-portal-gnome_43.1.bb b/meta-gnome/recipes-support/xdg-desktop-portal/xdg-desktop-portal-gnome_43.1.bb index a1532c24c..050ce1a04 100644 --- a/meta-gnome/recipes-support/xdg-desktop-portal/xdg-desktop-portal-gnome_43.1.bb +++ b/meta-gnome/recipes-support/xdg-desktop-portal/xdg-desktop-portal-gnome_43.1.bb @@ -7,6 +7,7 @@ DEPENDS = " \ glib-2.0-native \ gtk4\ xdg-desktop-portal \ + xdg-desktop-portal-gtk \ libadwaita \ fontconfig \ gsettings-desktop-schemas \ @@ -14,6 +15,8 @@ DEPENDS = " \ dconf \ " +RDEPENDS:${PN} = "xdg-desktop-portal xdg-desktop-portal-gtk" + inherit meson pkgconfig gsettings features_check REQUIRED_DISTRO_FEATURES = "polkit" diff --git a/meta-gnome/recipes-support/xdg-desktop-portal/xdg-desktop-portal-gtk_1.14.1.bb b/meta-gnome/recipes-support/xdg-desktop-portal/xdg-desktop-portal-gtk_1.14.1.bb new file mode 100644 index 000000000..1e0a90618 --- /dev/null +++ b/meta-gnome/recipes-support/xdg-desktop-portal/xdg-desktop-portal-gtk_1.14.1.bb @@ -0,0 +1,42 @@ +SUMMARY = "A backend implementation for xdg-desktop-portal that is using GTK and various pieces of GNOME infrastructure." +HOMEPAGE = "https://github.com/flatpak/xdg-desktop-portal-gtk" +LICENSE = "LGPL-2.1-only" +LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" + +DEPENDS = " \ + glib-2.0-native \ + gtk+3\ + xdg-desktop-portal \ + libadwaita \ + fontconfig \ + gsettings-desktop-schemas \ + gnome-desktop \ + dconf \ +" + +inherit gettext autotools pkgconfig gsettings features_check + +REQUIRED_DISTRO_FEATURES = "polkit" + +SRC_URI = "git://github.com/flatpak/xdg-desktop-portal-gtk.git;protocol=https;nobranch=1" + +S = "${WORKDIR}/git" +SRCREV = "952005f6a7850a247d286f14838202f506b402b7" + +# gdbus-codegen wants to create files in ${B}/src and fails because of missing directory +do_configure:append() { + mkdir -p ${B}/src +} + +# Note: wlroots has its own implementation for screenshot and screencast, but +# you may want to include the according PACKAGECONFIGS for gnome. +PACKAGECONFIG ?= "wallpaper appchooser lockdown" + +PACKAGECONFIG[screenshot] = "--enable-screenshot,--disable-screenshot,gnome-shell" +PACKAGECONFIG[screencast] = "--enable-screencast,--disable-screencast,mutter" +PACKAGECONFIG[wallpaper] = "--enable-wallpaper,--disable-wallpaper,gnome-desktop" +PACKAGECONFIG[background] = "--enable-background,--disable-background,gnome-shell" +PACKAGECONFIG[appchooser] = "--enable-appchooser,--disable-appchooser" +PACKAGECONFIG[lockdown] = "--enable-lockdown,--disable-lockdown" + +FILES:${PN} += "${systemd_user_unitdir} ${datadir}"