William A. Kennington III | b95905d | 2021-06-02 12:40:56 -0700 | [diff] [blame] | 1 | SUMMARY = "Tracker is a file search engine" |
| 2 | LICENSE = "GPLv2 & LGPLv2.1" |
| 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 | libarchive \ |
| 13 | dbus \ |
| 14 | icu \ |
| 15 | json-glib \ |
| 16 | libsoup-2.4 \ |
| 17 | libstemmer \ |
| 18 | " |
| 19 | |
| 20 | GNOMEBASEBUILDCLASS = "meson" |
| 21 | |
| 22 | inherit gnomebase gsettings gobject-introspection vala gtk-doc manpages bash-completion features_check |
| 23 | |
Andrew Geissler | 6972109 | 2021-07-23 12:57:00 -0400 | [diff] [blame] | 24 | SRC_URI[archive.sha256sum] = "4376e2e98454066f44f7a242e45b99b3bfe4c03b67fab19abb0ed586ca748ae7" |
William A. Kennington III | b95905d | 2021-06-02 12:40:56 -0700 | [diff] [blame] | 25 | |
| 26 | # gobject-introspection is mandatory and cannot be configured |
| 27 | REQUIRED_DISTRO_FEATURES = "gobject-introspection-data" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 28 | UNKNOWN_CONFIGURE_WHITELIST:append = " introspection" |
William A. Kennington III | b95905d | 2021-06-02 12:40:56 -0700 | [diff] [blame] | 29 | |
| 30 | # text search is not an option anymore and requires sqlite3 build with |
| 31 | # PACKAGECONFIG[fts5] set (default) |
| 32 | |
| 33 | # set required cross property sqlite3_has_fts5 |
| 34 | do_write_config[vardeps] += "PACKAGECONFIG" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 35 | do_write_config:append() { |
William A. Kennington III | b95905d | 2021-06-02 12:40:56 -0700 | [diff] [blame] | 36 | echo "[properties]" > ${WORKDIR}/meson-tracker.cross |
| 37 | echo "sqlite3_has_fts5 = 'true'" >> ${WORKDIR}/meson-tracker.cross |
| 38 | } |
| 39 | |
| 40 | EXTRA_OEMESON = " \ |
| 41 | --cross-file ${WORKDIR}/meson-tracker.cross \ |
| 42 | -Dman=false \ |
| 43 | -Dsystemd_user_services=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)} \ |
| 44 | -Dsystemd_user_services_dir=${systemd_user_unitdir} \ |
| 45 | " |
| 46 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 47 | FILES:${PN} += " \ |
William A. Kennington III | b95905d | 2021-06-02 12:40:56 -0700 | [diff] [blame] | 48 | ${datadir}/dbus-1 \ |
| 49 | ${datadir}/tracker3 \ |
| 50 | ${libdir}/tracker-3.0 \ |
| 51 | ${systemd_user_unitdir} \ |
| 52 | " |