Date: Thu, 18 Nov 2004 04:13:41 +0100 (CET) From: Jean-Yves Lefort <jylefort@brutele.be> To: FreeBSD-gnats-submit@FreeBSD.org Cc: gnome@FreeBSD.org Subject: ports/74058: Fix port: x11/gnometerminal (fix URL hilighting) Message-ID: <20041118031341.D921C22E16@jsite.lefort.net> Resent-Message-ID: <200411180320.iAI3KNr8012654@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 74058 >Category: ports >Synopsis: Fix port: x11/gnometerminal (fix URL hilighting) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Nov 18 03:20:23 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Jean-Yves Lefort >Release: FreeBSD 5.3-RELEASE i386 >Organization: >Environment: System: FreeBSD jsite.lefort.net 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 12 15:27:39 CET 2004 jylefort@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); + >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041118031341.D921C22E16>