aboutsummaryrefslogtreecommitdiff
path: root/devel/xdg-utils
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2009-08-15 17:28:02 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2009-08-15 17:28:02 +0000
commita532919c0c5a73bdb2bdefdb92f0613a58011f88 (patch)
tree00e71d805e80e33c56cf3bc971b0805c20dd344e /devel/xdg-utils
parente2d120ee749592ed53e93705f01b6b802d72c327 (diff)
downloadports-a532919c0c5a73bdb2bdefdb92f0613a58011f88.tar.gz
ports-a532919c0c5a73bdb2bdefdb92f0613a58011f88.zip
Notes
Diffstat (limited to 'devel/xdg-utils')
-rw-r--r--devel/xdg-utils/Makefile2
-rw-r--r--devel/xdg-utils/files/patch-scripts_xdg-open13
2 files changed, 14 insertions, 1 deletions
diff --git a/devel/xdg-utils/Makefile b/devel/xdg-utils/Makefile
index f926babb9a3f..a6da443c46a3 100644
--- a/devel/xdg-utils/Makefile
+++ b/devel/xdg-utils/Makefile
@@ -8,7 +8,7 @@
PORTNAME= xdg-utils
PORTVERSION= 1.0.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= http://portland.freedesktop.org/download/
EXTRACT_SUFX= .tgz
diff --git a/devel/xdg-utils/files/patch-scripts_xdg-open b/devel/xdg-utils/files/patch-scripts_xdg-open
new file mode 100644
index 000000000000..08bad76bb859
--- /dev/null
+++ b/devel/xdg-utils/files/patch-scripts_xdg-open
@@ -0,0 +1,13 @@
+--- scripts/xdg-open.orig 2009-08-15 13:22:26.000000000 -0400
++++ scripts/xdg-open 2009-08-15 13:26:02.000000000 -0400
+@@ -364,7 +364,9 @@ open_generic()
+ for browser in $BROWSER; do
+ if [ x"$browser" != x"" ]; then
+
+- browser_with_arg=`echo "$browser" | sed s#%s#"$1"#`
++ browser_with_args=`printf "$browser" "$1" 2>/dev/null`
++ if [ $? -ne 0 ]; then browser_with_args=$browser;
++ fi
+
+ if [ x"$browser_with_arg" = x"$browser" ]; then "$browser" "$1";
+ else $browser_with_arg;