mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-09-27 00:30:20 +00:00
sushi: add recipe
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> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user