From 1aa265e43a1b774523b00d105704dcff7ef0e8ce Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Tue, 29 Jul 2008 15:42:56 +0000 Subject: shared-mime-info: build mime database on host instead on device - added native version - removed 1MB freedesktop.org.xml file from package - split data are provided instead (result of update-mime-database) git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4982 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta/packages/shared-mime-info/shared-mime-info-native_0.51.bb | 5 +++++ meta/packages/shared-mime-info/shared-mime-info.inc | 9 --------- meta/packages/shared-mime-info/shared-mime-info_0.51.bb | 8 ++++++++ 3 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 meta/packages/shared-mime-info/shared-mime-info-native_0.51.bb diff --git a/meta/packages/shared-mime-info/shared-mime-info-native_0.51.bb b/meta/packages/shared-mime-info/shared-mime-info-native_0.51.bb new file mode 100644 index 000000000..0959cb25d --- /dev/null +++ b/meta/packages/shared-mime-info/shared-mime-info-native_0.51.bb @@ -0,0 +1,5 @@ +require shared-mime-info.inc + +inherit native + +S = "${WORKDIR}/shared-mime-info-${PV}" diff --git a/meta/packages/shared-mime-info/shared-mime-info.inc b/meta/packages/shared-mime-info/shared-mime-info.inc index a5176a7bf..3381ef01f 100644 --- a/meta/packages/shared-mime-info/shared-mime-info.inc +++ b/meta/packages/shared-mime-info/shared-mime-info.inc @@ -1,7 +1,6 @@ SECTION = "base" LICENSE = "GPL" DEPENDS = "libxml2 intltool-native glib-2.0" -PR = "r0" SRC_URI = "http://freedesktop.org/~hadess/shared-mime-info-${PV}.tar.bz2" @@ -11,11 +10,3 @@ EXTRA_OECONF = "--disable-update-mimedb" FILES_${PN} += "${datadir}/mime" FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc" - -pkg_postinst () { -if [ "x$D" != "x" ]; then - exit 1 -fi - echo "Updating MIME database... this may take a while." - ${bindir}/update-mime-database ${datadir}/mime -} diff --git a/meta/packages/shared-mime-info/shared-mime-info_0.51.bb b/meta/packages/shared-mime-info/shared-mime-info_0.51.bb index 6d3b76039..732d8e172 100644 --- a/meta/packages/shared-mime-info/shared-mime-info_0.51.bb +++ b/meta/packages/shared-mime-info/shared-mime-info_0.51.bb @@ -1,3 +1,11 @@ require shared-mime-info.inc +DEPENDS += "shared-mime-info-native" PR = "r1" + +do_install_append() { + update-mime-database ${D}${datadir}/mime + + # we do not need it on device and it is huge + rm ${D}${destdir}/mime/packages/freedesktop.org.xml +} -- cgit v1.2.3