summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2020-06-08 09:46:54 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-06-09 13:14:00 +0100
commit2a3a105eaff4ab98c1849f5d76826fa66172ca89 (patch)
tree396bc4e56f192ce6ffec20a95880395fd5dce562 /meta
parentf9b4abc12e048c71cd2643b5bdd521ba34f47a06 (diff)
downloadpoky-2a3a105eaff4ab98c1849f5d76826fa66172ca89.tar.gz
shared-mime-info: upgrade 1.15 -> 2.0
Convert to meson, replace custom call to update-mime-database with a built-in meson option. (From OE-Core rev: eeb6de06d2e6b3a7edf03c17e830aafc935e6f20) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-support/shared-mime-info/shared-mime-info_git.bb24
1 files changed, 6 insertions, 18 deletions
diff --git a/meta/recipes-support/shared-mime-info/shared-mime-info_git.bb b/meta/recipes-support/shared-mime-info/shared-mime-info_git.bb
index f0d5bc62e9..e82c818e5c 100644
--- a/meta/recipes-support/shared-mime-info/shared-mime-info_git.bb
+++ b/meta/recipes-support/shared-mime-info/shared-mime-info_git.bb
@@ -5,19 +5,19 @@ SECTION = "base"
5LICENSE = "GPLv2" 5LICENSE = "GPLv2"
6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" 6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
7 7
8DEPENDS = "libxml2 itstool-native glib-2.0 shared-mime-info-native" 8DEPENDS = "libxml2 itstool-native glib-2.0 shared-mime-info-native xmlto-native"
9 9
10SRC_URI = "git://gitlab.freedesktop.org/xdg/shared-mime-info.git;protocol=https" 10SRC_URI = "git://gitlab.freedesktop.org/xdg/shared-mime-info.git;protocol=https"
11SRCREV = "829b26d85e7d89a0caee03046c3bce373f04c80a" 11SRCREV = "ef58b2b2f7ad4070171c6e45e3b3764daa3ff2c1"
12PV = "1.15" 12PV = "2.0"
13S = "${WORKDIR}/git" 13S = "${WORKDIR}/git"
14 14
15inherit autotools pkgconfig gettext python3native mime 15inherit meson pkgconfig gettext python3native mime
16 16
17EXTRA_OECONF = "--disable-update-mimedb" 17EXTRA_OEMESON = "-Dupdate-mimedb=true"
18 18
19FILES_${PN} += "${datadir}/mime" 19FILES_${PN} += "${datadir}/mime"
20FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc" 20FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc ${datadir}/gettext/its"
21 21
22# freedesktop.org.xml is only required when updating the mime database, 22# freedesktop.org.xml is only required when updating the mime database,
23# package it separately 23# package it separately
@@ -25,16 +25,4 @@ PACKAGES =+ "shared-mime-info-data"
25FILES_shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml" 25FILES_shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml"
26RDEPENDS_shared-mime-info-data = "shared-mime-info" 26RDEPENDS_shared-mime-info-data = "shared-mime-info"
27 27
28do_install () {
29 autotools_do_install
30
31 update-mime-database ${D}${datadir}/mime
32}
33
34do_install_class-native () {
35 autotools_do_install
36
37 ${B}/update-mime-database ${D}${datadir}/mime
38}
39
40BBCLASSEXTEND = "native nativesdk" 28BBCLASSEXTEND = "native nativesdk"