From 9a17752a7c9f1bec698682fae1c88f01e059300b Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 5 Nov 2009 13:31:59 +0000 Subject: shared-mime-info: Convert to BBCLASSEXTEND Signed-off-by: Richard Purdie --- .../shared-mime-info/shared-mime-info-native_0.51.bb | 7 ------- meta/packages/shared-mime-info/shared-mime-info.inc | 13 +++++++++++++ meta/packages/shared-mime-info/shared-mime-info_0.51.bb | 10 ---------- 3 files changed, 13 insertions(+), 17 deletions(-) delete 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 deleted file mode 100644 index bd6f522f2..000000000 --- a/meta/packages/shared-mime-info/shared-mime-info-native_0.51.bb +++ /dev/null @@ -1,7 +0,0 @@ -require shared-mime-info.inc - -DEPENDS = "libxml2-native intltool-native glib-2.0-native" - -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 ba96f1739..81320371f 100644 --- a/meta/packages/shared-mime-info/shared-mime-info.inc +++ b/meta/packages/shared-mime-info/shared-mime-info.inc @@ -2,6 +2,10 @@ SECTION = "base" LICENSE = "GPL" SRC_URI = "http://freedesktop.org/~hadess/shared-mime-info-${PV}.tar.bz2" +DEPENDS = "libxml2 intltool-native glib-2.0 shared-mime-info-native" +DEPENDS_virtclass-native = "libxml2-native intltool-native glib-2.0-native" + +PR = "r2" inherit autotools pkgconfig gettext @@ -9,3 +13,12 @@ EXTRA_OECONF = "--disable-update-mimedb" FILES_${PN} += "${datadir}/mime" FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc" + +do_install_append() { + update-mime-database ${D}${datadir}/mime + + # we do not need it on device and it is huge + rm ${D}${datadir}/mime/packages/freedesktop.org.xml +} + +BBCLASSEXTEND = "native" 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 c8e475af5..fc64c2b0e 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,11 +1 @@ require shared-mime-info.inc - -DEPENDS = "libxml2 intltool-native glib-2.0 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}${datadir}/mime/packages/freedesktop.org.xml -} -- cgit v1.2.3