pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/level9 Apply patch provided by Brett Lymn to mak...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3ae574ae62f6
branches: trunk
changeset: 462385:3ae574ae62f6
user: dillo <dillo%pkgsrc.org@localhost>
date: Wed Oct 01 20:21:40 2003 +0000
description:
Apply patch provided by Brett Lymn to make this work with NetBSD's curses.
Bump PKGREVISION.
diffstat:
games/level9/Makefile | 8 +++++---
games/level9/distinfo | 4 ++--
games/level9/patches/patch-aa | 33 +++++++++++++++++++++++++++++----
3 files changed, 36 insertions(+), 9 deletions(-)
diffs (89 lines):
diff -r af0b96dd4703 -r 3ae574ae62f6 games/level9/Makefile
--- a/games/level9/Makefile Wed Oct 01 19:55:17 2003 +0000
+++ b/games/level9/Makefile Wed Oct 01 20:21:40 2003 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.3 2003/09/28 09:13:57 jlam Exp $
+# $NetBSD: Makefile,v 1.4 2003/10/01 20:21:40 dillo Exp $
#
DISTNAME= Level9_3.0_Source
PKGNAME= level9-3.0
+PKGREVISION= 1
WRKSRC= ${WRKDIR}/Unix
CATEGORIES= games
MASTER_SITES= http://www.ifarchive.org/if-archive/level9/interpreters/level9/
@@ -13,8 +14,9 @@
COMMENT= Curses port of the Level 9 text adventure interpreter
USE_BUILDLINK2= yes
-# uses halfkey (present since 1.6M), but still doesn't work
-USE_NCURSES= yes
+# uses halfkey (present since 1.6M)
+INCOMPAT_CURSES+= NetBSD-1.4[Y-Z]* NetBSD-1.5* NetBSD-1.6 NetBSD-1.6.*
+INCOMPAT_CURSES+= NetBSD-1.6[A-L]*
post-extract:
${CP} ${FILESDIR}/Makefile ${WRKSRC}
diff -r af0b96dd4703 -r 3ae574ae62f6 games/level9/distinfo
--- a/games/level9/distinfo Wed Oct 01 19:55:17 2003 +0000
+++ b/games/level9/distinfo Wed Oct 01 20:21:40 2003 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.3 2003/09/17 14:13:17 dillo Exp $
+$NetBSD: distinfo,v 1.4 2003/10/01 20:21:40 dillo Exp $
SHA1 (Level9_3.0_Source.zip) = f50d0712c3ae9c3ff98bb1806bd92df50d8feec7
Size (Level9_3.0_Source.zip) = 202924 bytes
-SHA1 (patch-aa) = 2267bf7782092339fa788b9a76f03e5cd6eecf9c
+SHA1 (patch-aa) = 2fda19e85676e7eadf94d109a1ba0e02a17e9d84
diff -r af0b96dd4703 -r 3ae574ae62f6 games/level9/patches/patch-aa
--- a/games/level9/patches/patch-aa Wed Oct 01 19:55:17 2003 +0000
+++ b/games/level9/patches/patch-aa Wed Oct 01 20:21:40 2003 +0000
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.1 2003/09/17 14:13:19 dillo Exp $
+$NetBSD: patch-aa,v 1.2 2003/10/01 20:21:40 dillo Exp $
---- unix-curses.c.orig Wed Sep 17 20:53:54 2003
-+++ unix-curses.c Wed Sep 17 20:54:37 2003
+--- unix-curses.c.orig Sun Apr 21 21:37:00 2002
++++ unix-curses.c
@@ -10,11 +10,6 @@
*
* A few notes on this port:
@@ -26,7 +26,12 @@
* Define this as 1 to get the Emacs-type key bindings
* Ctrl-A (go to beginning of line)
* Ctrl-B (back one character)
-@@ -745,21 +735,6 @@
+@@ -741,25 +731,11 @@ int main (int argc, char *argv [])
+ char gamename [256];
+ char *envbuf;
+ L9BOOL gotgame;
++ char bp[1024];
+
/*
* Check byte sex
*/
@@ -48,3 +53,23 @@
if (argc != 2)
{
+@@ -786,8 +762,9 @@ int main (int argc, char *argv [])
+ /*
+ * Get the terminal characteristics for line width and More prompt
+ */
++ tgetent(bp, getenv("TERM"));
+ Line_width = tgetnum ("co");
+- if (Line_width == ERR)
++ if ((Line_width == -1) || (Line_width == ERR))
+ {
+ fprintf (stderr, "Couldn't get terminal width---falling back on good old"
+ " 80 columns\n\n");
+@@ -795,7 +772,7 @@ int main (int argc, char *argv [])
+ }
+
+ More_lines = tgetnum ("li");
+- if (More_lines == ERR)
++ if ((More_lines == -1) || (More_lines == ERR))
+ {
+ fprintf (stderr, "Couldn't get terminal height---guessing\n\n");
+ More_lines = 24;
Home |
Main Index |
Thread Index |
Old Index