commit:     10481620ee0868ef645eabfc8f45e14efd4faef8
Author:     Guillermo Joandet <gjoandet <AT> gmail <DOT> com>
AuthorDate: Sat Jun  1 15:42:14 2024 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sun Jun 16 07:18:04 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10481620

gnome-extra/gnome-software: Add snap USE flag

Signed-off-by: Guillermo Joandet <gjoandet <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/35304
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>

 gnome-extra/gnome-software/gnome-software-46.2.ebuild | 8 ++++++--
 gnome-extra/gnome-software/metadata.xml               | 1 +
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gnome-extra/gnome-software/gnome-software-46.2.ebuild 
b/gnome-extra/gnome-software/gnome-software-46.2.ebuild
index 345c03f9e746..fc51a767d046 100644
--- a/gnome-extra/gnome-software/gnome-software-46.2.ebuild
+++ b/gnome-extra/gnome-software/gnome-software-46.2.ebuild
@@ -11,7 +11,7 @@ HOMEPAGE="https://apps.gnome.org/Software";
 LICENSE="GPL-2+"
 SLOT="0"
 KEYWORDS="~amd64 ~arm64 ~loong ~x86"
-IUSE="flatpak +firmware gnome gtk-doc sysprof udev test"
+IUSE="flatpak +firmware gnome gtk-doc sysprof udev snap test"
 
 RDEPEND="
        >=dev-libs/appstream-0.14.0:0=
@@ -30,6 +30,10 @@ RDEPEND="
                >=sys-apps/flatpak-1.14.0-r1
                dev-util/ostree
        )
+       snap? (
+               app-containers/snapd
+               sys-libs/snapd-glib:=
+       )
        udev? ( dev-libs/libgudev )
        >=gnome-base/gsettings-desktop-schemas-3.11.5
 "
@@ -74,7 +78,7 @@ src_configure() {
                -Dhardcoded_proprietary_webapps=true
                $(meson_use udev gudev)
                -Dapt=false
-               -Dsnap=false
+               $(meson_use snap)
                -Dexternal_appstream=false
                $(meson_use gtk-doc gtk_doc)
                -Dhardcoded_curated=true

diff --git a/gnome-extra/gnome-software/metadata.xml 
b/gnome-extra/gnome-software/metadata.xml
index d5cbc23b3fc3..4b4d2f7bed41 100644
--- a/gnome-extra/gnome-software/metadata.xml
+++ b/gnome-extra/gnome-software/metadata.xml
@@ -8,6 +8,7 @@
   <use>
     <flag name="firmware">Enable firmware update support through 
<pkg>sys-apps/fwupd</pkg></flag>
     <flag name="flatpak">Enable support for flatpak applications using 
<pkg>sys-apps/flatpak</pkg></flag>
+    <flag name="snap">Enable support for snap packages using 
<pkg>app-containers/snapd</pkg></flag>
     <flag name="sysprof">Enable profiling data capture support using 
<pkg>dev-util/sysprof-capture</pkg></flag>
   </use>
   <upstream>

Reply via email to