diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2013-04-16 18:37:10 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2013-04-16 18:37:10 +0800 |
commit | bccbbfa12a70f0c378d8a0ace42d6937315498da (patch) | |
tree | ff84f064d6b88b3faed261a5f0333e6e63192d46 /devel | |
parent | d75ebcd47a68b7cb6d5b8de21bb115c51d66f03b (diff) | |
download | marcuscom-ports-bccbbfa12a70f0c378d8a0ace42d6937315498da.tar.gz marcuscom-ports-bccbbfa12a70f0c378d8a0ace42d6937315498da.tar.zst marcuscom-ports-bccbbfa12a70f0c378d8a0ace42d6937315498da.zip |
Update to 0.21.
Sync with ports, trim header. Add patch from upstream from only commit after
the release. Add new categories, accept and validate GNOME3/GSetttings for
Autostartcondition. This also adds MATE to list of registered environments.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@18377 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel')
-rw-r--r-- | devel/desktop-file-utils/Makefile | 13 | ||||
-rw-r--r-- | devel/desktop-file-utils/distinfo | 4 | ||||
-rw-r--r-- | devel/desktop-file-utils/files/patch-src_update-desktop-database.c | 32 |
3 files changed, 38 insertions, 11 deletions
diff --git a/devel/desktop-file-utils/Makefile b/devel/desktop-file-utils/Makefile index e02ea20a9..aaebf695a 100644 --- a/devel/desktop-file-utils/Makefile +++ b/devel/desktop-file-utils/Makefile @@ -1,13 +1,9 @@ - New ports collection makefile for: desktop-file-utils -# Date created: 11 Jun 2004 -# Whom: Jean-Yves Lefort <jylefort@brutele.be> -# +# Created by: Jean-Yves Lefort <jylefort@brutele.be> # $FreeBSD$ -# $MCom$ -# +# $MCom: ports/trunk/devel/desktop-file-utils/Makefile 17268 2013-04-01 05:13:11Z marcus $ PORTNAME= desktop-file-utils -PORTVERSION= 0.19 +PORTVERSION= 0.21 CATEGORIES= devel MASTER_SITES= http://freedesktop.org/software/${PORTNAME}/releases/ @@ -15,11 +11,10 @@ MAINTAINER= gnome@FreeBSD.org COMMENT= A couple of command line utilities for working with desktop entries USE_GNOME= glib20 -USE_PKGCONFIG= build USE_XZ= yes USE_GETTEXT= yes USE_GMAKE= yes -WANT_GNOME= yes +USE_PKGCONFIG= build GNU_CONFIGURE= yes CONFIGURE_ARGS= --without-lispdir CONFIGURE_ENV= EMACS="no" diff --git a/devel/desktop-file-utils/distinfo b/devel/desktop-file-utils/distinfo index 141f9751e..b5a1c818b 100644 --- a/devel/desktop-file-utils/distinfo +++ b/devel/desktop-file-utils/distinfo @@ -1,2 +1,2 @@ -SHA256 (desktop-file-utils-0.19.tar.xz) = 1f805c44fc6943d2d9d2acfe2aa4c6edc1fa17b1807e4e950c8ce50111ddc81b -SIZE (desktop-file-utils-0.19.tar.xz) = 99808 +SHA256 (desktop-file-utils-0.21.tar.xz) = b6c9b860538ef1cffbcdfbc9cb578f85a080ad8c1207c8b3a39e9fd183f9782b +SIZE (desktop-file-utils-0.21.tar.xz) = 128972 diff --git a/devel/desktop-file-utils/files/patch-src_update-desktop-database.c b/devel/desktop-file-utils/files/patch-src_update-desktop-database.c new file mode 100644 index 000000000..793083caf --- /dev/null +++ b/devel/desktop-file-utils/files/patch-src_update-desktop-database.c @@ -0,0 +1,32 @@ +From f0a269e1d65843822915faa1bb020da8b6b9954c Mon Sep 17 00:00:00 2001 +From: Vincent Untz <vuntz@gnome.org> +Date: Mon, 07 Jan 2013 08:02:08 +0000 +Subject: update-desktop-database: List only once a desktop file per mime type + +If a desktop file is registering the same mime type more than once +(useless but okay), the desktop file was listed more than once for that +mime type in mimeinfo.cache. + +It's easy to avoid, so make sure we only have a desktop file once per +mime type. +--- +diff --git a/src/update-desktop-database.c b/src/update-desktop-database.c +index ffc1440..7f48357 100644 +--- src/update-desktop-database.c ++++ src/update-desktop-database.c +@@ -83,6 +83,13 @@ cache_desktop_file (const char *desktop_file, + + desktop_files = (GList *) g_hash_table_lookup (mime_types_map, mime_type); + ++ /* do not add twice a desktop file mentioning the mime type more than once ++ * (no need to use g_list_find() because we cache all mime types registered ++ * by a desktop file before moving to another desktop file) */ ++ if (desktop_files && ++ strcmp (desktop_file, (const char *) desktop_files->data) == 0) ++ return; ++ + desktop_files = g_list_prepend (desktop_files, g_strdup (desktop_file)); + g_hash_table_insert (mime_types_map, g_strdup (mime_type), desktop_files); + } +-- +cgit v0.9.0.2-2-gbebe |