diff options
Diffstat (limited to 'meta/recipes-support/shared-mime-info/shared-mime-info.inc')
-rw-r--r-- | meta/recipes-support/shared-mime-info/shared-mime-info.inc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/recipes-support/shared-mime-info/shared-mime-info.inc b/meta/recipes-support/shared-mime-info/shared-mime-info.inc index c8cab291da..57e829c114 100644 --- a/meta/recipes-support/shared-mime-info/shared-mime-info.inc +++ b/meta/recipes-support/shared-mime-info/shared-mime-info.inc | |||
@@ -17,13 +17,16 @@ EXTRA_OECONF = "--disable-update-mimedb" | |||
17 | FILES_${PN} += "${datadir}/mime" | 17 | FILES_${PN} += "${datadir}/mime" |
18 | FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc" | 18 | FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc" |
19 | 19 | ||
20 | # freedesktop.org.xml is only required when updating the mime database, | ||
21 | # package it separately | ||
22 | PACKAGES += "shared-mime-info-data" | ||
23 | FILES_shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml" | ||
24 | RDEPENDS_shared-mime-info-data = "shared-mime-info" | ||
25 | |||
20 | do_install () { | 26 | do_install () { |
21 | autotools_do_install | 27 | autotools_do_install |
22 | 28 | ||
23 | update-mime-database ${D}${datadir}/mime | 29 | update-mime-database ${D}${datadir}/mime |
24 | |||
25 | # we do not need it on device and it is huge | ||
26 | rm ${D}${datadir}/mime/packages/freedesktop.org.xml | ||
27 | } | 30 | } |
28 | 31 | ||
29 | do_install_virtclass-native () { | 32 | do_install_virtclass-native () { |