pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/mutt-devel Avoid using ncurses functions when usi...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e4df3af055ac
branches:  trunk
changeset: 480513:e4df3af055ac
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Sep 12 04:26:20 2004 +0000

description:
Avoid using ncurses functions when using S-Lang as the curses library.
Fix from PR pkg/26758 by Holger Weiss.

diffstat:

 mail/mutt-devel/distinfo         |   3 ++-
 mail/mutt-devel/patches/patch-am |  26 ++++++++++++++++++++++++++
 2 files changed, 28 insertions(+), 1 deletions(-)

diffs (44 lines):

diff -r af6a65b41feb -r e4df3af055ac mail/mutt-devel/distinfo
--- a/mail/mutt-devel/distinfo  Sun Sep 12 02:37:24 2004 +0000
+++ b/mail/mutt-devel/distinfo  Sun Sep 12 04:26:20 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.18 2004/08/05 03:24:39 jlam Exp $
+$NetBSD: distinfo,v 1.19 2004/09/12 04:26:20 jlam Exp $
 
 SHA1 (mutt-1.5.6i.tar.gz) = 5b3ea613abeff4007fadc38946806aee2f225f48
 Size (mutt-1.5.6i.tar.gz) = 2910730 bytes
@@ -9,3 +9,4 @@
 SHA1 (patch-ah) = 4227c5768b900e58fa4a679e6ad67efc974a70b5
 SHA1 (patch-ai) = e9a872cdde09dfae012d63a475f100e8be70acb5
 SHA1 (patch-al) = e645a9daf6d439292a83bb196b19bede3fa046e1
+SHA1 (patch-am) = 8fb3b3d4b387af9f7ada3c7752a9501a08b47319
diff -r af6a65b41feb -r e4df3af055ac mail/mutt-devel/patches/patch-am
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/mutt-devel/patches/patch-am  Sun Sep 12 04:26:20 2004 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-am,v 1.1 2004/09/12 04:26:20 jlam Exp $
+
+--- menu.c.orig        Sun Feb  1 12:10:57 2004
++++ menu.c
+@@ -38,7 +38,9 @@ static void print_enriched_string (int a
+   size_t k;
+   size_t n = mutt_strlen ((char *)s);
+   mbstate_t mbstate;
++#ifndef USE_SLANG_CURSES
+   short f1, f2, b1, b2;
++#endif
+ 
+   memset (&mbstate, 0, sizeof (mbstate));
+   while (*s)
+@@ -47,9 +49,11 @@ static void print_enriched_string (int a
+     {
+       if (do_color)
+       {
++#ifndef USE_SLANG_CURSES
+       pair_content(PAIR_NUMBER(ColorDefs[MT_COLOR_TREE]), &f1, &b1);
+       pair_content(PAIR_NUMBER(attr), &f2, &b2);
+       if (b1 == b2)
++#endif
+         SETCOLOR (MT_COLOR_TREE);
+       }
+       while (*s && *s < M_TREE_MAX)



Home | Main Index | Thread Index | Old Index