From fadac41fe0b5093a02762b5724bd0897ad3abe86 Mon Sep 17 00:00:00 2001 From: dcoppa Date: Tue, 20 Oct 2015 07:46:28 +0000 Subject: [PATCH] Update to gnuchess-6.2.2 --- games/gnuchess/Makefile | 6 ++++-- games/gnuchess/distinfo | 4 ++-- games/gnuchess/patches/patch-src_main_cc | 14 ++++++++++++++ games/gnuchess/pkg/PLIST | 3 ++- 4 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 games/gnuchess/patches/patch-src_main_cc diff --git a/games/gnuchess/Makefile b/games/gnuchess/Makefile index e0fc68a2073..d03a5c4f97f 100644 --- a/games/gnuchess/Makefile +++ b/games/gnuchess/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.35 2015/04/17 08:00:42 phessler Exp $ +# $OpenBSD: Makefile,v 1.36 2015/10/20 07:46:28 dcoppa Exp $ COMMENT= chess program BROKEN-sparc= ./gnuchess --addbook book_1.02.pgn ; cannot allocate memory -DISTNAME= gnuchess-6.2.1 +DISTNAME= gnuchess-6.2.2 DISTFILES= ${DISTNAME}.tar.gz book_1.02.pgn.gz CATEGORIES= games @@ -17,6 +17,8 @@ WANTLIB += c m ncurses pthread readline stdc++ MODULES= devel/gettext +BUILD_DEPENDS= devel/help2man + CONFIGURE_STYLE= gnu CONFIGURE_ENV= PTHREAD_LIBS=-lpthread diff --git a/games/gnuchess/distinfo b/games/gnuchess/distinfo index 280593bad58..9bf7eba9191 100644 --- a/games/gnuchess/distinfo +++ b/games/gnuchess/distinfo @@ -1,4 +1,4 @@ SHA256 (book_1.02.pgn.gz) = 3qx37bBhpZJJoZ3rA9o0nK4FHlJSemy1r4CNk5jTLUQ= -SHA256 (gnuchess-6.2.1.tar.gz) = F8qrclU5RHvLF6FLF5BSQsvyhwh+U6Z3dST+t7uu7QY= +SHA256 (gnuchess-6.2.2.tar.gz) = d3bBFO61iJ3qadxHFaNiLsV/Ze+rZnmH59cYPMBTgag= SIZE (book_1.02.pgn.gz) = 26265281 -SIZE (gnuchess-6.2.1.tar.gz) = 730761 +SIZE (gnuchess-6.2.2.tar.gz) = 747054 diff --git a/games/gnuchess/patches/patch-src_main_cc b/games/gnuchess/patches/patch-src_main_cc new file mode 100644 index 00000000000..1f4425ec2b2 --- /dev/null +++ b/games/gnuchess/patches/patch-src_main_cc @@ -0,0 +1,14 @@ +$OpenBSD: patch-src_main_cc,v 1.1 2015/10/20 07:46:28 dcoppa Exp $ + +upstream svn revision r128: set QUIT flag for -a option (--addbook) + +--- src/main.cc.orig Tue Oct 13 01:03:42 2015 ++++ src/main.cc Tue Oct 20 09:24:16 2015 +@@ -412,6 +412,7 @@ There is NO WARRANTY, to the extent permitted by law.\ + char data[9+MAXSTR+1+4]=""; + sprintf( data, "book add %s\nquit", opt_addbook ); + SendToEngine( data ); ++ SET (flags, QUIT); + } + + if ( opt_easy == 0 ) diff --git a/games/gnuchess/pkg/PLIST b/games/gnuchess/pkg/PLIST index e82aa91d3f4..404e358ea89 100644 --- a/games/gnuchess/pkg/PLIST +++ b/games/gnuchess/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $OpenBSD: PLIST,v 1.9 2015/01/11 12:59:43 kirby Exp $ +@comment $OpenBSD: PLIST,v 1.10 2015/10/20 07:46:28 dcoppa Exp $ @bin bin/gnuchess bin/gnuchessu bin/gnuchessx @@ -19,6 +19,7 @@ share/gnuchess/smallbook.bin share/locale/de/LC_MESSAGES/gnuchess.mo share/locale/eo/LC_MESSAGES/gnuchess.mo share/locale/es/LC_MESSAGES/gnuchess.mo +share/locale/fr/LC_MESSAGES/gnuchess.mo share/locale/gl/LC_MESSAGES/gnuchess.mo share/locale/nb/LC_MESSAGES/gnuchess.mo share/locale/nl/LC_MESSAGES/gnuchess.mo