summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/mime-support
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2026-01-31 22:56:36 +0100
committerKhem Raj <raj.khem@gmail.com>2026-02-01 14:08:50 -0800
commit3a8beb7eef0e1f05ff8549d01056a3f74ee38523 (patch)
tree49672182a8785c3bd280393af1e57b765569029f /meta-oe/recipes-support/mime-support
parent10f3a928ab37e0088cd16fe9fe58fb79d803fe7e (diff)
downloadmeta-openembedded-3a8beb7eef0e1f05ff8549d01056a3f74ee38523.tar.gz
media-types: add recipe
This recipe is one of the successors of mime-support, which provided mailcap and mime.types files. This recipe contains only the mime.types portion. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/mime-support')
-rw-r--r--meta-oe/recipes-support/mime-support/media-types_14.0.0.bb39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/mime-support/media-types_14.0.0.bb b/meta-oe/recipes-support/mime-support/media-types_14.0.0.bb
new file mode 100644
index 0000000000..137d508ebe
--- /dev/null
+++ b/meta-oe/recipes-support/mime-support/media-types_14.0.0.bb
@@ -0,0 +1,39 @@
1SECTION = "base"
2SUMMARY = "MIME files 'mime.types'"
3LICENSE = "PD"
4LIC_FILES_CHKSUM = "file://debian/copyright;md5=f3ace4a4ff8aa9e374be6080e41a822e"
5DEPENDS = "file"
6RDEPENDS:${PN} = "perl"
7RRECOMMENDS:${PN} = "file"
8
9SRC_URI = "${DEBIAN_MIRROR}/main/m/${BPN}/${BPN}_${PV}.tar.xz"
10SRC_URI[sha256sum] = "d5877ac8c1fa3661b3c9ace293ae154c844fad686786f085e954c014f7e73f4d"
11S = "${UNPACKDIR}/work"
12
13inherit update-alternatives
14
15FILES:${PN} += " ${datadir}/bug/media-types"
16
17docdir:append = "/${BPN}"
18
19do_install () {
20 install -d ${D}${sysconfdir}
21 install -d ${D}${datadir}/bug/media-types
22 install -d ${D}${docdir}
23 install -m 644 mime.types ${D}${sysconfdir}/
24 install -m 644 debian/bug-presubj ${D}${datadir}/bug/media-types/presubj
25 install -m 644 debian/changelog ${D}${docdir}/changelog
26 install -m 644 debian/copyright ${D}${docdir}/copyright
27 cd ${D}${docdir}; gzip -9v changelog
28}
29
30ALTERNATIVE_PRIORITY = "90"
31ALTERNATIVE:${PN} = "mime.types"
32ALTERNATIVE_LINK_NAME[mime.types] = "${sysconfdir}/mime.types"
33
34INHIBIT_DEFAULT_DEPS = "1"
35
36# Debian used to have mime-support package which was media-types and
37# mailcap recipes in one.
38PROVIDES += "mime-support"
39RDEPENDS:mime-support = "mailcap"