diff options
Diffstat (limited to 'meta-gnome/recipes-gnome/tracker/tinysparql_3.8.0.bb')
| -rw-r--r-- | meta-gnome/recipes-gnome/tracker/tinysparql_3.8.0.bb | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/meta-gnome/recipes-gnome/tracker/tinysparql_3.8.0.bb b/meta-gnome/recipes-gnome/tracker/tinysparql_3.8.0.bb new file mode 100644 index 0000000000..628384464d --- /dev/null +++ b/meta-gnome/recipes-gnome/tracker/tinysparql_3.8.0.bb | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | SUMMARY = "Tracker is a file search engine" | ||
| 2 | LICENSE = "GPL-2.0-only & LGPL-2.1-only" | ||
| 3 | LIC_FILES_CHKSUM = " \ | ||
| 4 | file://COPYING.GPL;md5=ee31012bf90e7b8c108c69f197f3e3a4 \ | ||
| 5 | file://COPYING.LGPL;md5=2d5025d4aa3495befef8f17206a5b0a1 \ | ||
| 6 | " | ||
| 7 | |||
| 8 | DEPENDS = " \ | ||
| 9 | dbus-native \ | ||
| 10 | glib-2.0 \ | ||
| 11 | sqlite3 \ | ||
| 12 | dbus \ | ||
| 13 | icu \ | ||
| 14 | json-glib \ | ||
| 15 | libsoup \ | ||
| 16 | libstemmer \ | ||
| 17 | " | ||
| 18 | |||
| 19 | inherit gettext gnomebase gobject-introspection vala gtk-doc bash-completion | ||
| 20 | |||
| 21 | SRC_URI += "file://0001-fix-reproducibility.patch" | ||
| 22 | SRC_URI += "file://0001-src-libtracker-sparql-meson.build-dont-create-compat.patch" | ||
| 23 | SRC_URI[archive.sha256sum] = "c0fcda77520f531548b2395137dcd193ee9cde5e222d3c9d273f030d1762a504" | ||
| 24 | |||
| 25 | # text search is not an option anymore and requires sqlite3 build with | ||
| 26 | # PACKAGECONFIG[fts5] set (default) | ||
| 27 | |||
| 28 | # set required cross property sqlite3_has_fts5 | ||
| 29 | do_write_config[vardeps] += "PACKAGECONFIG" | ||
| 30 | do_write_config:append() { | ||
| 31 | echo "[properties]" > ${WORKDIR}/meson-tracker.cross | ||
| 32 | echo "sqlite3_has_fts5 = 'true'" >> ${WORKDIR}/meson-tracker.cross | ||
| 33 | } | ||
| 34 | |||
| 35 | EXTRA_OEMESON = " \ | ||
| 36 | --cross-file ${WORKDIR}/meson-tracker.cross \ | ||
| 37 | -Dman=false \ | ||
| 38 | -Dsystemd_user_services=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)} \ | ||
| 39 | -Dsystemd_user_services_dir=${systemd_user_unitdir} \ | ||
| 40 | -Dtests=false \ | ||
| 41 | ${@bb.utils.contains('GI_DATA_ENABLED', 'True', '-Dvapi=enabled', '-Dvapi=disabled', d)} \ | ||
| 42 | " | ||
| 43 | |||
| 44 | GIR_MESON_ENABLE_FLAG = 'enabled' | ||
| 45 | GIR_MESON_DISABLE_FLAG = 'disabled' | ||
| 46 | |||
| 47 | PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "zeroconf", "avahi", "", d)}" | ||
| 48 | PACKAGECONFIG[avahi] = "-Davahi=enabled,-Davahi=disabled,avahi," | ||
| 49 | |||
| 50 | do_install:prepend() { | ||
| 51 | sed -i -e 's|${B}|${TARGET_DBGSRC_DIR}|g' ${B}/src/libtracker-sparql/tracker-sparql-enum-types.c | ||
| 52 | sed -i -e 's|${B}|${TARGET_DBGSRC_DIR}|g' ${B}/src/libtracker-sparql/core/tracker-data-enum-types.c | ||
| 53 | } | ||
| 54 | |||
| 55 | FILES:${PN} += " \ | ||
| 56 | ${datadir}/dbus-1 \ | ||
| 57 | ${libdir}/tinysparql-3.0 \ | ||
| 58 | ${systemd_user_unitdir} \ | ||
| 59 | " | ||
