diff options
| -rw-r--r-- | meta-oe/recipes-support/appstream/appstream/0001-fix-crosscompile.patch | 43 | ||||
| -rw-r--r-- | meta-oe/recipes-support/appstream/appstream_0.15.5.bb | 44 | 
2 files changed, 87 insertions, 0 deletions
| diff --git a/meta-oe/recipes-support/appstream/appstream/0001-fix-crosscompile.patch b/meta-oe/recipes-support/appstream/appstream/0001-fix-crosscompile.patch new file mode 100644 index 0000000000..fe8dcff910 --- /dev/null +++ b/meta-oe/recipes-support/appstream/appstream/0001-fix-crosscompile.patch | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | From 6ab00a4279823829a9b82dc9e4d055da4de88c6e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Markus Volk <f_l_k@t-online.de> | ||
| 3 | Date: Mon, 12 Dec 2022 15:42:42 +0100 | ||
| 4 | Subject: [PATCH] fix crosscompile | ||
| 5 | |||
| 6 | Signed-off-by: Markus Volk <f_l_k@t-online.de> | ||
| 7 | |||
| 8 | Upstream-Status: Inappropriate [oe-specific] | ||
| 9 | --- | ||
| 10 | data/meson.build | 2 +- | ||
| 11 | meson.build | 2 +- | ||
| 12 | tools/meson.build | 9 +++++++++ | ||
| 13 | 3 files changed, 11 insertions(+), 2 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/data/meson.build b/data/meson.build | ||
| 16 | index aea0cb25..1a085fc9 100644 | ||
| 17 | --- a/data/meson.build | ||
| 18 | +++ b/data/meson.build | ||
| 19 | @@ -14,7 +14,7 @@ install_data('its/metainfo.loc', | ||
| 20 | metainfo_with_relinfo = custom_target('gen-output', | ||
| 21 | input : ['../NEWS', 'org.freedesktop.appstream.cli.metainfo.xml'], | ||
| 22 | output : ['nol10n_withrelinfo_org.freedesktop.appstream.cli.metainfo.xml'], | ||
| 23 | - command : [ascli_exe, 'news-to-metainfo', '--limit=6', '@INPUT0@', '@INPUT1@', '@OUTPUT@'] | ||
| 24 | + command : ['appstreamcli', 'news-to-metainfo', '--limit=6', '@INPUT0@', '@INPUT1@', '@OUTPUT@'] | ||
| 25 | ) | ||
| 26 | |||
| 27 | metainfo_i18n = i18n.itstool_join( | ||
| 28 | diff --git a/meson.build b/meson.build | ||
| 29 | index fd0e3373..2f273ada 100644 | ||
| 30 | --- a/meson.build | ||
| 31 | +++ b/meson.build | ||
| 32 | @@ -124,7 +124,7 @@ if get_option ('gir') | ||
| 33 | dependency('gobject-introspection-1.0', version: '>=1.56') | ||
| 34 | endif | ||
| 35 | |||
| 36 | -stemmer_inc_dirs = include_directories(['/usr/include']) | ||
| 37 | +stemmer_inc_dirs = include_directories(['']) | ||
| 38 | if get_option('stemming') | ||
| 39 | stemmer_lib = cc.find_library('stemmer', required: true) | ||
| 40 | if not cc.has_header('libstemmer.h') | ||
| 41 | -- | ||
| 42 | 2.34.1 | ||
| 43 | |||
| diff --git a/meta-oe/recipes-support/appstream/appstream_0.15.5.bb b/meta-oe/recipes-support/appstream/appstream_0.15.5.bb new file mode 100644 index 0000000000..e8637b5eef --- /dev/null +++ b/meta-oe/recipes-support/appstream/appstream_0.15.5.bb | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | SUMMARY = "AppStream is a collaborative effort for making machine-readable software metadata easily available." | ||
| 2 | HOMEPAGE = "https://github.com/ximion/appstream" | ||
| 3 | LICENSE = "LGPL-2.1-only" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=435ed639f84d4585d93824e7da3d85da" | ||
| 5 | |||
| 6 | DEPENDS = " \ | ||
| 7 | appstream-native \ | ||
| 8 | curl-native \ | ||
| 9 | curl \ | ||
| 10 | docbook-xml-dtd4-native \ | ||
| 11 | gperf-native \ | ||
| 12 | glib-2.0 \ | ||
| 13 | libyaml \ | ||
| 14 | libstemmer \ | ||
| 15 | libxml2 \ | ||
| 16 | libxmlb \ | ||
| 17 | libxslt-native \ | ||
| 18 | itstool-native \ | ||
| 19 | docbook-xsl-stylesheets-native \ | ||
| 20 | python3-pygments-native \ | ||
| 21 | " | ||
| 22 | |||
| 23 | inherit meson gobject-introspection gettext gtk-doc pkgconfig vala | ||
| 24 | |||
| 25 | GIR_MESON_OPTION = "" | ||
| 26 | |||
| 27 | SRC_URI = "https://www.freedesktop.org/software/appstream/releases/AppStream-${PV}.tar.xz" | ||
| 28 | SRC_URI:append:class-target = " file://0001-fix-crosscompile.patch" | ||
| 29 | SRC_URI[sha256sum] = "cb15ed62cc2729683879a2dbf98c0a3267ea2b4d57bba6bc55e70a25500e04c2" | ||
| 30 | |||
| 31 | S = "${WORKDIR}/AppStream-${PV}" | ||
| 32 | |||
| 33 | FILES:${PN} += "${datadir}" | ||
| 34 | |||
| 35 | EXTRA_OEMESON:class-target += "--cross-file=${WORKDIR}/meson-${PN}.cross" | ||
| 36 | |||
| 37 | do_write_config:append:class-target() { | ||
| 38 | cat >${WORKDIR}/meson-${PN}.cross <<EOF | ||
| 39 | [binaries] | ||
| 40 | appstreamcli = '${STAGING_BINDIR_NATIVE}/appstreamcli' | ||
| 41 | EOF | ||
| 42 | } | ||
| 43 | |||
| 44 | BBCLASSEXTEND = "native" | ||
