diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-07-29 15:42:56 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-07-29 15:42:56 +0000 |
commit | 1aa265e43a1b774523b00d105704dcff7ef0e8ce (patch) | |
tree | ce702732bd9d23e09a46f878c7d2e8a3b75c8f4c /meta/packages | |
parent | 0fd3035fdb354e08e28531afbd6b1a891853a66a (diff) | |
download | poky-1aa265e43a1b774523b00d105704dcff7ef0e8ce.tar.gz |
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
Diffstat (limited to 'meta/packages')
3 files changed, 13 insertions, 9 deletions
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 0000000000..0959cb25d6 --- /dev/null +++ b/meta/packages/shared-mime-info/shared-mime-info-native_0.51.bb | |||
@@ -0,0 +1,5 @@ | |||
1 | require shared-mime-info.inc | ||
2 | |||
3 | inherit native | ||
4 | |||
5 | 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 a5176a7bf1..3381ef01f4 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 @@ | |||
1 | SECTION = "base" | 1 | SECTION = "base" |
2 | LICENSE = "GPL" | 2 | LICENSE = "GPL" |
3 | DEPENDS = "libxml2 intltool-native glib-2.0" | 3 | DEPENDS = "libxml2 intltool-native glib-2.0" |
4 | PR = "r0" | ||
5 | 4 | ||
6 | SRC_URI = "http://freedesktop.org/~hadess/shared-mime-info-${PV}.tar.bz2" | 5 | SRC_URI = "http://freedesktop.org/~hadess/shared-mime-info-${PV}.tar.bz2" |
7 | 6 | ||
@@ -11,11 +10,3 @@ EXTRA_OECONF = "--disable-update-mimedb" | |||
11 | 10 | ||
12 | FILES_${PN} += "${datadir}/mime" | 11 | FILES_${PN} += "${datadir}/mime" |
13 | FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc" | 12 | FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc" |
14 | |||
15 | pkg_postinst () { | ||
16 | if [ "x$D" != "x" ]; then | ||
17 | exit 1 | ||
18 | fi | ||
19 | echo "Updating MIME database... this may take a while." | ||
20 | ${bindir}/update-mime-database ${datadir}/mime | ||
21 | } | ||
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 6d3b760390..732d8e1725 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 @@ | |||
1 | require shared-mime-info.inc | 1 | require shared-mime-info.inc |
2 | 2 | ||
3 | DEPENDS += "shared-mime-info-native" | ||
3 | PR = "r1" | 4 | PR = "r1" |
5 | |||
6 | do_install_append() { | ||
7 | update-mime-database ${D}${datadir}/mime | ||
8 | |||
9 | # we do not need it on device and it is huge | ||
10 | rm ${D}${destdir}/mime/packages/freedesktop.org.xml | ||
11 | } | ||