summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2017-09-21 10:57:25 +0000
committerjperkin <jperkin@pkgsrc.org>2017-09-21 10:57:25 +0000
commit08d02ddb62089e09237058d4633b7f64456ca349 (patch)
tree5ddb1de63d844090aa7fa80c14beb36f1a50eb53
parenta99880b8860917e426fb1772ce73b15673da05d4 (diff)
downloadpkgsrc-08d02ddb62089e09237058d4633b7f64456ca349.tar.gz
gnuchess-book: Fix building with newer gnuchess and tidy.
Bump PKGREVISION for LICENSE and DEPENDS changes.
-rw-r--r--games/gnuchess-book/Makefile26
-rw-r--r--games/gnuchess-book/PLIST4
2 files changed, 12 insertions, 18 deletions
diff --git a/games/gnuchess-book/Makefile b/games/gnuchess-book/Makefile
index 155e5064be3..d025d00d53c 100644
--- a/games/gnuchess-book/Makefile
+++ b/games/gnuchess-book/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.9 2016/09/12 14:37:47 mef Exp $
-#
+# $NetBSD: Makefile,v 1.10 2017/09/21 10:57:25 jperkin Exp $
DISTNAME= book_1.02.pgn
-PKGNAME= ${CHESS_ENGINE}-book-1.02
+PKGNAME= gnuchess-book-1.02
+PKGREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_GNU:=chess/}
EXTRACT_SUFX= .gz
@@ -10,29 +10,23 @@ EXTRACT_SUFX= .gz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/chess/
COMMENT= Chess opening book for GNU Chess (default)
+LICENSE= public-domain
-DEPENDS+= gnuchess>=5.07:../../games/gnuchess
+DEPENDS+= gnuchess>=6:../../games/gnuchess
-CONFLICTS+= gnuchess-book-*
+CONFLICTS+= gnuchess-book-medium-[0-9]*
WRKSRC= ${WRKDIR}
-CHESS_ENGINE= gnuchess
NO_CONFIGURE= yes
-PLIST_SUBST+= CHESS_ENGINE=${CHESS_ENGINE:Q}
-PLIST_SUBST+= BOOK_FILE=${BOOK_FILE:Q}
+BOOKDIR= ${PREFIX}/lib/gnuchess
-BOOKDIR= ${PREFIX}/lib/${CHESS_ENGINE}
-PGN_FILE= ${DISTNAME}
-BOOK_FILE= book.bin
+INSTALLATION_DIRS+= ${BOOKDIR}
do-build:
- @${ECHO} "book add ${WRKSRC}/${PGN_FILE}" > ${WRKSRC}/makebook.gnuchess
- @${ECHO} "quit" >> ${WRKSRC}/makebook.gnuchess
- @cd ${WRKSRC} && ${CAT} makebook.gnuchess | ${LOCALBASE}/bin/gnuchess
+ cd ${WRKSRC} && ${PREFIX}/bin/gnuchess -a ${DISTNAME} </dev/null
do-install:
- ${INSTALL_DATA_DIR} ${DESTDIR}${BOOKDIR}
- ${INSTALL_DATA} ${WRKSRC}/${BOOK_FILE} ${DESTDIR}${BOOKDIR}
+ ${INSTALL_DATA} ${WRKSRC}/book.bin ${DESTDIR}${BOOKDIR}
.include "../../mk/bsd.pkg.mk"
diff --git a/games/gnuchess-book/PLIST b/games/gnuchess-book/PLIST
index e00740395fd..69f6ae3b811 100644
--- a/games/gnuchess-book/PLIST
+++ b/games/gnuchess-book/PLIST
@@ -1,2 +1,2 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2004/03/08 05:52:34 minskim Exp $
-lib/${CHESS_ENGINE}/${BOOK_FILE}
+@comment $NetBSD: PLIST,v 1.2 2017/09/21 10:57:25 jperkin Exp $
+lib/gnuchess/book.bin