aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/shared-mime-info
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
committerDenys Dmytriyenko <denis@denix.org>2009-03-17 14:32:59 -0400
commit709c4d66e0b107ca606941b988bad717c0b45d9b (patch)
tree37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/shared-mime-info
parentfa6cd5a3b993f16c27de4ff82b42684516d433ba (diff)
downloadopenembedded-709c4d66e0b107ca606941b988bad717c0b45d9b.tar.gz
openembedded-709c4d66e0b107ca606941b988bad717c0b45d9b.tar.bz2
openembedded-709c4d66e0b107ca606941b988bad717c0b45d9b.zip
rename packages/ to recipes/ per earlier agreement
See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko <denis@denix.org> Acked-by: Mike Westerhof <mwester@dls.net> Acked-by: Philip Balister <philip@balister.org> Acked-by: Khem Raj <raj.khem@gmail.com> Acked-by: Marcin Juszkiewicz <hrw@openembedded.org> Acked-by: Koen Kooi <koen@openembedded.org> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/shared-mime-info')
-rw-r--r--recipes/shared-mime-info/shared-mime-info-native_0.51.bb7
-rw-r--r--recipes/shared-mime-info/shared-mime-info.inc11
-rw-r--r--recipes/shared-mime-info/shared-mime-info_0.20.bb11
-rw-r--r--recipes/shared-mime-info/shared-mime-info_0.22.bb11
-rw-r--r--recipes/shared-mime-info/shared-mime-info_0.51.bb15
5 files changed, 55 insertions, 0 deletions
diff --git a/recipes/shared-mime-info/shared-mime-info-native_0.51.bb b/recipes/shared-mime-info/shared-mime-info-native_0.51.bb
new file mode 100644
index 0000000000..bd6f522f20
--- /dev/null
+++ b/recipes/shared-mime-info/shared-mime-info-native_0.51.bb
@@ -0,0 +1,7 @@
+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/recipes/shared-mime-info/shared-mime-info.inc b/recipes/shared-mime-info/shared-mime-info.inc
new file mode 100644
index 0000000000..ba96f17390
--- /dev/null
+++ b/recipes/shared-mime-info/shared-mime-info.inc
@@ -0,0 +1,11 @@
+SECTION = "base"
+LICENSE = "GPL"
+
+SRC_URI = "http://freedesktop.org/~hadess/shared-mime-info-${PV}.tar.bz2"
+
+inherit autotools pkgconfig gettext
+
+EXTRA_OECONF = "--disable-update-mimedb"
+
+FILES_${PN} += "${datadir}/mime"
+FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc"
diff --git a/recipes/shared-mime-info/shared-mime-info_0.20.bb b/recipes/shared-mime-info/shared-mime-info_0.20.bb
new file mode 100644
index 0000000000..3d2a614bd1
--- /dev/null
+++ b/recipes/shared-mime-info/shared-mime-info_0.20.bb
@@ -0,0 +1,11 @@
+require shared-mime-info.inc
+
+PR = "r1"
+
+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/recipes/shared-mime-info/shared-mime-info_0.22.bb b/recipes/shared-mime-info/shared-mime-info_0.22.bb
new file mode 100644
index 0000000000..f28dff2ca2
--- /dev/null
+++ b/recipes/shared-mime-info/shared-mime-info_0.22.bb
@@ -0,0 +1,11 @@
+require shared-mime-info.inc
+
+PR = "r2"
+
+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/recipes/shared-mime-info/shared-mime-info_0.51.bb b/recipes/shared-mime-info/shared-mime-info_0.51.bb
new file mode 100644
index 0000000000..31a7df1862
--- /dev/null
+++ b/recipes/shared-mime-info/shared-mime-info_0.51.bb
@@ -0,0 +1,15 @@
+require shared-mime-info.inc
+
+DEPENDS = "libxml2 intltool-native glib-2.0 shared-mime-info-native"
+PR = "r2"
+
+do_install_append() {
+ update-mime-database ${D}${datadir}/mime
+}
+
+# freedesktop.org.xml is huge and only needed when updating the db
+# mime.bbclass will add the dependency on it automagically
+PACKAGES =+ "freedesktop-mime-info"
+FILES_freedesktop-mime-info = "${datadir}/mime/packages/freedesktop.org.xml"
+RDEPENDS_freedesktop-mime-info = "shared-mime-info"
+