summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2002-04-27 17:32:31 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2002-04-27 17:32:31 +0000
commitca6aaac61d9a32c10358cd1ce063b54b50e9fe27 (patch)
treeeb55c306d5097f0ef07c1d1f387a5c814d8f60dd /www
parentadd @dirrm share/screen to pkg-plist. (diff)
Allow Galeon to properly act as a viewer for GNOME help URLs. Bump
PORTREVISION. Prompted by: User Witr <witr@rwwa.com> Reviewed by: sobomax Approved by: sobomax
Notes
Notes: svn path=/head/; revision=58239
Diffstat (limited to 'www')
-rw-r--r--www/galeon/Makefile1
-rw-r--r--www/galeon/files/patch-src_main.c16
-rw-r--r--www/galeon2/Makefile1
-rw-r--r--www/galeon2/files/patch-src_main.c16
4 files changed, 34 insertions, 0 deletions
diff --git a/www/galeon/Makefile b/www/galeon/Makefile
index 9be1bb8bd71a..7d10e33c914e 100644
--- a/www/galeon/Makefile
+++ b/www/galeon/Makefile
@@ -7,6 +7,7 @@
PORTNAME= galeon
PORTVERSION= 1.2.1
+PORTREVISION= 1
CATEGORIES= www gnome
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/www/galeon/files/patch-src_main.c b/www/galeon/files/patch-src_main.c
new file mode 100644
index 000000000000..584e80953a4e
--- /dev/null
+++ b/www/galeon/files/patch-src_main.c
@@ -0,0 +1,16 @@
+--- src/main.c.orig Fri Apr 26 14:29:08 2002
++++ src/main.c Fri Apr 26 14:52:43 2002
+@@ -394,7 +394,12 @@
+ for (i = 0; i < n; i++)
+ {
+ /* try to expand as files */
+- if (realpath (args[i], buffer) != NULL)
++ if (!strnstr(args[i], "ghelp:", strlen("ghelp:")) &&
++ !strnstr(args[i], "toc:", strlen("toc:")) &&
++ !strnstr(args[i], "info:", strlen("info:")) &&
++ !strnstr(args[i], "main:", strlen("man:")) &&
++ !strnstr(args[i], "gnome-help:", strlen("gnome-help")) &&
++ realpath (args[i], buffer) != NULL)
+ {
+ (*urls)[i] = g_strconcat ("file://", buffer, NULL);
+ }
diff --git a/www/galeon2/Makefile b/www/galeon2/Makefile
index 9be1bb8bd71a..7d10e33c914e 100644
--- a/www/galeon2/Makefile
+++ b/www/galeon2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= galeon
PORTVERSION= 1.2.1
+PORTREVISION= 1
CATEGORIES= www gnome
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/www/galeon2/files/patch-src_main.c b/www/galeon2/files/patch-src_main.c
new file mode 100644
index 000000000000..584e80953a4e
--- /dev/null
+++ b/www/galeon2/files/patch-src_main.c
@@ -0,0 +1,16 @@
+--- src/main.c.orig Fri Apr 26 14:29:08 2002
++++ src/main.c Fri Apr 26 14:52:43 2002
+@@ -394,7 +394,12 @@
+ for (i = 0; i < n; i++)
+ {
+ /* try to expand as files */
+- if (realpath (args[i], buffer) != NULL)
++ if (!strnstr(args[i], "ghelp:", strlen("ghelp:")) &&
++ !strnstr(args[i], "toc:", strlen("toc:")) &&
++ !strnstr(args[i], "info:", strlen("info:")) &&
++ !strnstr(args[i], "main:", strlen("man:")) &&
++ !strnstr(args[i], "gnome-help:", strlen("gnome-help")) &&
++ realpath (args[i], buffer) != NULL)
+ {
+ (*urls)[i] = g_strconcat ("file://", buffer, NULL);
+ }