Tue Apr 17 10:59:19 2018 UTC ()
desktop-file-utils: Add font as valid media type

This was codified in RFC 8081, and some desktop apps are using
this now.
https://bugs.freedesktop.org/show_bug.cgi?id=105785


(markd)
diff -r1.35 -r1.36 pkgsrc/sysutils/desktop-file-utils/Makefile
diff -r1.15 -r1.16 pkgsrc/sysutils/desktop-file-utils/distinfo
diff -r0 -r1.1 pkgsrc/sysutils/desktop-file-utils/patches/patch-src_mimeutils.c

cvs diff -r1.35 -r1.36 pkgsrc/sysutils/desktop-file-utils/Makefile (expand / switch to unified diff)

--- pkgsrc/sysutils/desktop-file-utils/Makefile 2016/06/30 17:42:18 1.35
+++ pkgsrc/sysutils/desktop-file-utils/Makefile 2018/04/17 10:59:19 1.36
@@ -1,16 +1,17 @@ @@ -1,16 +1,17 @@
1# $NetBSD: Makefile,v 1.35 2016/06/30 17:42:18 wiz Exp $ 1# $NetBSD: Makefile,v 1.36 2018/04/17 10:59:19 markd Exp $
2 2
3DISTNAME= desktop-file-utils-0.23 3DISTNAME= desktop-file-utils-0.23
 4PKGREVISION= 1
4CATEGORIES= sysutils gnome 5CATEGORIES= sysutils gnome
5MASTER_SITES= http://freedesktop.org/software/desktop-file-utils/releases/ 6MASTER_SITES= http://freedesktop.org/software/desktop-file-utils/releases/
6EXTRACT_SUFX= .tar.xz 7EXTRACT_SUFX= .tar.xz
7 8
8MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://www.freedesktop.org/wiki/Software/desktop-file-utils 10HOMEPAGE= http://www.freedesktop.org/wiki/Software/desktop-file-utils
10COMMENT= Utilities to manage desktop entries 11COMMENT= Utilities to manage desktop entries
11LICENSE= gnu-gpl-v2 12LICENSE= gnu-gpl-v2
12 13
13USE_TOOLS+= pkg-config 14USE_TOOLS+= pkg-config
14GNU_CONFIGURE= YES 15GNU_CONFIGURE= YES
15USE_LIBTOOL= YES 16USE_LIBTOOL= YES
16USE_PKGLOCALEDIR= YES 17USE_PKGLOCALEDIR= YES

cvs diff -r1.15 -r1.16 pkgsrc/sysutils/desktop-file-utils/distinfo (expand / switch to unified diff)

--- pkgsrc/sysutils/desktop-file-utils/distinfo 2016/06/30 17:42:18 1.15
+++ pkgsrc/sysutils/desktop-file-utils/distinfo 2018/04/17 10:59:19 1.16
@@ -1,7 +1,8 @@ @@ -1,7 +1,8 @@
1$NetBSD: distinfo,v 1.15 2016/06/30 17:42:18 wiz Exp $ 1$NetBSD: distinfo,v 1.16 2018/04/17 10:59:19 markd Exp $
2 2
3SHA1 (desktop-file-utils-0.23.tar.xz) = 10e9df65fdf2b896ce4d5f16616ea0df7c01d8f8 3SHA1 (desktop-file-utils-0.23.tar.xz) = 10e9df65fdf2b896ce4d5f16616ea0df7c01d8f8
4RMD160 (desktop-file-utils-0.23.tar.xz) = 308058ff58db3a8a4ac28bf4b0d57df2dfede7bf 4RMD160 (desktop-file-utils-0.23.tar.xz) = 308058ff58db3a8a4ac28bf4b0d57df2dfede7bf
5SHA512 (desktop-file-utils-0.23.tar.xz) = 66a8ddfbb2be8edc14e16427e0dafa6fb1ef7491c816f19221fb5d5782e964cdcc3ae89807339f1c565af828aa83403cc56edeb2d03b3f93e013f3c5e9e6fe6a 5SHA512 (desktop-file-utils-0.23.tar.xz) = 66a8ddfbb2be8edc14e16427e0dafa6fb1ef7491c816f19221fb5d5782e964cdcc3ae89807339f1c565af828aa83403cc56edeb2d03b3f93e013f3c5e9e6fe6a
6Size (desktop-file-utils-0.23.tar.xz) = 132000 bytes 6Size (desktop-file-utils-0.23.tar.xz) = 132000 bytes
7SHA1 (patch-ab) = 82809458adbb142b64bfc3b5cd29ce39413d51fc 7SHA1 (patch-ab) = 82809458adbb142b64bfc3b5cd29ce39413d51fc
 8SHA1 (patch-src_mimeutils.c) = f2eb709d6bd922db52acf8c48d8d8588ed2e1595

File Added: pkgsrc/sysutils/desktop-file-utils/patches/Attic/patch-src_mimeutils.c
$NetBSD: patch-src_mimeutils.c,v 1.1 2018/04/17 10:59:19 markd Exp $

Add font as valid media type

This was codified in RFC 8081, and some desktop apps are using
this now.
https://bugs.freedesktop.org/show_bug.cgi?id=105785

--- src/mimeutils.c.orig	2016-05-11 20:05:33.000000000 +0000
+++ src/mimeutils.c
@@ -52,9 +52,9 @@ static const char *known_old_fdo_media_t
   "x-directory"
 };
 
-/* Defined in RFC 2045/2046 and RFC 2077 */
+/* Defined in RFC 2045/2046, RFC 2077 and RFC 8081 */
 static const char *registered_discrete_media_types[] = {
-  "application", "audio", "image", "model", "text", "video"
+  "application", "audio", "font", "image", "model", "text", "video"
 };
 
 /* Defined in RFC 2045/2046 */