pkgsrc-Bugs archive

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

pkg/49200: www/lynx: enable wide-char support



>Number:         49200
>Category:       pkg
>Synopsis:       www/lynx: enable wide-char support
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 12 17:50:00 +0000 2014
>Originator:     Leonard Schmidt
>Release:        NetBSD 7.99.1 with pkgsrc -current as of today (20140912)
>Organization:
>Environment:
NetBSD zettel.klingsor.lan 7.99.1 NetBSD 7.99.1 (GENERIC) #0: Fri Sep 12 
14:50:58 CEST 2014  
root%zettel.klingsor.lan@localhost:/usr/obj/sys/arch/amd64/compile/GENERIC amd64

>Description:
Hello,

the lynx package has an ncursesw option, but --with-screen=ncurses is used, not 
ncursesw. I also had to patch a file (src/LYStrings.c) because it did not know 
about strnames or so. No idea if the patch is correct, it worked for me, lynx 
finally displays umlauts and unicode characters correctly.

Leonard
>How-To-Repeat:

>Fix:
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/www/lynx/distinfo,v
retrieving revision 1.30
diff -u -p -r1.30 distinfo
--- distinfo    12 Mar 2014 10:13:15 -0000      1.30
+++ distinfo    12 Sep 2014 17:19:45 -0000
@@ -5,4 +5,5 @@ RMD160 (lynx2.8.8rel.2.tar.bz2) = a683f9
 Size (lynx2.8.8rel.2.tar.bz2) = 2587120 bytes
 SHA1 (patch-aa) = 85e76c4b2708e01dd1abdc1af764a067bd83bcb9
 SHA1 (patch-ab) = 26fab3bd426a76df530e6780eefe36464059bc6a
+SHA1 (patch-ac) = 598cea75484ecffb71b6f150a186c062701ce35a
 SHA1 (patch-af) = 31399c0c3394b90c0680708fff06f6f9e19674b3
Index: options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/www/lynx/options.mk,v
retrieving revision 1.13
diff -u -p -r1.13 options.mk
--- options.mk  12 Jun 2012 15:46:04 -0000      1.13
+++ options.mk  12 Sep 2014 17:19:45 -0000
@@ -41,7 +41,7 @@ USE_NCURSES=          YES # color
 CONFIGURE_ARGS+=       --enable-color-style
 .endif
 .if !empty(PKG_OPTIONS:Mncursesw)
-SCREENTYPE=            ncurses
+SCREENTYPE=            ncursesw
 LIBS+=                 -lncursesw
 .  include "../../devel/ncursesw/buildlink3.mk"
 CONFIGURE_ARGS+=       --enable-color-style
Index: patches/patch-ac
===================================================================
RCS file: patches/patch-ac
diff -N patches/patch-ac
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-ac    12 Sep 2014 17:19:45 -0000
@@ -0,0 +1,15 @@
+$NetBSD$
+
+--- src/LYStrings.c.orig       2013-11-29 00:52:56.000000000 +0000
++++ src/LYStrings.c
+@@ -40,6 +40,10 @@
+ #include <LYrcFile.h>
+ #endif
+ 
++#ifdef NCURSES
++#include <ncurses/term.h>
++#endif
++
+ #include <LYShowInfo.h>
+ #include <LYLeaks.h>
+ 



Home | Main Index | Thread Index | Old Index