summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorsmb <smb>2009-07-18 02:49:15 +0000
committersmb <smb>2009-07-18 02:49:15 +0000
commit9e167568f8b7c451deba5612e66b808ccccd6257 (patch)
treeb38525a0d8195c0ae6895bbf4d740a07a53114dd /games
parent2acd9fd65629d0cf9463d20990389960534f1867 (diff)
downloadpkgsrc-9e167568f8b7c451deba5612e66b808ccccd6257.tar.gz
Change getline() to get_line()
Diffstat (limited to 'games')
-rw-r--r--games/frotz/Makefile4
-rw-r--r--games/frotz/distinfo3
-rw-r--r--games/frotz/patches/patch-pb31
3 files changed, 35 insertions, 3 deletions
diff --git a/games/frotz/Makefile b/games/frotz/Makefile
index b59b6c49276..21ae810b085 100644
--- a/games/frotz/Makefile
+++ b/games/frotz/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.23 2008/03/04 06:59:04 jlam Exp $
+# $NetBSD: Makefile,v 1.24 2009/07/18 02:49:15 smb Exp $
DISTNAME= frotz-2.43
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= games
# The maintainer has asked us to use the mirrors instead of www.cs.csubak.edu.
#MASTER_SITES= http://www.cs.csubak.edu/~dgriffi/frotz/files/
diff --git a/games/frotz/distinfo b/games/frotz/distinfo
index af280dbbe9f..407c2415807 100644
--- a/games/frotz/distinfo
+++ b/games/frotz/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.9 2005/02/23 23:11:58 agc Exp $
+$NetBSD: distinfo,v 1.10 2009/07/18 02:49:15 smb Exp $
SHA1 (frotz-2.43.tar.gz) = 2b2684ec670b471489c15be732c7dd1c59821b00
RMD160 (frotz-2.43.tar.gz) = ccfc303e116e517caff0fec8f3bd555dfc02ae4e
Size (frotz-2.43.tar.gz) = 160771 bytes
SHA1 (patch-aa) = a938f7889bca24f182a440c18f468eabe6ce40a5
+SHA1 (patch-pb) = e7d63332e82b5835de051ec0696a76dbe3822042
diff --git a/games/frotz/patches/patch-pb b/games/frotz/patches/patch-pb
new file mode 100644
index 00000000000..b74516be649
--- /dev/null
+++ b/games/frotz/patches/patch-pb
@@ -0,0 +1,31 @@
+$NetBSD: patch-pb,v 1.1 2009/07/18 02:49:15 smb Exp $
+
+--- src/dumb/dumb_input.c.orig 2009-07-17 22:42:30.000000000 -0400
++++ src/dumb/dumb_input.c 2009-07-17 22:42:49.000000000 -0400
+@@ -79,7 +79,7 @@
+ /* Read one line, including the newline, into s. Safely avoids buffer
+ * overruns (but that's kind of pointless because there are several
+ * other places where I'm not so careful). */
+-static void getline(char *s)
++static void get_line(char *s)
+ {
+ int c;
+ char *p = s;
+@@ -203,7 +203,7 @@
+ fputs(prompt, stdout);
+ else
+ dumb_show_prompt(show_cursor, (timeout ? "tTD" : ")>}")[type]);
+- getline(s);
++ get_line(s);
+ if ((s[0] != '\\') || ((s[1] != '\0') && !islower(s[1]))) {
+ /* Is not a command line. */
+ translate_special_chars(s);
+@@ -265,7 +265,7 @@
+ if (!*current_page)
+ break;
+ printf("HELP: Type <return> for more, or q <return> to stop: ");
+- getline(s);
++ get_line(s);
+ if (!strcmp(s, "q\n"))
+ break;
+ }