Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "Shared MIME type database and specification" |
| 2 | HOMEPAGE = "http://freedesktop.org/wiki/Software/shared-mime-info" |
| 3 | SECTION = "base" |
| 4 | |
| 5 | LICENSE = "GPLv2" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 7 | |
Andrew Geissler | 5a43b43 | 2020-06-13 10:46:56 -0500 | [diff] [blame] | 8 | DEPENDS = "libxml2 itstool-native glib-2.0 shared-mime-info-native xmlto-native" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 9 | |
| 10 | SRC_URI = "git://gitlab.freedesktop.org/xdg/shared-mime-info.git;protocol=https" |
Andrew Geissler | 5a43b43 | 2020-06-13 10:46:56 -0500 | [diff] [blame] | 11 | SRCREV = "ef58b2b2f7ad4070171c6e45e3b3764daa3ff2c1" |
| 12 | PV = "2.0" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 13 | S = "${WORKDIR}/git" |
| 14 | |
Andrew Geissler | 5a43b43 | 2020-06-13 10:46:56 -0500 | [diff] [blame] | 15 | inherit meson pkgconfig gettext python3native mime |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 16 | |
Andrew Geissler | 5a43b43 | 2020-06-13 10:46:56 -0500 | [diff] [blame] | 17 | EXTRA_OEMESON = "-Dupdate-mimedb=true" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 18 | |
| 19 | FILES_${PN} += "${datadir}/mime" |
Andrew Geissler | 5a43b43 | 2020-06-13 10:46:56 -0500 | [diff] [blame] | 20 | FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc ${datadir}/gettext/its" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 21 | |
| 22 | # freedesktop.org.xml is only required when updating the mime database, |
| 23 | # package it separately |
| 24 | PACKAGES =+ "shared-mime-info-data" |
| 25 | FILES_shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml" |
| 26 | RDEPENDS_shared-mime-info-data = "shared-mime-info" |
| 27 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 28 | BBCLASSEXTEND = "native nativesdk" |