pkgsrc-Changes archive

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

CVS commit: pkgsrc/games/gnuchess-book



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Thu Sep 21 10:57:25 UTC 2017

Modified Files:
        pkgsrc/games/gnuchess-book: Makefile PLIST

Log Message:
gnuchess-book: Fix building with newer gnuchess and tidy.

Bump PKGREVISION for LICENSE and DEPENDS changes.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 pkgsrc/games/gnuchess-book/Makefile
cvs rdiff -u -r1.1.1.1 -r1.2 pkgsrc/games/gnuchess-book/PLIST

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/games/gnuchess-book/Makefile
diff -u pkgsrc/games/gnuchess-book/Makefile:1.9 pkgsrc/games/gnuchess-book/Makefile:1.10
--- pkgsrc/games/gnuchess-book/Makefile:1.9     Mon Sep 12 14:37:47 2016
+++ pkgsrc/games/gnuchess-book/Makefile Thu Sep 21 10:57:25 2017
@@ -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@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"

Index: pkgsrc/games/gnuchess-book/PLIST
diff -u pkgsrc/games/gnuchess-book/PLIST:1.1.1.1 pkgsrc/games/gnuchess-book/PLIST:1.2
--- pkgsrc/games/gnuchess-book/PLIST:1.1.1.1    Mon Mar  8 05:52:34 2004
+++ pkgsrc/games/gnuchess-book/PLIST    Thu Sep 21 10:57:25 2017
@@ -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