Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Feb 2018 11:50:38 +0000 (UTC)
From:      Johan van Selst <johans@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r461039 - head/games/crafty
Message-ID:  <201802061150.w16Bocb3019611@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: johans
Date: Tue Feb  6 11:50:38 2018
New Revision: 461039
URL: https://svnweb.freebsd.org/changeset/ports/461039

Log:
  Unbreak
  Simplify setup by using only the default opening books
  Don't rebuild the opening book that is also downloaded
  Docs are no longer included, but provided online at
  http://www.craftychess.com/documentation/craftydoc.html

Modified:
  head/games/crafty/Makefile
  head/games/crafty/distinfo
  head/games/crafty/pkg-plist

Modified: head/games/crafty/Makefile
==============================================================================
--- head/games/crafty/Makefile	Tue Feb  6 10:55:23 2018	(r461038)
+++ head/games/crafty/Makefile	Tue Feb  6 11:50:38 2018	(r461039)
@@ -5,28 +5,20 @@ PORTNAME=	crafty
 PORTVERSION=	25.2
 CATEGORIES=	games
 MASTER_SITES=	http://www.craftychess.com/downloads/source/:src \
-		http://www.cis.uab.edu/hyatt/crafty/pgn/:data \
-		http://www.cis.uab.edu/hyatt/crafty/documentation/:doc \
-		http://www.cis.uab.edu/hyatt/crafty/source/:src \
-		http://www.cis.uab.edu/hyatt/crafty/book/:utils \
-		http://www.cis.uab.edu/hyatt/crafty/book/:books
+		http://www.craftychess.com/downloads/book/:data
 DISTFILES=	crafty-${PORTVERSION}.zip:src \
-		start.pgn:data
+		books.bin:data \
+		start.pgn.gz:data
 DIST_SUBDIR=	crafty
 EXTRACT_ONLY=	crafty-${PORTVERSION}.zip
 
 MAINTAINER=	johans@FreeBSD.org
 COMMENT=	Chess program for playing and analyzing games
 
-BROKEN=		fails to build: Could not read profile default.profdata: No such file or directory
-
 WRKSRC=		${WRKDIR}
 
 USES=		gmake zip
 
-BOOKS=		books.bin
-DISTFILES+=	${BOOKS:S/$/:books/}
-
 ALL_TARGET=	unix-gcc
 
 WITH_BOOKDIR?=	${PREFIX}/lib/crafty
@@ -41,15 +33,6 @@ OPT=		-DHASHSTATS -DTRACE -DBOOKDIR=\\\"${WITH_BOOKDIR
 		-DTBDIR=\\\"${WITH_TBDIR}\\\" \
 		-DPERSDIR=\\\"${WITH_PERSDIR}\\\" -DSKILL
 
-OPTIONS_DEFINE=	DOCS BOOK
-OPTIONS_SUB=	yes
-BOOK_DESC=	Include (default) opening book
-
-DOCFILES=	crafty.doc.ascii crafty.doc.ps
-DISTFILES+=	${DOCFILES:S/$/:doc/}
-UTILS=		bitmaps.tgz sound.zip
-DISTFILES+=	${UTILS:S/$/:utils/}
-
 .include <bsd.port.pre.mk>
 
 .if ${ARCH} == "i386" || ${ARCH} == "amd64"
@@ -58,19 +41,11 @@ OPT+=		-DCPUS=4
 OPT+=		-DCPUS=1 # disables x86 assembler
 .endif
 
-.if ${PORT_OPTIONS:MBOOK}
-BOOKS+=		book.bin
-PKGNAMESUFFIX=	-open-default
-CONFLICTS+=	crafty-open-enormous-[0-9]* crafty-open-large-[0-9]* crafty-open-medium-[0-9]*
-.endif
-
 MAKE_ENV+=	opt="${OPT}" target=${OPSYS} CXFLAGS="${CXXFLAGS}"
 
 post-extract:
-	cd ${DISTDIR}/${DIST_SUBDIR} && ${CP} start.pgn books.bin ${WRKSRC}
-.if ${PORT_OPTIONS:MBOOK}
-	${CP} ${DISTDIR}/${DIST_SUBDIR}/book.bin ${WRKSRC}
-.endif
+	cd ${DISTDIR}/${DIST_SUBDIR} && ${CP} book.bin start.pgn.gz ${WRKSRC}
+	${GUNZIP_CMD} ${WRKSRC}/start.pgn.gz
 
 post-build:
 	(cd ${WRKSRC}; ./crafty bookpath=. <${FILESDIR}/books-building)
@@ -78,13 +53,7 @@ post-build:
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/crafty ${STAGEDIR}${PREFIX}/bin/crafty
 	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/crafty/cpf
-.if ${PORT_OPTIONS:MBOOK}
-	${INSTALL_DATA} ${WRKSRC}/book.bin ${STAGEDIR}${PREFIX}/lib/crafty
-.endif
-	${INSTALL_DATA} ${WRKSRC}/books.bin ${WRKSRC}/crafty.hlp \
+	${INSTALL_DATA} ${WRKSRC}/book.bin ${WRKSRC}/books.bin ${WRKSRC}/crafty.hlp \
 		${STAGEDIR}${PREFIX}/lib/crafty
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} ${DOCFILES} ${UTILS} \
-		${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.post.mk>

Modified: head/games/crafty/distinfo
==============================================================================
--- head/games/crafty/distinfo	Tue Feb  6 10:55:23 2018	(r461038)
+++ head/games/crafty/distinfo	Tue Feb  6 11:50:38 2018	(r461039)
@@ -1,17 +1,7 @@
-TIMESTAMP = 1500155416
+TIMESTAMP = 1517917587
 SHA256 (crafty/crafty-25.2.zip) = 337e00bab79c33739fbaa71cd26c65f986886ee0d8ce181f2cb62f2efd317710
 SIZE (crafty/crafty-25.2.zip) = 433320
-SHA256 (crafty/start.pgn) = 4aa2ec5b29609c04e58e6a210307b736d9b83cd2d8c852c71427427d51967065
-SIZE (crafty/start.pgn) = 51307
 SHA256 (crafty/books.bin) = 4aa2ec5b29609c04e58e6a210307b736d9b83cd2d8c852c71427427d51967065
 SIZE (crafty/books.bin) = 51307
-SHA256 (crafty/book.bin) = 4aa2ec5b29609c04e58e6a210307b736d9b83cd2d8c852c71427427d51967065
-SIZE (crafty/book.bin) = 51307
-SHA256 (crafty/crafty.doc.ascii) = 4aa2ec5b29609c04e58e6a210307b736d9b83cd2d8c852c71427427d51967065
-SIZE (crafty/crafty.doc.ascii) = 51307
-SHA256 (crafty/crafty.doc.ps) = 4aa2ec5b29609c04e58e6a210307b736d9b83cd2d8c852c71427427d51967065
-SIZE (crafty/crafty.doc.ps) = 51307
-SHA256 (crafty/bitmaps.tgz) = 4aa2ec5b29609c04e58e6a210307b736d9b83cd2d8c852c71427427d51967065
-SIZE (crafty/bitmaps.tgz) = 51307
-SHA256 (crafty/sound.zip) = 4aa2ec5b29609c04e58e6a210307b736d9b83cd2d8c852c71427427d51967065
-SIZE (crafty/sound.zip) = 51307
+SHA256 (crafty/start.pgn.gz) = ee5c11b59faa1df97639ea69d823fdb19161e32509ff66b7d39abbe85e05e789
+SIZE (crafty/start.pgn.gz) = 314

Modified: head/games/crafty/pkg-plist
==============================================================================
--- head/games/crafty/pkg-plist	Tue Feb  6 10:55:23 2018	(r461038)
+++ head/games/crafty/pkg-plist	Tue Feb  6 11:50:38 2018	(r461039)
@@ -2,18 +2,10 @@
 @mode 2755
 bin/crafty
 @mode 664
-%%BOOK%%lib/crafty/book.bin
-@mode 644
+lib/crafty/book.bin
 lib/crafty/books.bin
 lib/crafty/crafty.hlp
-@mode
-@group wheel
-%%PORTDOCS%%%%DOCSDIR%%/crafty.doc.ascii
-%%PORTDOCS%%%%DOCSDIR%%/crafty.doc.ps
-%%PORTDOCS%%%%DOCSDIR%%/bitmaps.tgz
-%%PORTDOCS%%%%DOCSDIR%%/sound.zip
 @mode 775
-@group nogroup
 @dir lib/crafty/cpf
 @dir lib/crafty
 @mode



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802061150.w16Bocb3019611>