unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add chess and xboard.
@ 2014-07-12 17:43 John Darrington
  2014-07-13 10:28 ` Andreas Enge
  2014-07-13 13:28 ` Ludovic Courtès
  0 siblings, 2 replies; 3+ messages in thread
From: John Darrington @ 2014-07-12 17:43 UTC (permalink / raw)
  To: guix-devel; +Cc: John Darrington

* gnu/packages/games.scm (xboard, chess): New variables.
---
 gnu/packages/games.scm |   60 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index bc1338f..3457662 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -40,6 +40,7 @@
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages sqlite)
   #:use-module (gnu packages sdl)
+  #:use-module (gnu packages texinfo)
   #:use-module (guix build-system gnu))
 
 (define-public gnubg
@@ -263,3 +264,62 @@ based on the screensaver from the movie's website.  It works with terminal
 settings up to 132x300 and can scroll lines all at the same rate or
 asynchronously and at a user-defined speed.")
     (license gpl2+)))
+
+
+(define-public chess
+  (package
+    (name "chess")
+    (version "6.1.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://gnu/chess/gnuchess-" version
+                           ".tar.gz"))
+       (sha256
+        (base32
+         "1jckpg1qi1vjr3pqs0dnip3rmn0mgklx63xflrpqiv3cx2qlz8kn"))))
+    (build-system gnu-build-system)
+    (home-page "http://wwww.gnu.org/software/chess")
+    (synopsis "Full chess implementation")
+    (description "GNU Chess is a chess engine.  It allows you to compete
+against the computer in a game of chess, either through the default terminal
+interface or via an external visual interface such as GNU XBoard.")
+    (license gpl3+)))
+
+
+(define-public xboard
+  (package
+    (name "xboard")
+    (version "4.7.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://gnu/xboard/xboard-" version
+                           ".tar.gz"))
+       (sha256
+        (base32
+         "1amy9krr0qkvcc7gnp3i9x9ma91fc5cq8hy3gdc7rmfsaczv1l3z"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:phases
+       (alist-cons-before 
+        'configure 'pre-conf
+        ;; This is GNU.  So use gnuchess as the first choice of engine
+        (lambda _
+          (substitute* "xboard.conf.in" 
+            (("-firstChessProgram fairymax") "-firstChessProgram gnuchess")))
+        %standard-phases)))
+    (inputs `(("cairo" ,cairo)
+              ("librsvg" ,librsvg)
+              ("libxt" ,libxt)
+              ("libxaw" ,libxaw)))
+    (native-inputs `(("texinfo" ,texinfo)
+                     ("pkg-config" ,pkg-config)))
+    (home-page "http://wwww.gnu.org/software/xboard")
+    (synopsis "Graphical user interface for chess programs")
+    (description "GNU XBoard is a graphical board for all varieties of chess,
+including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
+and Makruk.  Several lesser-known variants are also supported.  It presents a
+fully interactive graphical interface and it can load and save games in the
+Portable Game Notation.")
+    (license gpl3+)))
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] gnu: Add chess and xboard.
  2014-07-12 17:43 [PATCH] gnu: Add chess and xboard John Darrington
@ 2014-07-13 10:28 ` Andreas Enge
  2014-07-13 13:28 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Enge @ 2014-07-13 10:28 UTC (permalink / raw)
  To: John Darrington; +Cc: guix-devel

Small typo, one 'w' too much:

On Sat, Jul 12, 2014 at 07:43:41PM +0200, John Darrington wrote:
> +    (home-page "http://wwww.gnu.org/software/xboard")

Andreas

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] gnu: Add chess and xboard.
  2014-07-12 17:43 [PATCH] gnu: Add chess and xboard John Darrington
  2014-07-13 10:28 ` Andreas Enge
@ 2014-07-13 13:28 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2014-07-13 13:28 UTC (permalink / raw)
  To: John Darrington; +Cc: guix-devel

John Darrington <jmd@gnu.org> skribis:

> * gnu/packages/games.scm (xboard, chess): New variables.

LGTM.

> +
> +
> +(define-public chess

[...]

> +    (license gpl3+)))
> +
> +
> +(define-public xboard

In general skip just one line between two consecutive entries.  If
there’s a logical separation that doesn’t warrant a module, use a form
feed (^L).

Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-13 13:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-12 17:43 [PATCH] gnu: Add chess and xboard John Darrington
2014-07-13 10:28 ` Andreas Enge
2014-07-13 13:28 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).