[gnome-build-meta/valentindavid/snapd: 216/217] gnome-software: Add support for snapd
- From: Valentin David <valentindavid src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/valentindavid/snapd: 216/217] gnome-software: Add support for snapd
- Date: Fri, 18 Feb 2022 12:14:19 +0000 (UTC)
commit 5a33906949e762459d20265d2679a7a9f1a1a784
Author: Valentin David <me valentindavid com>
Date: Wed Oct 13 15:20:21 2021 +0200
gnome-software: Add support for snapd
The plugin is only installed in the development tree.
elements/core-deps/snapd-glib.bst | 19 ++++++++++++
elements/core/gnome-software-all.bst | 58 +++++++++++++++++++++++++++++++++++
elements/core/gnome-software-snap.bst | 13 ++++++++
elements/core/gnome-software.bst | 30 +++---------------
elements/vm/deps-devel.bst | 1 +
5 files changed, 96 insertions(+), 25 deletions(-)
---
diff --git a/elements/core-deps/snapd-glib.bst b/elements/core-deps/snapd-glib.bst
new file mode 100644
index 000000000..e9dfad15e
--- /dev/null
+++ b/elements/core-deps/snapd-glib.bst
@@ -0,0 +1,19 @@
+kind: meson
+
+sources:
+- kind: tar
+ url: github:snapcore/snapd-glib/releases/download/1.60/snapd-glib-1.60.tar.xz
+
+build-depends:
+- sdk/gobject-introspection.bst
+- sdk/gtk-doc.bst
+- freedesktop-sdk.bst:public-stacks/buildsystem-meson.bst
+
+depends:
+- sdk/json-glib.bst
+- sdk/libsoup-2.4.bst
+- sdk/vala.bst
+
+variables:
+ meson-local: >-
+ -Dqt-bindings=false
diff --git a/elements/core/gnome-software-all.bst b/elements/core/gnome-software-all.bst
new file mode 100644
index 000000000..ede5ddc34
--- /dev/null
+++ b/elements/core/gnome-software-all.bst
@@ -0,0 +1,58 @@
+kind: meson
+
+sources:
+- kind: git_tag
+ url: gnome:gnome-software.git
+ track: main
+
+build-depends:
+- sdk/gtk-doc.bst
+- sdk/sysprof-minimal.bst
+- freedesktop-sdk.bst:public-stacks/buildsystem-meson.bst
+
+# Runtime depenencies
+- core-deps/appstream.bst
+- core-deps/eos-updater.bst
+- core-deps/flatpak.bst
+- core-deps/fwupd.bst
+- core-deps/gnome-online-accounts.bst
+- core-deps/gspell.bst
+- core-deps/liboauth.bst
+- core-deps/malcontent.bst
+- core-deps/snapd-glib.bst
+- core-deps/xmlb.bst
+- core/gnome-desktop.bst
+- sdk/adwaita-icon-theme.bst
+- sdk/glib.bst
+- sdk/gsettings-desktop-schemas.bst
+- sdk/gtk+-3.bst
+- sdk/libhandy.bst
+- sdk/libsecret.bst
+- sdk/libsoup-2.4.bst
+- freedesktop-sdk.bst:components/libgudev.bst
+- freedesktop-sdk.bst:components/polkit.bst
+- freedesktop-sdk.bst:bootstrap-import.bst
+
+variables:
+ meson-local: >-
+ -Dfwupd=true
+ -Dvalgrind=false
+ -Dpolkit=true
+ -Dflatpak=true
+ -Deos_updater=true
+ -Dpackagekit=false
+ -Dsoup2=true
+ -Dsnap=true
+
+config:
+ configure-commands:
+ (<):
+ #FIXME: fix eos-updater and gnome-software upstream to use the "osname"
+ - |
+ sed -i 's/Endless OS/GNOME OS/' plugins/eos-updater/gs-plugin-eos-updater.c po/*.po
+
+public:
+ bst:
+ split-rules:
+ snap-plugin:
+ - "%{libdir}/gnome-software/plugins-*/libgs_plugin_snap.so"
diff --git a/elements/core/gnome-software-snap.bst b/elements/core/gnome-software-snap.bst
new file mode 100644
index 000000000..fa8b84dde
--- /dev/null
+++ b/elements/core/gnome-software-snap.bst
@@ -0,0 +1,13 @@
+kind: filter
+
+build-depends:
+- core/gnome-software-all.bst
+
+runtime-depends:
+- core/gnome-software.bst
+- core-deps/snapd-glib.bst
+
+config:
+ include-orphans: false
+ include:
+ - snap-plugin
diff --git a/elements/core/gnome-software.bst b/elements/core/gnome-software.bst
index 9219b8ce8..b8c5eeeb0 100644
--- a/elements/core/gnome-software.bst
+++ b/elements/core/gnome-software.bst
@@ -1,16 +1,9 @@
-kind: meson
-
-sources:
-- kind: git_tag
- url: gnome:gnome-software.git
- track: main
+kind: filter
build-depends:
-- sdk/gtk-doc.bst
-- sdk/sysprof-minimal.bst
-- freedesktop-sdk.bst:public-stacks/buildsystem-meson.bst
+- core/gnome-software-all.bst
-depends:
+runtime-depends:
- core-deps/appstream.bst
- core-deps/eos-updater.bst
- core-deps/flatpak.bst
@@ -32,19 +25,6 @@ depends:
- freedesktop-sdk.bst:components/polkit.bst
- freedesktop-sdk.bst:bootstrap-import.bst
-variables:
- meson-local: >-
- -Dfwupd=true
- -Dvalgrind=false
- -Dpolkit=true
- -Dflatpak=true
- -Deos_updater=true
- -Dpackagekit=false
- -Dsoup2=true
-
config:
- configure-commands:
- (<):
- #FIXME: fix eos-updater and gnome-software upstream to use the "osname"
- - |
- sed -i 's/Endless OS/GNOME OS/' plugins/eos-updater/gs-plugin-eos-updater.c po/*.po
+ exclude:
+ - snap-plugin
diff --git a/elements/vm/deps-devel.bst b/elements/vm/deps-devel.bst
index fd3f6fa67..483c78faa 100644
--- a/elements/vm/deps-devel.bst
+++ b/elements/vm/deps-devel.bst
@@ -2,6 +2,7 @@ kind: stack
depends:
- sdk.bst
+- core/gnome-software-snap.bst
- core/meta-gnome-core-developer-tools.bst
- vm/buildstream/bst-external.bst
- vm/buildstream/buildstream.bst
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]