Bug 182769 - [patch] Update games/stockfish to version 4
Summary: [patch] Update games/stockfish to version 4
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-06 19:00 UTC by Gautam Mani
Modified: 2013-10-26 17:20 UTC (History)
0 users

See Also:


Attachments
file.diff (1.89 KB, patch)
2013-10-06 19:00 UTC, Gautam Mani
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gautam Mani 2013-10-06 19:00:00 UTC
Here is the maintenance patch update to update games/stockfish to version 4.

Patch is included.
Book-2.3.1 version is compatible with version4, so no update required there.

Fix: Patch is attached.

Patch attached with submission follows:
How-To-Repeat: NA
Comment 1 dfilter service freebsd_committer freebsd_triage 2013-10-26 17:17:41 UTC
Author: wg
Date: Sat Oct 26 16:17:33 2013
New Revision: 331711
URL: http://svnweb.freebsd.org/changeset/ports/331711

Log:
  games/stockfish: update to 4
  
  - Update to 4 [1]
  - Allow staging
  
  PR:		ports/182769 [1]
  Submitted by:	Gautam Mani <execve gmail.com> (maintainer)

Modified:
  head/games/stockfish/Makefile
  head/games/stockfish/distinfo

Modified: head/games/stockfish/Makefile
==============================================================================
--- head/games/stockfish/Makefile	Sat Oct 26 16:14:04 2013	(r331710)
+++ head/games/stockfish/Makefile	Sat Oct 26 16:17:33 2013	(r331711)
@@ -2,14 +2,14 @@
 # $FreeBSD$
 
 PORTNAME=	stockfish
-PORTVERSION=	3
+PORTVERSION=	4
 CATEGORIES=	games
-MASTER_SITES=	http://cl.ly/2n1O3h2d3u2W/download/:src \
+MASTER_SITES=	https://s3.amazonaws.com/stockfish/:src \
 		http://www.execve.net/sf/:src \
 		http://cl.ly/3x333m0G173F/download/:book \
 		http://www.execve.net/sf/:book
-DISTNAME=	stockfish-${PORTVERSION:S/.//g}-linux
-DISTFILES=	stockfish-${PORTVERSION:S/.//g}-linux.zip:src \
+DISTNAME=	stockfish-${PORTVERSION:S/.//g}-win
+DISTFILES=	stockfish-${PORTVERSION:S/.//g}-win.zip:src \
 		stockfish-231-book.zip:book
 
 MAINTAINER=	execve@gmail.com
@@ -22,7 +22,7 @@ WRKSRC=		${WRKDIR}/${DISTNAME}/src
 USES=		gmake
 MYARCH=		${ARCH}
 BOOKDIR=	.
-PORTDOCS=	Readme.txt polyglot.ini
+PORTDOCS=	Readme.md polyglot.ini
 PORTDATA=	Book.bin
 FETCH_ARGS=	-Fpr
 
@@ -39,7 +39,6 @@ OPTIONS_DEFINE=	DOCS POPCNT_ENABLED PROF
 POPCNT_ENABLED_DESC=	Use the POPCNT instruction
 PROFILE_BUILD_DESC=	Make a Profile build
 
-NO_STAGE=	yes
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MPROFILE_BUILD}
@@ -78,17 +77,14 @@ post-patch:
 	@${REINPLACE_CMD} -e "s/^PREFIX =/PREFIX ?=/" ${WRKSRC}/Makefile
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/stockfish ${PREFIX}/bin/stockfish
+	${INSTALL_PROGRAM} ${WRKSRC}/stockfish ${STAGEDIR}${PREFIX}/bin/stockfish
 
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/Readme.txt ${DOCSDIR}
-	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/polyglot.ini ${DOCSDIR}
-.endif
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/Readme.md ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/polyglot.ini ${STAGEDIR}${DOCSDIR}
 .if !defined(NOPORTDATA)
-	${MKDIR} ${DATADIR}
-	${INSTALL_DATA} ${WRKDIR}/${BOOKDIR}/${PORTDATA} ${DATADIR}
+	${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKDIR}/${BOOKDIR}/${PORTDATA} ${STAGEDIR}${DATADIR}/
 .endif
 
 .include <bsd.port.post.mk>

Modified: head/games/stockfish/distinfo
==============================================================================
--- head/games/stockfish/distinfo	Sat Oct 26 16:14:04 2013	(r331710)
+++ head/games/stockfish/distinfo	Sat Oct 26 16:17:33 2013	(r331711)
@@ -1,4 +1,4 @@
-SHA256 (stockfish-3-linux.zip) = ccae1ae491eba86f02e10891f4b110007bd97f5e2a71871ca895f309d5031019
-SIZE (stockfish-3-linux.zip) = 807403
+SHA256 (stockfish-4-win.zip) = dcd66a81c21380f18623d54f966fc69476a86c8d5ab667e2b138aa2e4ebb3487
+SIZE (stockfish-4-win.zip) = 1839577
 SHA256 (stockfish-231-book.zip) = 07ee06bcd3fe1c5e0d90a2d0aede8bac2dd31d52fb4e1c9bc477bb5a8939e414
 SIZE (stockfish-231-book.zip) = 3479786
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 2 William Grzybowski freebsd_committer freebsd_triage 2013-10-26 17:18:50 UTC
State Changed
From-To: open->closed

Committed. Thanks!