diff mbox series

[meta-gnome,PATCHv2] sushi: add recipe

Message ID 20260924082217.460250-1-f_l_k@t-online.de
State New
Headers show
Series [meta-gnome,PATCHv2] sushi: add recipe | expand

Commit Message

Markus Volk Sept. 24, 2026, 8:22 a.m. UTC
Quick previewer for Nautilus, started over D-Bus when a file is
selected and space is pressed. It is a gjs application, so meson is
told where gjs and env live on the target through a cross file, which
also keeps the build host paths out of the two wrapper scripts.

AI-Generated: Uses Claude Code (Claude Fable 5.1)
Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 meta-gnome/recipes-gnome/sushi/sushi_51.1.bb | 55 ++++++++++++++++++++
 1 file changed, 55 insertions(+)
 create mode 100644 meta-gnome/recipes-gnome/sushi/sushi_51.1.bb
diff mbox series

Patch

diff --git a/meta-gnome/recipes-gnome/sushi/sushi_51.1.bb b/meta-gnome/recipes-gnome/sushi/sushi_51.1.bb
new file mode 100644
index 0000000000..8af34b2f26
--- /dev/null
+++ b/meta-gnome/recipes-gnome/sushi/sushi_51.1.bb
@@ -0,0 +1,55 @@ 
+SUMMARY = "Quick previewer for Nautilus"
+HOMEPAGE = "https://gitlab.gnome.org/GNOME/sushi"
+SECTION = "x11/gnome"
+
+LICENSE = "GPL-2.0-or-later"
+LIC_FILES_CHKSUM = "file://COPYING;md5=8a935b4d9a4fa8aa5978b50a432f833e"
+
+DEPENDS = " \
+    blueprint-compiler-native \
+    freetype \
+    fribidi \
+    gjs \
+    glib-2.0 \
+    glycin \
+    gstreamer1.0 \
+    gstreamer1.0-plugins-base \
+    gtk4 \
+    gtksourceview5 \
+    harfbuzz \
+    libadwaita \
+    papers \
+    webkitgtk \
+"
+
+inherit gnomebase gobject-introspection gettext features_check
+
+GIR_MESON_OPTION = ""
+
+REQUIRED_DISTRO_FEATURES = "opengl gobject-introspection-data"
+
+SRC_URI[archive.sha256sum] = "d326ec69fc004be3a5fc048f7ecf2c8eb828b7d8b682f1e7a2ba01a5e72993e1"
+
+export GI_TYPELIB_PATH = "${STAGING_LIBDIR}/girepository-1.0/"
+
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'wayland x11', d)}"
+PACKAGECONFIG[wayland] = "-Dwayland=enabled,-Dwayland=disabled"
+PACKAGECONFIG[x11] = "-DX11=enabled,-DX11=disabled,virtual/libx11"
+
+EXTRA_OEMESON += "--cross-file=${WORKDIR}/meson-${PN}.cross"
+
+do_write_config:append() {
+    cat >${WORKDIR}/meson-${PN}.cross <<EOF
+[binaries]
+env = '${base_bindir}/env'
+gjs = '${bindir}/gjs'
+EOF
+}
+
+FILES:${PN} += " \
+    ${datadir}/dbus-1 \
+    ${datadir}/metainfo \
+    ${libdir}/sushi \
+"
+
+RDEPENDS:${PN} += "gjs glycin-gtk4 gtksourceview5 libadwaita webkitgtk"