diff options
author | uebayasi <uebayasi@pkgsrc.org> | 2011-04-05 05:55:29 +0000 |
---|---|---|
committer | uebayasi <uebayasi@pkgsrc.org> | 2011-04-05 05:55:29 +0000 |
commit | 75238402ba02aa1f0f5c38a9d21427f5965a886f (patch) | |
tree | b99b2e99b744193a4715c911f26bc7c94528a771 /www/w3m | |
parent | 7dc98a08cb91a5c363544c4bdd15db4d557ed010 (diff) | |
download | pkgsrc-75238402ba02aa1f0f5c38a9d21427f5965a886f.tar.gz |
Support single quote meta refresh. Bump revision.
pkg/42400 by Ryo ONODERA, thanks.
Diffstat (limited to 'www/w3m')
-rw-r--r-- | www/w3m/Makefile | 3 | ||||
-rw-r--r-- | www/w3m/distinfo | 3 | ||||
-rw-r--r-- | www/w3m/patches/patch-al | 32 |
3 files changed, 36 insertions, 2 deletions
diff --git a/www/w3m/Makefile b/www/w3m/Makefile index dad127a6d5c..704bd0bb10b 100644 --- a/www/w3m/Makefile +++ b/www/w3m/Makefile @@ -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 --git a/www/w3m/distinfo b/www/w3m/distinfo index 43db534e0d4..0594a96ebb5 100644 --- a/www/w3m/distinfo +++ b/www/w3m/distinfo @@ -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-aa) = 2de78a6db9bd483416895b393935ccadab879932 SHA1 (patch-ab) = 2d60d7a2946f13a185591c0b927cf0f8b5ea351b SHA1 (patch-ac) = 37c6c78a208c50876641aa90164cc46106403260 SHA1 (patch-ak) = ac0ee99d5ab49c431cfa496d0d2d509efd6b06fa +SHA1 (patch-al) = 8b393004eed249449151d1f2b9252fcb1b55922d diff --git a/www/w3m/patches/patch-al b/www/w3m/patches/patch-al new file mode 100644 index 00000000000..5a2aadc37a1 --- /dev/null +++ b/www/w3m/patches/patch-al @@ -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'; + } |