From owner-svn-ports-all@FreeBSD.ORG Tue Aug 26 10:35:01 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A680A87A; Tue, 26 Aug 2014 10:35:01 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8627C3626; Tue, 26 Aug 2014 10:35:01 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s7QAZ1ef007900; Tue, 26 Aug 2014 10:35:01 GMT (envelope-from johans@FreeBSD.org) Received: (from johans@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s7QAZ0QB007889; Tue, 26 Aug 2014 10:35:00 GMT (envelope-from johans@FreeBSD.org) Message-Id: <201408261035.s7QAZ0QB007889@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: johans set sender to johans@FreeBSD.org using -f From: Johan van Selst Date: Tue, 26 Aug 2014 10:35:00 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r366198 - in head/games/xboard: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2014 10:35:01 -0000 Author: johans Date: Tue Aug 26 10:35:00 2014 New Revision: 366198 URL: http://svnweb.freebsd.org/changeset/ports/366198 QAT: https://qat.redports.org/buildarchive/r366198/ Log: add zippy option for ICS server computer player mode PR: 192669 Submitted by: kalten@gmx.at Added: head/games/xboard/files/ head/games/xboard/files/OPTION_ZIPPY__patch-xboard.texi (contents, props changed) Modified: head/games/xboard/Makefile head/games/xboard/pkg-plist Modified: head/games/xboard/Makefile ============================================================================== --- head/games/xboard/Makefile Tue Aug 26 10:17:30 2014 (r366197) +++ head/games/xboard/Makefile Tue Aug 26 10:35:00 2014 (r366198) @@ -3,6 +3,7 @@ PORTNAME= xboard PORTVERSION= 4.7.3 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= GNU @@ -11,21 +12,23 @@ COMMENT= X frontend for Crafty, GNUChess LIB_DEPENDS= libcairo.so:${PORTSDIR}/graphics/cairo -OPTIONS_DEFINE= NLS CRAFTY FAIRYMAX GNUCHESS KNIGHTCAP PHALANX DOCS +OPTIONS_DEFINE= NLS ZIPPY CRAFTY FAIRYMAX GNUCHESS KNIGHTCAP PHALANX DOCS OPTIONS_DEFAULT= OPTIONS_SUB= yes +ZIPPY_DESC= Add Zippy capability (computer player on ICS) CRAFTY_DESC= Install crafty engine FAIRYMAX_DESC= Install fairymax engine GNUCHESS_DESC= Install GnuChess engine KNIGHTCAP_DESC= Install KnightCap engine PHALANX_DESC= Install phalanx engine +NLS_USES= gettext +NLS_CONFIGURE_ENABLE= nls +ZIPPY_CONFIGURE_ENABLE= zippy CRAFTY_RUN_DEPENDS+= crafty:${PORTSDIR}/games/crafty FAIRYMAX_RUN_DEPENDS+= fairymax:${PORTSDIR}/games/fairymax GNUCHESS_RUN_DEPENDS+= gnuchess:${PORTSDIR}/games/gnuchess KNIGHTCAP_RUN_DEPENDS+= KnightCap:${PORTSDIR}/games/KnightCap PHALANX_RUN_DEPENDS+= phalanx:${PORTSDIR}/games/phalanx -NLS_USES= gettext -NLS_CONFIGURE_ENABLE= nls USES= desktop-file-utils makeinfo perl5 pkgconfig shared-mime-info USE_XORG= xt xpm xaw @@ -43,19 +46,27 @@ PORTDOCS= AUTHORS ChangeLog NEWS README BROKEN_sparc64= Does not install on sparc64 +.include + +.if ${PORT_OPTIONS:MZIPPY} +PORTDOCS+= zippy.README +.endif + post-patch: @${REINPLACE_CMD} -e 's/fairymax/gnuchessx/' ${WRKSRC}/xboard.conf.in @${REINPLACE_CMD} -e '/^#include..malloc.h/d' \ ${WRKSRC}/engineoutput.c ${WRKSRC}/uci.c @${REINPLACE_CMD} -e 's:INSTALL.*sysconfdir):&/$$$$files.dist:' \ ${WRKSRC}/Makefile.in - -.include +.if ${PORT_OPTIONS:MZIPPY} + @cd ${WRKSRC} && ${PATCH} < ${PATCHDIR}/OPTION_ZIPPY__patch-xboard.texi + @${REINPLACE_CMD} -e 's|%%DOCSDIR%%|${DOCSDIR}|g' ${WRKSRC}/xboard.texi +.endif post-install: - @${INSTALL_SCRIPT} ${WRKSRC}/cmail ${STAGEDIR}${PREFIX}/bin/ - @${CP} -pn ${STAGEDIR}${PREFIX}/etc/xboard.conf.dist \ - ${STAGEDIR}${PREFIX}/etc/xboard.conf + ${INSTALL_SCRIPT} ${WRKSRC}/cmail ${STAGEDIR}${PREFIX}/bin/ + ${MV} ${STAGEDIR}${PREFIX}/etc/xboard.conf.dist \ + ${STAGEDIR}${PREFIX}/etc/xboard.conf.sample .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} Added: head/games/xboard/files/OPTION_ZIPPY__patch-xboard.texi ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/xboard/files/OPTION_ZIPPY__patch-xboard.texi Tue Aug 26 10:35:00 2014 (r366198) @@ -0,0 +1,25 @@ +--- xboard.texi.orig 2014-01-06 18:15:22.000000000 +0100 ++++ xboard.texi 2014-08-14 23:43:17.000000000 +0200 +@@ -64,6 +64,7 @@ + * Chess Servers:: Using XBoard with an Internet Chess Server (ICS). + * Firewalls:: Connecting to a chess server through a firewall. + * Environment:: Environment variables. ++* Zippy:: XBoard as computer player on an Internet Chess Server (ICS). + * Limitations:: Known limitations and/or bugs. + * Problems:: How and where to report any problems you run into. + * Contributors:: People who have helped developing XBoard. +@@ -3805,6 +3806,14 @@ + but see the SOCKS Web site at http://www.socks.permeo.com/. + If you are missing SOCKS, try http://www.funbureau.com/. + ++@node Zippy ++@chapter Zippy ++@cindex Zippy ++@cindex ICS ++@cindex ICS computer player ++Be a computer player on an Internet Chess Server (ICS). ++See file @code{%%DOCSDIR%%/zippy.README} for description. ++ + @node Environment + @chapter Environment variables + @cindex Environment variables Modified: head/games/xboard/pkg-plist ============================================================================== --- head/games/xboard/pkg-plist Tue Aug 26 10:17:30 2014 (r366197) +++ head/games/xboard/pkg-plist Tue Aug 26 10:35:00 2014 (r366198) @@ -143,8 +143,6 @@ share/mime/packages/xboard.xml %%NLS%%share/locale/zh_CN/LC_MESSAGES/xboard.mo %%NLS%%share/locale/zh_HK/LC_MESSAGES/xboard.mo %%NLS%%share/locale/zh_TW/LC_MESSAGES/xboard.mo -%%NLS%%@dirrmtry share/locale/zh_HK/LC_MESSAGES -%%NLS%%@dirrmtry share/locale/zh_HK @dirrm %%DATADIR%%/pixmaps/textures @dirrm %%DATADIR%%/pixmaps @dirrm %%DATADIR%%/sounds @@ -155,14 +153,4 @@ share/mime/packages/xboard.xml @dirrm %%DATADIR%%/themes @dirrm %%DATADIR%% @dirrmtry share/games -@dirrmtry share/icons/hicolor/48x48/apps -@dirrmtry share/icons/hicolor/48x48 -@dirrmtry share/icons/hicolor/scalable/apps -@dirrmtry share/icons/hicolor/scalable -@dirrmtry share/icons/hicolor -@dirrmtry share/icons -@dirrmtry share/mime/packages -@dirrmtry share/mime -@unexec if cmp -s %D/etc/xboard.conf.dist %D/etc/xboard.conf; then rm -f %D/etc/xboard.conf; fi -etc/xboard.conf.dist -@exec cp -pn %D/%F %B/xboard.conf +@sample etc/xboard.conf.sample