pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www Support single quote meta refresh. Bump revision.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bd1b55319397
branches:  trunk
changeset: 587369:bd1b55319397
user:      uebayasi <uebayasi%pkgsrc.org@localhost>
date:      Tue Apr 05 05:55:29 2011 +0000

description:
Support single quote meta refresh.  Bump revision.

pkg/42400 by Ryo ONODERA, thanks.

diffstat:

 www/w3m-img/Makefile     |   3 ++-
 www/w3m/Makefile         |   3 ++-
 www/w3m/distinfo         |   3 ++-
 www/w3m/patches/patch-al |  32 ++++++++++++++++++++++++++++++++
 4 files changed, 38 insertions(+), 3 deletions(-)

diffs (74 lines):

diff -r 1662e74b0983 -r bd1b55319397 www/w3m-img/Makefile
--- a/www/w3m-img/Makefile      Tue Apr 05 05:43:19 2011 +0000
+++ b/www/w3m-img/Makefile      Tue Apr 05 05:55:29 2011 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.21 2011/01/21 23:34:14 wiz Exp $
+# $NetBSD: Makefile,v 1.22 2011/04/05 05:55:30 uebayasi Exp $
 
 PKGNAME=       w3m-img-${W3M_VERS}
+PKGREVISION=   1
 COMMENT=       Multilingualized version of a pager/text-based browser w3m with inline image support
 
 CONFLICTS+=    w3m-[0-9]*
diff -r 1662e74b0983 -r bd1b55319397 www/w3m/Makefile
--- a/www/w3m/Makefile  Tue Apr 05 05:43:19 2011 +0000
+++ b/www/w3m/Makefile  Tue Apr 05 05:55:29 2011 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.59 2011/01/21 23:34:13 wiz Exp $
+# $NetBSD: Makefile,v 1.60 2011/04/05 05:55:29 uebayasi Exp $
 
 PKGNAME=       w3m-${W3M_VERS}
+PKGREVISION=   1
 COMMENT=       Multilingualized version of a pager/text-based browser w3m
 
 CONFLICTS+=    w3m-img-[0-9]*
diff -r 1662e74b0983 -r bd1b55319397 www/w3m/distinfo
--- a/www/w3m/distinfo  Tue Apr 05 05:43:19 2011 +0000
+++ b/www/w3m/distinfo  Tue Apr 05 05:55:29 2011 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.22 2011/01/21 23:34:13 wiz Exp $
+$NetBSD: distinfo,v 1.23 2011/04/05 05:55:29 uebayasi Exp $
 
 SHA1 (w3m-0.5.3.tar.gz) = 444b6c8cf7094ee95f8e9de96b37f814b9d83237
 RMD160 (w3m-0.5.3.tar.gz) = 6a0153bc53f7c107c700404262ce1b4d02e6dd91
@@ -7,3 +7,4 @@
 SHA1 (patch-ab) = 2d60d7a2946f13a185591c0b927cf0f8b5ea351b
 SHA1 (patch-ac) = 37c6c78a208c50876641aa90164cc46106403260
 SHA1 (patch-ak) = ac0ee99d5ab49c431cfa496d0d2d509efd6b06fa
+SHA1 (patch-al) = 8b393004eed249449151d1f2b9252fcb1b55922d
diff -r 1662e74b0983 -r bd1b55319397 www/w3m/patches/patch-al
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/w3m/patches/patch-al  Tue Apr 05 05:55:29 2011 +0000
@@ -0,0 +1,32 @@
+$NetBSD: patch-al,v 1.1 2011/04/05 05:55:29 uebayasi Exp $
+
+http://gnats.netbsd.org/42400
+
+this patch adds support for single quoted meta refresh parameters, which is
+needed to access GMail with w3m.
+
+from: Paul Boekholt ( boekholt ) - 2008-09-06 06:54
+support single quoted meta refresh parameter - ID: 2096461
+http://sourceforge.net/tracker/?func=detail&aid=2096461&group_id=39518&atid=425441
+
+--- file.c.orig        2011-01-04 09:22:21.000000000 +0000
++++ file.c
+@@ -4284,15 +4284,15 @@ getMetaRefreshParam(char *q, Str *refres
+     while (*q) {
+       if (!strncasecmp(q, "url=", 4)) {
+           q += 4;
+-          if (*q == '\"')     /* " */
++          if (*q == '\"' || *q == '\'')       /* " or ' */
+               q++;
+           r = q;
+           while (*r && !IS_SPACE(*r) && *r != ';')
+               r++;
+           s_tmp = Strnew_charp_n(q, r - q);
+ 
+-          if (s_tmp->ptr[s_tmp->length - 1] == '\"') {        /* " 
+-                                                               */
++          if (s_tmp->ptr[s_tmp->length - 1] == '\"' ||        /* " */
++              s_tmp->ptr[s_tmp->length - 1] == '\'') {        /* ' */
+               s_tmp->length--;
+               s_tmp->ptr[s_tmp->length] = '\0';
+           }



Home | Main Index | Thread Index | Old Index