From 5dddb01bf5a67e32dabffbea558250bfb4aa20d3 Mon Sep 17 00:00:00 2001 From: v4hn Date: Thu, 12 Jul 2012 14:56:03 +0200 Subject: [PATCH] gnuchess: resurrected and bumped --- games/gnuchess/BUILD | 7 +++++++ games/gnuchess/DEPENDS | 3 +++ games/gnuchess/DETAILS | 17 +++++++++++++++++ games/gnuchess/POST_INSTALL | 3 +++ games/gnuchess/chess | 18 ++++++++++++++++++ 5 files changed, 48 insertions(+) create mode 100644 games/gnuchess/BUILD create mode 100644 games/gnuchess/DEPENDS create mode 100644 games/gnuchess/DETAILS create mode 100644 games/gnuchess/POST_INSTALL create mode 100755 games/gnuchess/chess diff --git a/games/gnuchess/BUILD b/games/gnuchess/BUILD new file mode 100644 index 00000000000..1dd574201a7 --- /dev/null +++ b/games/gnuchess/BUILD @@ -0,0 +1,7 @@ +( + + CCARGS="-DXBOARD" && + default_build && + install -Dm0755 $SCRIPT_DIRECTORY/chess /usr/games/chess + +) > $C_FIFO 2>&1 diff --git a/games/gnuchess/DEPENDS b/games/gnuchess/DEPENDS new file mode 100644 index 00000000000..d9f9fbcba43 --- /dev/null +++ b/games/gnuchess/DEPENDS @@ -0,0 +1,3 @@ +depends ncurses + +optional_depends "xboard" "" "" "to use with an X based board." diff --git a/games/gnuchess/DETAILS b/games/gnuchess/DETAILS new file mode 100644 index 00000000000..58a92dd6170 --- /dev/null +++ b/games/gnuchess/DETAILS @@ -0,0 +1,17 @@ + MODULE=gnuchess + VERSION=6.0.2 + SOURCE=$MODULE-$VERSION.tar.gz + SOURCE_URL=$GNU_URL/chess + SOURCE_VFY=sha1:a3455e7a523f11db542bdffe1c86c2530fb8d0c5 + WEB_SITE=http://www.gnu.org/software/chess/chess.html + ENTERED=20020428 + UPDATED=20120305 + SHORT="Lets most modern computers play a full game of chess" + +cat << EOF +GNU Chess lets most modern computers play a full game of chess. It has a plain +terminal interface but supports visual interfaces such as X-Windows "xboard" as +well as a full 3-dimensional wooden chess-board protocol for the Novag Chess +board enabling one to be relatively free of the computer itself. See the +distribution README for explanation. +EOF diff --git a/games/gnuchess/POST_INSTALL b/games/gnuchess/POST_INSTALL new file mode 100644 index 00000000000..810245eb0b3 --- /dev/null +++ b/games/gnuchess/POST_INSTALL @@ -0,0 +1,3 @@ +echo " " +echo "Execute /usr/games/chess to use with xboard." +echo " " diff --git a/games/gnuchess/chess b/games/gnuchess/chess new file mode 100755 index 00000000000..36c81fcef91 --- /dev/null +++ b/games/gnuchess/chess @@ -0,0 +1,18 @@ +#!/bin/sh +# +# chess: this is the proper command string required to execute +# xboard with gnuchess. +# +# related modules: xboard, gnuchess + +GCHESS=`which gnuchess` +XBORD=`which xboard` + +if [ -e "$GCHESS" ]; then + $XBORD -fcp "$GCHESS" -fd "/usr/games" -scp "$GCHESS xboard" -sd "/usr/games" +else + echo " " + echo "$GCHESS missing. Please install the gnuchess module!" + exit 0 +fi +exit 0