svn commit: r366198 - in head/games/xboard: . files
Johan van Selst
johans at FreeBSD.org
Tue Aug 26 10:35:01 UTC 2014
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 at 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/.
+
++ at node Zippy
++ at chapter Zippy
++ at cindex Zippy
++ at cindex ICS
++ at 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
- at dirrmtry share/icons/hicolor/48x48/apps
- at dirrmtry share/icons/hicolor/48x48
- at dirrmtry share/icons/hicolor/scalable/apps
- at dirrmtry share/icons/hicolor/scalable
- at dirrmtry share/icons/hicolor
- at dirrmtry share/icons
- at dirrmtry share/mime/packages
- at dirrmtry share/mime
- at 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
- at exec cp -pn %D/%F %B/xboard.conf
+ at sample etc/xboard.conf.sample
More information about the svn-ports-all
mailing list