openbsd-ports/devel/xdg-utils/patches/patch-scripts_xdg-icon-resource
ajacoutot 4c769a84fe Import xdg-utils-1.0.2
Xdg-utils is a set of command line tools that assist applications with a
variety of desktop integration tasks.  About half of the tools focus on
tasks commonly required during the installation of a desktop application
and the other half focuses on integration with the desktop environment
while the application is running.

based on an unfinished port from landry@
ok landry@
2008-10-30 14:28:36 +00:00

13 lines
625 B
Plaintext

$OpenBSD: patch-scripts_xdg-icon-resource,v 1.1.1.1 2008/10/30 14:28:36 ajacoutot Exp $
--- scripts/xdg-icon-resource.orig Thu Oct 30 14:48:27 2008
+++ scripts/xdg-icon-resource Thu Oct 30 14:48:47 2008
@@ -610,7 +610,7 @@ xdg_user_dir="$xdg_user_dir/$xdg_dir_name"
xdg_global_dir=
xdg_global_prefix=
xdg_system_dirs="$XDG_DATA_DIRS"
-[ -n "$xdg_system_dirs" ] || xdg_system_dirs="/usr/local/share/:/usr/share/"
+[ -n "$xdg_system_dirs" ] || xdg_system_dirs="${LOCALBASE}/share/:/usr/share/"
for x in `echo "$xdg_system_dirs" | sed 's/:/ /g'`; do
if [ -w $x/$xdg_dir_name ] ; then
xdg_global_prefix="$x/icons"