pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/gnuchess-book-medium Make this package build wit...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/593c93924267
branches:  trunk
changeset: 470325:593c93924267
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Mon Mar 08 06:05:31 2004 +0000

description:
Make this package build with gnuchess-5.07.  Patch provided by
Michal Pasternak in PR pkg/24700.

Bump PKGREVISION.

diffstat:

 games/gnuchess-book-medium/Makefile         |  20 ++++++-----------
 games/gnuchess-book-medium/files/convert.pl |  32 -----------------------------
 2 files changed, 7 insertions(+), 45 deletions(-)

diffs (91 lines):

diff -r f1eb9e5de806 -r 593c93924267 games/gnuchess-book-medium/Makefile
--- a/games/gnuchess-book-medium/Makefile       Mon Mar 08 06:03:10 2004 +0000
+++ b/games/gnuchess-book-medium/Makefile       Mon Mar 08 06:05:31 2004 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.11 2004/01/20 12:15:40 agc Exp $
+# $NetBSD: Makefile,v 1.12 2004/03/08 06:05:31 minskim Exp $
 
 DISTNAME=              medium
 PKGNAME=               ${CHESS_ENGINE}-book-${DISTNAME}-20000511
-PKGREVISION=           1
+PKGREVISION=           2
 CATEGORIES=            games
 MASTER_SITES=          ftp://ftp.cis.uab.edu/pub/hyatt/common/${DISTNAME}/
 EXTRACT_SUFX=          .zip
@@ -10,35 +10,29 @@
 MAINTAINER=            jlam%NetBSD.org@localhost
 COMMENT=               Chess opening book for GNU Chess (medium)
 
-DEPENDS+=              gnuchess>=5.00nb1:../../games/gnuchess
+DEPENDS+=              gnuchess>=5.07:../../games/gnuchess
 
-CONFLICTS=             ${CHESS_ENGINE}-book-[0-9]*
+CONFLICTS=             ${CHESS_ENGINE}-book-*
 
 WRKSRC=                        ${WRKDIR}
 CHESS_ENGINE=          gnuchess
 DIST_SUBDIR=           chessbooks
 NO_CONFIGURE=          # defined
-USE_PERL5=             build
-USE_BUILDLINK2=                YES
 
 PLIST_SUBST+=          CHESS_ENGINE=${CHESS_ENGINE}
 PLIST_SUBST+=          BOOK_FILE=${BOOK_FILE}
 
 BOOKDIR=               ${PREFIX}/lib/${CHESS_ENGINE}
 PGN_FILE=              book.txt
-PGN_CONVERTED_FILE=    book_pgn.txt
 BOOK_FILE=             book.dat
 
 do-build:
-       @${ECHO} ""
-       @${ECHO} "  ** Go to bed!  This will take _very_ long!"
-       @${ECHO} ""
-       ${PREFIX}/bin/perl ${PKGDIR}/files/convert.pl < ${WRKSRC}/${PGN_FILE} > ${WRKSRC}/${PGN_CONVERTED_FILE}
-       cd ${WRKSRC} && gnuchess compile ${PGN_CONVERTED_FILE} ${BOOK_FILE}
+       @${ECHO} "book add ${PGN_FILE}" > ${WRKSRC}/makebook.gnuchess
+       @${ECHO} "quit" >> ${WRKSRC}/makebook.gnuchess
+       @cd ${WRKSRC} && ${CAT} makebook.gnuchess | ${PREFIX}/bin/gnuchess 
 
 do-install:
        ${INSTALL_DATA_DIR} ${BOOKDIR}
        ${INSTALL_DATA} ${WRKSRC}/${BOOK_FILE} ${BOOKDIR}
 
-.include "../../lang/perl5/buildlink2.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r f1eb9e5de806 -r 593c93924267 games/gnuchess-book-medium/files/convert.pl
--- a/games/gnuchess-book-medium/files/convert.pl       Mon Mar 08 06:03:10 2004 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-#!${PREFIX}/bin/perl
-
-while (<STDIN>) {
-
-       /^\[Site/ && print $_;
-
-       /^\[/ && next; 
-       /^$/ && next;
-
-       $_ =~ s/[0-9]+\.//g;
-       $_ =~ s/0-1//g;
-       $_ =~ s/1-0//g;
-       $_ =~ s/1\/2-1\/2//g;
-       $_ =~ s/^ +//g;
-       $_ =~ s/ +/ /g;
-       /^$/ && next;
-       print "$_";
-
-       while (<STDIN>) {
-               /^$/ && last;
-               $_ =~ s/[0-9]+\.//g;
-               $_ =~ s/0-1//g;
-               $_ =~ s/1-0//g;
-               $_ =~ s/1\/2-1\/2//g;
-               $_ =~ s/^ +//g;
-               $_ =~ s/ +/ /g;
-               /^$/ && next;
-               print "$_";
-       }
-
-}
-       



Home | Main Index | Thread Index | Old Index