pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games/gnuchess-book gnuchess-book: Fix building with n...
details: https://anonhg.NetBSD.org/pkgsrc/rev/5234ad94dc65
branches: trunk
changeset: 368905:5234ad94dc65
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Thu Sep 21 10:57:25 2017 +0000
description:
gnuchess-book: Fix building with newer gnuchess and tidy.
Bump PKGREVISION for LICENSE and DEPENDS changes.
diffstat:
games/gnuchess-book/Makefile | 26 ++++++++++----------------
games/gnuchess-book/PLIST | 4 ++--
2 files changed, 12 insertions(+), 18 deletions(-)
diffs (60 lines):
diff -r fa1e6d62f4b4 -r 5234ad94dc65 games/gnuchess-book/Makefile
--- a/games/gnuchess-book/Makefile Thu Sep 21 10:50:05 2017 +0000
+++ b/games/gnuchess-book/Makefile Thu Sep 21 10:57:25 2017 +0000
@@ -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 @@
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
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 -r fa1e6d62f4b4 -r 5234ad94dc65 games/gnuchess-book/PLIST
--- a/games/gnuchess-book/PLIST Thu Sep 21 10:50:05 2017 +0000
+++ b/games/gnuchess-book/PLIST Thu Sep 21 10:57:25 2017 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index