diff options
author | marcus <marcus@FreeBSD.org> | 2002-04-28 01:32:31 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2002-04-28 01:32:31 +0800 |
commit | 919cc62d05517c3222f92e64532d0c157c3306cb (patch) | |
tree | b3d3959f130ce0fbf1ea2692e4fc84a4bd99ec77 /www | |
parent | 663f9db4511f885d2deb11811e35386f68f55c14 (diff) | |
download | freebsd-ports-gnome-919cc62d05517c3222f92e64532d0c157c3306cb.tar.gz freebsd-ports-gnome-919cc62d05517c3222f92e64532d0c157c3306cb.tar.zst freebsd-ports-gnome-919cc62d05517c3222f92e64532d0c157c3306cb.zip |
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
Diffstat (limited to 'www')
-rw-r--r-- | www/galeon/Makefile | 1 | ||||
-rw-r--r-- | www/galeon/files/patch-src_main.c | 16 | ||||
-rw-r--r-- | www/galeon2/Makefile | 1 | ||||
-rw-r--r-- | www/galeon2/files/patch-src_main.c | 16 |
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); + } |