Fix port: x11/gnometerminal (fix URL hilighting)
Jean-Yves Lefort
jylefort at brutele.be
Wed Nov 17 19:13:45 PST 2004
>Submitter-Id: current-users
>Originator: Jean-Yves Lefort
>Organization:
>Confidential: no
>Synopsis: Fix port: x11/gnometerminal (fix URL hilighting)
>Severity: non-critical
>Priority: medium
>Category: ports
>Class: update
>Release: FreeBSD 5.3-RELEASE i386
>Environment:
System: FreeBSD jsite.lefort.net 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 12 15:27:39 CET 2004 jylefort at jsite.lefort.net:/usr/obj/usr/src/sys/JSITE i386
>Description:
Fixes word boundaries in the URL regexps.
>How-To-Repeat:
>Fix:
diff -ruN /usr/ports/x11/gnometerminal/Makefile gnometerminal/Makefile
--- /usr/ports/x11/gnometerminal/Makefile Wed Nov 10 06:47:39 2004
+++ gnometerminal/Makefile Thu Nov 18 04:09:29 2004
@@ -7,7 +7,7 @@
PORTNAME= gnometerminal
PORTVERSION= 2.8.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= x11 gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-terminal/2.8
diff -ruN /usr/ports/x11/gnometerminal/files/patch-src::terminal-screen.c gnometerminal/files/patch-src::terminal-screen.c
--- /usr/ports/x11/gnometerminal/files/patch-src::terminal-screen.c Thu Jan 1 01:00:00 1970
+++ gnometerminal/files/patch-src::terminal-screen.c Thu Nov 18 04:09:41 2004
@@ -0,0 +1,24 @@
+--- src/terminal-screen.c.orig Thu Nov 18 04:02:41 2004
++++ src/terminal-screen.c Thu Nov 18 04:03:48 2004
+@@ -246,16 +246,16 @@
+ #define USER "[" USERCHARS "]+(:["PASSCHARS "]+)?"
+
+ terminal_widget_match_add (screen->priv->term,
+- "\\<(" SCHEME "://(" USER "@)?)[" HOSTCHARS ".]+(:[0-9]+)?"
+- "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?\\>", FLAVOR_AS_IS);
++ "[[:<:]](" SCHEME "://(" USER "@)?)[" HOSTCHARS ".]+(:[0-9]+)?"
++ "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?[[:>:]]", FLAVOR_AS_IS);
+
+ terminal_widget_match_add (screen->priv->term,
+- "\\<(www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+(:[0-9]+)?"
+- "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?\\>", FLAVOR_DEFAULT_TO_HTTP);
++ "[[:<:]](www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+(:[0-9]+)?"
++ "(/[-A-Za-z0-9_$.+!*(),;:@&=?/~#%]*[^]'.}>) \t\r\n,\\\"])?[[:>:]]", FLAVOR_DEFAULT_TO_HTTP);
+
+ terminal_widget_match_add (screen->priv->term,
+
+- "\\<(mailto:)?[a-z0-9]+@[a-z0-9][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+\\>", FLAVOR_MAILTO);
++ "[[:<:]](mailto:)?[a-z0-9]+@[a-z0-9][a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+[[:>:]]", FLAVOR_MAILTO);
+
+ terminal_screen_setup_dnd (screen);
+
More information about the freebsd-gnome
mailing list