From c6fe0e4ef34f18143c41f661b216097dde630039 Mon Sep 17 00:00:00 2001 From: minskim Date: Mon, 8 Mar 2004 05:52:34 +0000 Subject: Import gnuchess-book to replace gnuchess-book-chess. This package used to be a part of gnuchess, but is now distributed separately with its own distfile and version number. Provided by Michal Pasternak in PR pkg/24700 and slightly modified by me. --- games/gnuchess-book/DESCR | 1 + games/gnuchess-book/Makefile | 38 ++++++++++++++++++++++++++++++++++++++ games/gnuchess-book/PLIST | 2 ++ games/gnuchess-book/distinfo | 4 ++++ 4 files changed, 45 insertions(+) create mode 100644 games/gnuchess-book/DESCR create mode 100644 games/gnuchess-book/Makefile create mode 100644 games/gnuchess-book/PLIST create mode 100644 games/gnuchess-book/distinfo (limited to 'games') diff --git a/games/gnuchess-book/DESCR b/games/gnuchess-book/DESCR new file mode 100644 index 00000000000..0eb7d4b2cb3 --- /dev/null +++ b/games/gnuchess-book/DESCR @@ -0,0 +1 @@ +Default book of chess openings for GNU Chess. diff --git a/games/gnuchess-book/Makefile b/games/gnuchess-book/Makefile new file mode 100644 index 00000000000..d98447cf680 --- /dev/null +++ b/games/gnuchess-book/Makefile @@ -0,0 +1,38 @@ +# $NetBSD: Makefile,v 1.1.1.1 2004/03/08 05:52:34 minskim Exp $ +# + +DISTNAME= book_1.01.pgn +PKGNAME= ${CHESS_ENGINE}-book-1.01 +CATEGORIES= games +MASTER_SITES= ${MASTER_SITE_GNU:=chess/} +EXTRACT_SUFX= .gz + +MAINTAINER= jlam@NetBSD.org +HOMEPAGE= http://www.gnu.org/software/chess/ +COMMENT= Chess opening book for GNU Chess (default) + +DEPENDS+= gnuchess>=5.07:../../games/gnuchess + +CONFLICTS+= gnuchess-book-* + +WRKSRC= ${WRKDIR} +CHESS_ENGINE= gnuchess +NO_CONFIGURE= # defined + +PLIST_SUBST+= CHESS_ENGINE=${CHESS_ENGINE} +PLIST_SUBST+= BOOK_FILE=${BOOK_FILE} + +BOOKDIR= ${PREFIX}/lib/${CHESS_ENGINE} +PGN_FILE= ${DISTNAME} +BOOK_FILE= book.dat + +do-build: + @${ECHO} "book add ${WRKSRC}/${PGN_FILE}" > ${WRKSRC}/makebook.gnuchess + @${ECHO} "quit" >> ${WRKSRC}/makebook.gnuchess + @cd ${WRKSRC} && ${CAT} makebook.gnuchess | ${LOCALBASE}/bin/gnuchess + +do-install: + ${INSTALL_DATA_DIR} ${BOOKDIR} + ${INSTALL_DATA} ${WRKSRC}/${BOOK_FILE} ${BOOKDIR} + +.include "../../mk/bsd.pkg.mk" diff --git a/games/gnuchess-book/PLIST b/games/gnuchess-book/PLIST new file mode 100644 index 00000000000..e00740395fd --- /dev/null +++ b/games/gnuchess-book/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2004/03/08 05:52:34 minskim Exp $ +lib/${CHESS_ENGINE}/${BOOK_FILE} diff --git a/games/gnuchess-book/distinfo b/games/gnuchess-book/distinfo new file mode 100644 index 00000000000..327157449bb --- /dev/null +++ b/games/gnuchess-book/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2004/03/08 05:52:34 minskim Exp $ + +SHA1 (book_1.01.pgn.gz) = 3ef3f1e2c52941d35610f3723a4c200575faaf2e +Size (book_1.01.pgn.gz) = 26070544 bytes -- cgit v1.2.3