blob: 3f8bfcd2638f0bd612162d1ed78ec38be1a64567 [file] [log] [blame]
Andrew Geissler220dafd2023-10-04 10:18:08 -05001SUMMARY = "AppStream is a collaborative effort for making machine-readable software metadata easily available."
2HOMEPAGE = "https://github.com/ximion/appstream"
3LICENSE = "LGPL-2.1-only"
4LIC_FILES_CHKSUM = "file://COPYING;md5=435ed639f84d4585d93824e7da3d85da"
5
6DEPENDS = " \
7 appstream-native \
8 curl-native \
9 curl \
10 docbook-xml-dtd4-native \
11 gperf-native \
12 glib-2.0 \
13 libyaml \
14 libxml2 \
15 libxmlb \
16 libxslt-native \
17 itstool-native \
18 docbook-xsl-stylesheets-native \
19 python3-pygments-native \
20"
21
Patrick Williams169d7bc2024-01-05 11:33:25 -060022inherit meson gobject-introspection gettext gi-docgen pkgconfig vala
Andrew Geissler220dafd2023-10-04 10:18:08 -050023
24GIR_MESON_OPTION = "gir"
Patrick Williams169d7bc2024-01-05 11:33:25 -060025GIDOCGEN_MESON_OPTION = "apidocs"
Andrew Geissler220dafd2023-10-04 10:18:08 -050026
27SRC_URI = " \
28 https://www.freedesktop.org/software/appstream/releases/AppStream-${PV}.tar.xz \
29 file://0001-remove-hardcoded-path.patch \
Andrew Geissler220dafd2023-10-04 10:18:08 -050030"
Patrick Williams169d7bc2024-01-05 11:33:25 -060031SRC_URI[sha256sum] = "ef23477a380e8b525e92cfa87687f1146b9cef74c641349a1ae11250be5401d0"
Andrew Geissler220dafd2023-10-04 10:18:08 -050032
33S = "${WORKDIR}/AppStream-${PV}"
34
35PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
36
37PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd"
38PACKAGECONFIG[stemming] = "-Dstemming=true,-Dstemming=false,libstemmer"
39
40FILES:${PN} += "${datadir}"
41
42EXTRA_OEMESON += "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-Dvapi=true', '-Dvapi=false', d)}"
43
44BBCLASSEXTEND = "native"