pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/greed Add workaround for no good definision of C...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6fe7461a0522
branches:  trunk
changeset: 528764:6fe7461a0522
user:      obache <obache%pkgsrc.org@localhost>
date:      Tue May 15 13:28:21 2007 +0000

description:
Add workaround for no good definision of COLOR_PAIR on NetBSD<=3.*.

diffstat:

 games/greed/distinfo         |   4 ++--
 games/greed/patches/patch-ab |  11 ++++++++++-
 2 files changed, 12 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 375d000f7867 -r 6fe7461a0522 games/greed/distinfo
--- a/games/greed/distinfo      Tue May 15 13:19:13 2007 +0000
+++ b/games/greed/distinfo      Tue May 15 13:28:21 2007 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.2 2007/02/27 07:50:48 wiz Exp $
+$NetBSD: distinfo,v 1.3 2007/05/15 13:28:21 obache Exp $
 
 SHA1 (greed-3.4.tar.gz) = d70bd592378531d6726dfe00d3627e13b9dd9cce
 RMD160 (greed-3.4.tar.gz) = 13c432c030d333d0b6722263067dfab2fb2cf26e
 Size (greed-3.4.tar.gz) = 11463 bytes
 SHA1 (patch-aa) = 53acf3944f5e59dc7862196168aeb5c5882cae89
-SHA1 (patch-ab) = 66c1a503818f5852432079dd45528d90ff2d23a1
+SHA1 (patch-ab) = 7c1e486d202d46af857da983d90e72478c08ef20
diff -r 375d000f7867 -r 6fe7461a0522 games/greed/patches/patch-ab
--- a/games/greed/patches/patch-ab      Tue May 15 13:19:13 2007 +0000
+++ b/games/greed/patches/patch-ab      Tue May 15 13:28:21 2007 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-ab,v 1.1.1.1 2007/02/24 21:06:00 wiz Exp $
+$NetBSD: patch-ab,v 1.2 2007/05/15 13:28:22 obache Exp $
 
 --- greed.c.orig       2002-07-30 22:03:43.000000000 +0000
 +++ greed.c
@@ -22,3 +22,12 @@
        int attribs[9];
  #ifdef A_COLOR
        char *colors;
+@@ -276,7 +277,7 @@ char *argv[];
+                                               init_pair(cp-colors+1,
+                                                       strchr(cnames, tolower(*cp))-cnames,
+                                                       COLOR_BLACK);
+-                                              attribs[cp-colors]=COLOR_PAIR(cp-colors+1);
++                                              attribs[cp-colors]=COLOR_PAIR((cp-colors+1));
+                                               if (isupper(*cp))
+                                                       attribs[cp-colors] |= A_BOLD;
+                                       }



Home | Main Index | Thread Index | Old Index