Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Aug 2014 10:35:00 +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: r366198 - in head/games/xboard: . files
Message-ID:  <201408261035.s7QAZ0QB007889@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.options.mk>
+
+.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 <bsd.port.options.mk>
+.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



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