pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/velena Imported velena.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/07358ecdaf13
branches:  trunk
changeset: 531197:07358ecdaf13
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Wed Jul 25 00:11:10 2007 +0000

description:
Imported velena.

Velena is a program playing connect-four based on the work of Victor
Allis, who proved in 1986 that the first player can always win.

diffstat:

 games/velena/DESCR            |   2 ++
 games/velena/Makefile         |  25 +++++++++++++++++++++++++
 games/velena/PLIST            |   3 +++
 games/velena/distinfo         |  10 ++++++++++
 games/velena/patches/patch-aa |  34 ++++++++++++++++++++++++++++++++++
 games/velena/patches/patch-ab |  14 ++++++++++++++
 games/velena/patches/patch-ac |  22 ++++++++++++++++++++++
 games/velena/patches/patch-ad |  14 ++++++++++++++
 games/velena/patches/patch-ae |  14 ++++++++++++++
 9 files changed, 138 insertions(+), 0 deletions(-)

diffs (174 lines):

diff -r 545a56daf171 -r 07358ecdaf13 games/velena/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/velena/DESCR        Wed Jul 25 00:11:10 2007 +0000
@@ -0,0 +1,2 @@
+Velena is a program playing connect-four based on the work of Victor
+Allis, who proved in 1986 that the first player can always win.
diff -r 545a56daf171 -r 07358ecdaf13 games/velena/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/velena/Makefile     Wed Jul 25 00:11:10 2007 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/07/25 00:11:10 rillig Exp $
+#
+
+DISTNAME=      veleng10
+PKGNAME=       velena-1.0
+CATEGORIES=    games
+MASTER_SITES=  http://www.ce.unipr.it/~gbe/
+EXTRACT_SUFX=  .zip
+
+MAINTAINER=    rillig%NetBSD.org@localhost
+HOMEPAGE=      http://www.ce.unipr.it/~gbe/
+COMMENT=       Perfect-play engine for connect four
+
+#LICENSE=      public-domain
+
+EXTRACT_OPTS_ZIP=      -LLaqo
+WRKSRC=                        ${WRKDIR}
+MAKE_FILE=             makefile
+INSTALLATION_DIRS_FROM_PLIST=  yes
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/veleng ${DESTDIR}${PREFIX}/bin/velena
+       ${INSTALL_DATA} ${WRKSRC}/readme ${DESTDIR}${PREFIX}/share/doc/velena/README
+
+.include "../../mk/bsd.pkg.mk"
diff -r 545a56daf171 -r 07358ecdaf13 games/velena/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/velena/PLIST        Wed Jul 25 00:11:10 2007 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/07/25 00:11:10 rillig Exp $
+bin/velena
+share/doc/velena/README
diff -r 545a56daf171 -r 07358ecdaf13 games/velena/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/velena/distinfo     Wed Jul 25 00:11:10 2007 +0000
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/07/25 00:11:10 rillig Exp $
+
+SHA1 (veleng10.zip) = f9af1cc6f809347151bee4763a62073fe56ef9b4
+RMD160 (veleng10.zip) = a8cc6933196140b5ac941f4369e9bb422a885851
+Size (veleng10.zip) = 243352 bytes
+SHA1 (patch-aa) = 810ca44164b273710fccf8237b1b5343d3354e9d
+SHA1 (patch-ab) = 91138783750acf293b0df4a0d9a34373ec5627d8
+SHA1 (patch-ac) = dd01e7c0231c715421ef56a230e44b2e075b6f67
+SHA1 (patch-ad) = 11e71c97346be1ecd1cef65a1fe2a27805ca0bee
+SHA1 (patch-ae) = d08ca8a02db09bd1013e3823308a445796ca3897
diff -r 545a56daf171 -r 07358ecdaf13 games/velena/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/velena/patches/patch-aa     Wed Jul 25 00:11:10 2007 +0000
@@ -0,0 +1,34 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/07/25 00:11:10 rillig Exp $
+
+Make the program work on OpenBSD. ;)
+
+--- pnsearch.c.orig    1997-07-27 17:44:30.000000000 +0200
++++ pnsearch.c 2007-07-25 01:57:10.000000000 +0200
+@@ -113,7 +113,7 @@ void show_pinfo()
+     if(parameters.pr>0 && parameters.ds>0)
+         {
+         sprintf(st," Nodes: %5ld/%-5ld   P=%-3d   D=%-3d   Time: %2d:%02d:%02d   SEQ=%s   %s",
+-                parameters.nodes,parameters.maxnodes,parameters.pr,parameters.ds,hh,mm,ss,
++                parameters.nodes,parameters.maxnodes,(int)parameters.pr,(int)parameters.ds,hh,mm,ss,
+                 seqs,adv[a]);
+         }
+     else if(parameters.pr==0)
+@@ -157,7 +157,7 @@ void change_max_nodes_numb(void)
+ 
+ void change_sequence()
+       {
+-      short seq[BOARDX],done[BOARDX],x,valid=YES;
++      int seq[BOARDX],done[BOARDX],x,valid=YES;
+ 
+       for(x=0;x<BOARDX;x++)
+               done[x]=NO;
+@@ -999,7 +999,8 @@ void build_associated_file()
+     unsigned short key;
+ 
+     printf("Input file to parse : ");
+-    gets(filein);
++    if (fgets(filein, sizeof(filein), stdin) == NULL)
++        exit(0);
+ 
+     printf("Start from sequence #1 ? (Y/N)\n");
+     do
diff -r 545a56daf171 -r 07358ecdaf13 games/velena/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/velena/patches/patch-ab     Wed Jul 25 00:11:10 2007 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ab,v 1.1.1.1 2007/07/25 00:11:10 rillig Exp $
+
+--- cmdline.c.orig     2007-07-25 01:53:41.000000000 +0200
++++ cmdline.c  2007-07-25 01:54:04.000000000 +0200
+@@ -51,7 +51,8 @@ void command_line_input(struct board *bo
+ 
+      do {
+         printf(">");   // Waiting for the user to enter the string
+-        gets(st);
++        if (fgets(st, sizeof(st), stdin) == NULL)
++            break;
+ 
+         if(st[0]=='q') flag = 0;   // if the string begins with 'q' we quit.
+         else {        
diff -r 545a56daf171 -r 07358ecdaf13 games/velena/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/velena/patches/patch-ac     Wed Jul 25 00:11:10 2007 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-ac,v 1.1.1.1 2007/07/25 00:11:10 rillig Exp $
+
+--- connect4.c.orig    1997-07-27 17:29:38.000000000 +0200
++++ connect4.c 2007-07-25 01:52:05.000000000 +0200
+@@ -276,7 +276,7 @@ void initTitle()
+     printf("All rights reserved.\n\n");
+     }
+ 
+-void main(short ac,char **av)
++int main(void)
+       {
+       short x;
+       struct board *board;
+@@ -324,7 +324,7 @@ void main(short ac,char **av)
+ 
+         free(board->solvable_groups);
+         free(board);
+-        exit(0);
++        return 0;
+         }
+ 
+ 
diff -r 545a56daf171 -r 07358ecdaf13 games/velena/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/velena/patches/patch-ad     Wed Jul 25 00:11:10 2007 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ad,v 1.1.1.1 2007/07/25 00:11:10 rillig Exp $
+
+--- database.c.orig    1997-07-27 17:44:50.000000000 +0200
++++ database.c 2007-07-25 01:52:55.000000000 +0200
+@@ -698,7 +698,8 @@ void merge()
+       char filename[255];
+ 
+       printf("Enter name of file to merge: ");
+-      gets(filename);
++      if (fgets(filename, sizeof(filename), stdin) == NULL)
++              exit(0);
+ 
+       printf("\n");
+       printf("Sure you want to merge '%s' ? (Y/N)\n\n",filename);
diff -r 545a56daf171 -r 07358ecdaf13 games/velena/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/velena/patches/patch-ae     Wed Jul 25 00:11:10 2007 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ae,v 1.1.1.1 2007/07/25 00:11:10 rillig Exp $
+
+--- evaluate.c.orig    1997-07-27 17:15:12.000000000 +0200
++++ evaluate.c 2007-07-25 02:01:38.000000000 +0200
+@@ -73,7 +73,8 @@ void show_square_used(struct board *boar
+ 
+ void test_conditions(char **matrix,struct board *board)
+       {
+-      short x,y,z,n1,n2,x1,y1;
++      int x,y;
++      short z,n1,n2,x1,y1;
+ 
+       printf("Enter rule 1 number : ");
+       scanf("%d %d",&x,&y);



Home | Main Index | Thread Index | Old Index