summaryrefslogtreecommitdiff
path: root/databases/shared-mime-info/patches/patch-aa
blob: 9f14f5167c91a461abcbe6b70afcd5fc426d5b6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-aa,v 1.8 2014/04/25 08:53:21 wiz Exp $

Adapt paths for pkgsrc.

--- update-mime-database.c.orig	2013-07-09 22:10:53.000000000 +0000
+++ update-mime-database.c
@@ -2135,7 +2135,7 @@ static void check_in_path_xdg_data(const
 
 	env = getenv("XDG_DATA_DIRS");
 	if (!env)
-		env = "/usr/local/share/"PATH_SEPARATOR"/usr/share/";
+		env = PREFIX "/share/"PATH_SEPARATOR"/usr/local/share/"PATH_SEPARATOR"/usr/share/";
 	dirs = g_strsplit(env, PATH_SEPARATOR, 0);
 	g_return_if_fail(dirs != NULL);
 	for (n = 0; dirs[n]; n++)