diff options
Diffstat (limited to 'recipes-support/shared-mime-info/shared-mime-info.inc')
-rw-r--r-- | recipes-support/shared-mime-info/shared-mime-info.inc | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes-support/shared-mime-info/shared-mime-info.inc b/recipes-support/shared-mime-info/shared-mime-info.inc new file mode 100644 index 0000000..3fe1a44 --- /dev/null +++ b/recipes-support/shared-mime-info/shared-mime-info.inc | |||
@@ -0,0 +1,37 @@ | |||
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 | |||
8 | DEPENDS = "libxml2 intltool-native glib-2.0 shared-mime-info-native" | ||
9 | |||
10 | SRC_URI = "http://freedesktop.org/~hadess/shared-mime-info-${PV}.tar.xz" | ||
11 | |||
12 | inherit autotools pkgconfig gettext | ||
13 | |||
14 | EXTRA_OECONF = "--disable-update-mimedb" | ||
15 | |||
16 | FILES_${PN} += "${datadir}/mime" | ||
17 | FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc" | ||
18 | |||
19 | # freedesktop.org.xml is only required when updating the mime database, | ||
20 | # package it separately | ||
21 | PACKAGES =+ "shared-mime-info-data" | ||
22 | FILES_shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml" | ||
23 | RDEPENDS_shared-mime-info-data = "shared-mime-info" | ||
24 | |||
25 | do_install () { | ||
26 | autotools_do_install | ||
27 | |||
28 | update-mime-database ${D}${datadir}/mime | ||
29 | } | ||
30 | |||
31 | do_install_class-native () { | ||
32 | autotools_do_install | ||
33 | |||
34 | ${B}/update-mime-database ${D}${datadir}/mime | ||
35 | } | ||
36 | |||
37 | BBCLASSEXTEND = "native nativesdk" | ||