appstream: import recipe from Yocto master
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
From 6ab00a4279823829a9b82dc9e4d055da4de88c6e Mon Sep 17 00:00:00 2001
|
||||
From: Markus Volk <f_l_k@t-online.de>
|
||||
Date: Mon, 12 Dec 2022 15:42:42 +0100
|
||||
Subject: [PATCH] remove hardcoded path
|
||||
|
||||
Signed-off-by: Markus Volk <f_l_k@t-online.de>
|
||||
|
||||
Dont include hardcoded path. This fixes:
|
||||
| cc1: error: include location "/usr/include" is unsafe for cross-compilation [-Werror=poison-system-directories]
|
||||
|
||||
Upstream-Status: Inappropriate [oe-specific]
|
||||
---
|
||||
meson.build | 2 +-
|
||||
1 files changed, 1 insertions(+), 1 deletions(-)
|
||||
|
||||
diff --git a/meson.build b/meson.build
|
||||
index fd0e3373..2f273ada 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -185,10 +185,10 @@ endif
|
||||
stemmer_inc_dirs = include_directories()
|
||||
if get_option('stemming')
|
||||
stemmer_lib = cc.find_library('stemmer', required: true)
|
||||
- stemmer_inc_dirs = include_directories(['/usr/include'])
|
||||
+ stemmer_inc_dirs = include_directories([''])
|
||||
if not cc.has_header('libstemmer.h')
|
||||
if cc.has_header('libstemmer/libstemmer.h')
|
||||
- stemmer_inc_dirs = include_directories('/usr/include/libstemmer')
|
||||
+ stemmer_inc_dirs = include_directories('')
|
||||
else
|
||||
error('Unable to find Snowball header "libstemmer.h". Please ensure libstemmer/Snowball is installed properly in order to continue.')
|
||||
endif
|
||||
--
|
||||
2.34.1
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
SUMMARY = "AppStream is a collaborative effort for making machine-readable software metadata easily available."
|
||||
HOMEPAGE = "https://github.com/ximion/appstream"
|
||||
LICENSE = "LGPL-2.1-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=435ed639f84d4585d93824e7da3d85da"
|
||||
|
||||
DEPENDS = " \
|
||||
appstream-native \
|
||||
curl-native \
|
||||
curl \
|
||||
docbook-xml-dtd4-native \
|
||||
gperf-native \
|
||||
glib-2.0 \
|
||||
libyaml \
|
||||
libxml2 \
|
||||
libxmlb \
|
||||
libxslt-native \
|
||||
itstool-native \
|
||||
docbook-xsl-stylesheets-native \
|
||||
python3-pygments-native \
|
||||
"
|
||||
|
||||
inherit meson gobject-introspection gettext gi-docgen pkgconfig vala
|
||||
|
||||
GIR_MESON_OPTION = "gir"
|
||||
GIDOCGEN_MESON_OPTION = "apidocs"
|
||||
|
||||
SRC_URI = " \
|
||||
https://www.freedesktop.org/software/appstream/releases/AppStream-${PV}.tar.xz \
|
||||
file://0001-remove-hardcoded-path.patch \
|
||||
"
|
||||
SRC_URI[sha256sum] = "ef23477a380e8b525e92cfa87687f1146b9cef74c641349a1ae11250be5401d0"
|
||||
|
||||
S = "${WORKDIR}/AppStream-${PV}"
|
||||
|
||||
PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
|
||||
|
||||
PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd"
|
||||
PACKAGECONFIG[stemming] = "-Dstemming=true,-Dstemming=false,libstemmer"
|
||||
|
||||
FILES:${PN} += "${datadir}"
|
||||
|
||||
EXTRA_OEMESON += "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-Dvapi=true', '-Dvapi=false', d)}"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
Reference in New Issue
Block a user