pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/gnuchess-book Import gnuchess-book to replace gn...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b6acdd1c4446
branches:  trunk
changeset: 470323:b6acdd1c4446
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Mon Mar 08 05:52:34 2004 +0000

description:
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.

diffstat:

 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(+), 0 deletions(-)

diffs (61 lines):

diff -r 51cd9fc4bcff -r b6acdd1c4446 games/gnuchess-book/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/gnuchess-book/DESCR Mon Mar 08 05:52:34 2004 +0000
@@ -0,0 +1,1 @@
+Default book of chess openings for GNU Chess.
diff -r 51cd9fc4bcff -r b6acdd1c4446 games/gnuchess-book/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/gnuchess-book/Makefile      Mon Mar 08 05:52:34 2004 +0000
@@ -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@localhost
+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 -r 51cd9fc4bcff -r b6acdd1c4446 games/gnuchess-book/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/gnuchess-book/PLIST Mon Mar 08 05:52:34 2004 +0000
@@ -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 -r 51cd9fc4bcff -r b6acdd1c4446 games/gnuchess-book/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/gnuchess-book/distinfo      Mon Mar 08 05:52:34 2004 +0000
@@ -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



Home | Main Index | Thread Index | Old Index