From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Dec 4 15:08:34 2004 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8255816A4CE; Sat, 4 Dec 2004 15:08:34 +0000 (GMT) Received: from lakermmtao07.cox.net (lakermmtao07.cox.net [68.230.240.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1A4A43D5E; Sat, 4 Dec 2004 15:08:33 +0000 (GMT) (envelope-from conrads@cox.net) Received: from dolphin.local.net ([68.11.30.24]) by lakermmtao07.cox.net ESMTP <20041204150832.FDDR20686.lakermmtao07.cox.net@dolphin.local.net>; Sat, 4 Dec 2004 10:08:32 -0500 Received: from localhost.local.net (localhost.local.net [127.0.0.1]) by dolphin.local.net (8.13.1/8.13.1) with ESMTP id iB4F8WFj038342; Sat, 4 Dec 2004 09:08:32 -0600 (CST) (envelope-from conrads@cox.net) From: "Conrad J. Sabatier" To: Volker Stolz In-Reply-To: <20041203232737.5947083d@dolphin.local.net> References: <200412021146.iB2BkMnV053891@freefall.freebsd.org> <20041203232737.5947083d@dolphin.local.net> Content-Type: multipart/mixed; boundary="=-o28H3IpQgOg6f5bVIogZ" Organization: A Rag-Tag Band of Drug-Crazed Hippies Date: Sat, 04 Dec 2004 09:08:27 -0600 Message-Id: <1102172907.36385.12.camel@dolphin.local.net> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 FreeBSD GNOME Team Port cc: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/74441: Update port: games/gnuchess (new version 5.07 with optional opening book support added) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: conrads@cox.net List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Dec 2004 15:08:34 -0000 --=-o28H3IpQgOg6f5bVIogZ Content-Type: text/plain Content-Transfer-Encoding: 7bit On Fri, 2004-12-03 at 23:27 -0600, Conrad J. Sabatier wrote: > On Thu, 2 Dec 2004 11:46:22 GMT, Volker Stolz wrote: > > > Synopsis: Update port: games/gnuchess (new version 5.07 with optional > > opening book support added) > > > > State-Changed-From-To: open->feedback > > State-Changed-By: vs > > State-Changed-When: Thu Dec 2 11:45:27 GMT 2004 > > State-Changed-Why: > > Please see the Porter's Handbook on how to submit updates in > > unified diff format. Also, please not that README.html is not part > > of the port but generated for the CD-sets. > > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=74441 > > > > Ah, OK. Sorry about that. Here's the diff: I'm sorry. I don't know how it happened, but it seems that all the tab characters in that diff I sent somehow got converted to spaces. Sending the diff again, this time as an attachment, to hopefully avoid the same thing happening again. -- Conrad J. Sabatier -- conrads@cox.net -- "In Unix veritas" --=-o28H3IpQgOg6f5bVIogZ Content-Disposition: attachment; filename=gnuchess.diff Content-Type: text/x-patch; name=gnuchess.diff; charset=iso8859-1 Content-Transfer-Encoding: 7bit diff -ruN ports/games/gnuchess.orig/CVS/Entries ports/games/gnuchess/CVS/Entries --- ports/games/gnuchess.orig/CVS/Entries Fri Dec 3 23:04:35 2004 +++ ports/games/gnuchess/CVS/Entries Wed Dec 31 18:00:00 1969 @@ -1,5 +0,0 @@ -/Makefile/1.17/Wed Oct 8 11:31:49 2003// -/distinfo/1.9/Thu Jan 29 07:23:54 2004// -/pkg-descr/1.2/Mon Oct 7 10:28:08 2002// -/pkg-plist/1.5/Wed Oct 8 11:31:49 2003// -D diff -ruN ports/games/gnuchess.orig/CVS/Repository ports/games/gnuchess/CVS/Repository --- ports/games/gnuchess.orig/CVS/Repository Fri Dec 3 23:04:35 2004 +++ ports/games/gnuchess/CVS/Repository Wed Dec 31 18:00:00 1969 @@ -1 +0,0 @@ -ports/games/gnuchess diff -ruN ports/games/gnuchess.orig/CVS/Root ports/games/gnuchess/CVS/Root --- ports/games/gnuchess.orig/CVS/Root Fri Dec 3 23:04:35 2004 +++ ports/games/gnuchess/CVS/Root Wed Dec 31 18:00:00 1969 @@ -1 +0,0 @@ -/home/ncvs diff -ruN ports/games/gnuchess.orig/Makefile ports/games/gnuchess/Makefile --- ports/games/gnuchess.orig/Makefile Wed Oct 8 06:31:49 2003 +++ ports/games/gnuchess/Makefile Sat Dec 4 09:03:01 2004 @@ -1,20 +1,39 @@ # New ports collection makefile for: Gnu Chess -# Date created: 04 July 1996 -# Whom: markm +# Date created: 04 July 1996 +# Whom: markm # # $FreeBSD: ports/games/gnuchess/Makefile,v 1.17 2003/10/08 11:31:49 edwin Exp $ # -PORTNAME= gnuchess -PORTVERSION= 5.06 -PORTREVISION= 1 -CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_GNU} +PORTNAME= gnuchess +PORTVERSION= 5.07 +CATEGORIES= games +MASTER_SITES= ${MASTER_SITE_GNU} MASTER_SITE_SUBDIR= chess MAINTAINER= ports@FreeBSD.org COMMENT= "Classic" Gnu Chess +PLIST_FILES= bin/gnuchess \ + bin/gnuchessx + +.if !defined(NOPORTDOCS) +PORTDOCS= ChangeLog \ + NEWS \ + README +.endif + +OPTIONS= OPENING_BOOK "Install opening book (24 MB download)" on + +.include + +.if defined(WITH_OPENING_BOOK) +DISTFILES+= book_1.01.pgn.gz +PLIST_DIRS+= %%DATADIR%% +PLIST_FILES+= %%DATADIR%%/book.dat +EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} +.endif + USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} @@ -22,9 +41,25 @@ post-patch: @${REINPLACE_CMD} -e 's|-D_THREAD_SAFE|${PTHREAD_CFLAGS:S/"//g}|g ; \ - s|-pthread ||g' ${WRKSRC}/configure + s|-pthread ||g' ${WRKSRC}/configure + +pre-install: +.if defined(WITH_OPENING_BOOK) + @scripts/create_opening_book.sh ${DISTDIR} ${WRKSRC} +.endif post-install: ${LN} -f ${PREFIX}/bin/gnuchess ${PREFIX}/bin/gnuchessx +.if defined(WITH_OPENING_BOOK) + @${ECHO_CMD} Installing opening book + ${MKDIR} ${DATADIR} && \ + ${CP} ${WRKSRC}/src/book.dat ${DATADIR} +.endif +.if !defined(NOPORTDOCS) + @${ECHO_CMD} Installing documentation + ${MKDIR} ${DOCSDIR} && \ + ${CP} ${WRKSRC}/NEWS ${DOCSDIR} && \ + ${CP} ${WRKSRC}/doc/* ${DOCSDIR} +.endif -.include +.include diff -ruN ports/games/gnuchess.orig/README.html ports/games/gnuchess/README.html --- ports/games/gnuchess.orig/README.html Wed Dec 31 18:00:00 1969 +++ ports/games/gnuchess/README.html Sat Dec 4 08:58:42 2004 @@ -0,0 +1,43 @@ + + + + + The FreeBSD Ports Collection (games/gnuchess) + + + +

The FreeBSD Ports Collection (games/gnuchess)

+
+ +

You are now in the directory for the port "games/gnuchess".

+ +

The package name of this port is "gnuchess-5.07".

+ +

This is the one-line description for this port:

+
+ +

+"Classic" Gnu Chess +

+
+ +

Please read the "description file" for a + longer description and/or visit the web site for futher informations.

+ +

If needed, you may contact the maintainer of this port or the port mailing-list.

+ +

+ +

+ +

Go to the top of the ports tree for + a summary on how to use the ports collection.

+
+ +

Go up one level | Go to top of ports tree

+ + + diff -ruN ports/games/gnuchess.orig/distinfo ports/games/gnuchess/distinfo --- ports/games/gnuchess.orig/distinfo Thu Jan 29 01:23:54 2004 +++ ports/games/gnuchess/distinfo Fri Dec 3 23:06:34 2004 @@ -1,2 +1,4 @@ -MD5 (gnuchess-5.06.tar.gz) = 9b25c80bef39e6ab24088dcfdea7d845 -SIZE (gnuchess-5.06.tar.gz) = 212829 +MD5 (gnuchess-5.07.tar.gz) = 259da00aa559e5624c65279484fccaf7 +SIZE (gnuchess-5.07.tar.gz) = 234542 +MD5 (book_1.01.pgn.gz) = 1be508d7a38a8c9a7d599d0cd92b24a6 +SIZE (book_1.01.pgn.gz) = 26070544 diff -ruN ports/games/gnuchess.orig/files/patch-book.h ports/games/gnuchess/files/patch-book.h --- ports/games/gnuchess.orig/files/patch-book.h Wed Dec 31 18:00:00 1969 +++ ports/games/gnuchess/files/patch-book.h Fri Dec 3 23:06:34 2004 @@ -0,0 +1,12 @@ +--- src/book.h.orig Fri Nov 26 19:20:29 2004 ++++ src/book.h Fri Nov 26 19:21:15 2004 +@@ -31,8 +31,7 @@ + */ + static char const * bookbin[] = { + "book.dat", +- "/usr/share/games/gnuchess/book.dat", +- "/usr/lib/games/gnuchess/book.dat", ++ "/usr/local/share/gnuchess/book.dat", + NULL + }; + diff -ruN ports/games/gnuchess.orig/pkg-descr ports/games/gnuchess/pkg-descr --- ports/games/gnuchess.orig/pkg-descr Mon Oct 7 05:28:08 2002 +++ ports/games/gnuchess/pkg-descr Fri Dec 3 23:06:34 2004 @@ -1,4 +1,4 @@ - Gnuchess plays a game of chess against the user or it + Gnuchess plays a game of chess against the user or it plays against itself. Gnuchess is an updated version of the GNU chess playing diff -ruN ports/games/gnuchess.orig/pkg-plist ports/games/gnuchess/pkg-plist --- ports/games/gnuchess.orig/pkg-plist Wed Oct 8 06:31:49 2003 +++ ports/games/gnuchess/pkg-plist Wed Dec 31 18:00:00 1969 @@ -1,2 +0,0 @@ -bin/gnuchess -bin/gnuchessx diff -ruN ports/games/gnuchess.orig/scripts/create_opening_book.sh ports/games/gnuchess/scripts/create_opening_book.sh --- ports/games/gnuchess.orig/scripts/create_opening_book.sh Wed Dec 31 18:00:00 1969 +++ ports/games/gnuchess/scripts/create_opening_book.sh Fri Dec 3 23:06:34 2004 @@ -0,0 +1,19 @@ +#!/bin/sh + +DISTDIR=$1 +WRKSRC=$2 + +[ -f ${WRKSRC}/src/book.dat ] && exit 0 + +builtin echo -e "\nCreating opening book for gnuchess...\n" + +cp ${DISTDIR}/book_1.01.pgn.gz ${WRKSRC}/src/book.pgn.gz + +cd ${WRKSRC}/src && gunzip -f book.pgn.gz + +./gnuchess << END +book add book.pgn +quit +END + +[ $? = 0 ] && builtin echo -e "\nBook successfully created!\n" --=-o28H3IpQgOg6f5bVIogZ--