diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-05-19 03:31:11 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2006-05-19 03:31:11 +0800 |
commit | d888fb3d20ec19dedcac7b2b5d0ad5fd3ec938a4 (patch) | |
tree | 8e7a9714d206931bab2ef43f347d6814769ae460 | |
parent | 0a64cd0d2e705798e3175d878fce980e189c4cc2 (diff) | |
download | marcuscom-ports-d888fb3d20ec19dedcac7b2b5d0ad5fd3ec938a4.tar marcuscom-ports-d888fb3d20ec19dedcac7b2b5d0ad5fd3ec938a4.tar.gz marcuscom-ports-d888fb3d20ec19dedcac7b2b5d0ad5fd3ec938a4.tar.bz2 marcuscom-ports-d888fb3d20ec19dedcac7b2b5d0ad5fd3ec938a4.tar.lz marcuscom-ports-d888fb3d20ec19dedcac7b2b5d0ad5fd3ec938a4.tar.xz marcuscom-ports-d888fb3d20ec19dedcac7b2b5d0ad5fd3ec938a4.tar.zst marcuscom-ports-d888fb3d20ec19dedcac7b2b5d0ad5fd3ec938a4.zip |
Restore patch to do URL highlighting.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6298 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | x11/gnome-terminal/Makefile | 3 | ||||
-rw-r--r-- | x11/gnome-terminal/files/patch-src_terminal-screen.c | 33 | ||||
-rw-r--r-- | x11/gnometerminal/Makefile | 3 | ||||
-rw-r--r-- | x11/gnometerminal/files/patch-src_terminal-screen.c | 33 |
4 files changed, 70 insertions, 2 deletions
diff --git a/x11/gnome-terminal/Makefile b/x11/gnome-terminal/Makefile index fa8715fa2..8ad807112 100644 --- a/x11/gnome-terminal/Makefile +++ b/x11/gnome-terminal/Makefile @@ -3,11 +3,12 @@ # Whom: Joe Marcus Clarke <marcus@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/x11/gnometerminal/Makefile,v 1.69 2006/04/13 07:52:41 bland Exp $ +# $MCom: ports/x11/gnometerminal/Makefile,v 1.71 2006/05/18 01:35:52 ahze Exp $ # PORTNAME= gnometerminal PORTVERSION= 2.15.1 +PORTREVISION= 1 CATEGORIES= x11 gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/gnome-terminal/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} diff --git a/x11/gnome-terminal/files/patch-src_terminal-screen.c b/x11/gnome-terminal/files/patch-src_terminal-screen.c new file mode 100644 index 000000000..ffa05b4fc --- /dev/null +++ b/x11/gnome-terminal/files/patch-src_terminal-screen.c @@ -0,0 +1,33 @@ +--- src/terminal-screen.c.orig Wed May 17 17:02:36 2006 ++++ src/terminal-screen.c Thu May 18 15:30:27 2006 +@@ -278,22 +278,22 @@ terminal_screen_init (TerminalScreen *sc + #define URLPATH "/[" PATHCHARS "]*[^]'.}>) \t\r\n,\\\"]" + + terminal_widget_match_add (screen->priv->term, +- "\\<" SCHEME "//(" USER "@)?[" HOSTCHARS ".]+" +- "(:[0-9]+)?(" URLPATH ")?\\>/?", FLAVOR_AS_IS); ++ "[[:<:]]" SCHEME "//(" USER "@)?[" HOSTCHARS ".]+" ++ "(:[0-9]+)?(" URLPATH ")?[[:>:]]/?", FLAVOR_AS_IS); + + terminal_widget_match_add (screen->priv->term, +- "\\<(www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+" +- "(:[0-9]+)?(" URLPATH ")?\\>/?", ++ "[[:<:]](www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+" ++ "(:[0-9]+)?(" URLPATH ")?[[:>:]]/?", + 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][a-z0-9-]*)+\\>", ++ "[[:<:]](mailto:)?[a-z0-9][a-z0-9.-]*@[a-z0-9]" ++ "[a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+[[:>:]]", + FLAVOR_EMAIL); + + terminal_widget_match_add (screen->priv->term, +- "\\<news:[-A-Z\\^_a-z{|}~!\"#$%&'()*+,./0-9;:=?`]+" +- "@[" HOSTCHARS ".]+(:[0-9]+)?\\>", FLAVOR_AS_IS); ++ "[[:<:]]news:[-A-Z\\^_a-z{|}~!\"#$%&'()*+,./0-9;:=?`]+" ++ "@[" HOSTCHARS ".]+(:[0-9]+)?[[:>:]]", FLAVOR_AS_IS); + + terminal_screen_setup_dnd (screen); + diff --git a/x11/gnometerminal/Makefile b/x11/gnometerminal/Makefile index fa8715fa2..8ad807112 100644 --- a/x11/gnometerminal/Makefile +++ b/x11/gnometerminal/Makefile @@ -3,11 +3,12 @@ # Whom: Joe Marcus Clarke <marcus@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/x11/gnometerminal/Makefile,v 1.69 2006/04/13 07:52:41 bland Exp $ +# $MCom: ports/x11/gnometerminal/Makefile,v 1.71 2006/05/18 01:35:52 ahze Exp $ # PORTNAME= gnometerminal PORTVERSION= 2.15.1 +PORTREVISION= 1 CATEGORIES= x11 gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/gnome-terminal/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} diff --git a/x11/gnometerminal/files/patch-src_terminal-screen.c b/x11/gnometerminal/files/patch-src_terminal-screen.c new file mode 100644 index 000000000..ffa05b4fc --- /dev/null +++ b/x11/gnometerminal/files/patch-src_terminal-screen.c @@ -0,0 +1,33 @@ +--- src/terminal-screen.c.orig Wed May 17 17:02:36 2006 ++++ src/terminal-screen.c Thu May 18 15:30:27 2006 +@@ -278,22 +278,22 @@ terminal_screen_init (TerminalScreen *sc + #define URLPATH "/[" PATHCHARS "]*[^]'.}>) \t\r\n,\\\"]" + + terminal_widget_match_add (screen->priv->term, +- "\\<" SCHEME "//(" USER "@)?[" HOSTCHARS ".]+" +- "(:[0-9]+)?(" URLPATH ")?\\>/?", FLAVOR_AS_IS); ++ "[[:<:]]" SCHEME "//(" USER "@)?[" HOSTCHARS ".]+" ++ "(:[0-9]+)?(" URLPATH ")?[[:>:]]/?", FLAVOR_AS_IS); + + terminal_widget_match_add (screen->priv->term, +- "\\<(www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+" +- "(:[0-9]+)?(" URLPATH ")?\\>/?", ++ "[[:<:]](www|ftp)[" HOSTCHARS "]*\\.[" HOSTCHARS ".]+" ++ "(:[0-9]+)?(" URLPATH ")?[[:>:]]/?", + 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][a-z0-9-]*)+\\>", ++ "[[:<:]](mailto:)?[a-z0-9][a-z0-9.-]*@[a-z0-9]" ++ "[a-z0-9-]*(\\.[a-z0-9][a-z0-9-]*)+[[:>:]]", + FLAVOR_EMAIL); + + terminal_widget_match_add (screen->priv->term, +- "\\<news:[-A-Z\\^_a-z{|}~!\"#$%&'()*+,./0-9;:=?`]+" +- "@[" HOSTCHARS ".]+(:[0-9]+)?\\>", FLAVOR_AS_IS); ++ "[[:<:]]news:[-A-Z\\^_a-z{|}~!\"#$%&'()*+,./0-9;:=?`]+" ++ "@[" HOSTCHARS ".]+(:[0-9]+)?[[:>:]]", FLAVOR_AS_IS); + + terminal_screen_setup_dnd (screen); + |