diff options
Diffstat (limited to 'gnu/packages/games.scm')
-rw-r--r-- | gnu/packages/games.scm | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 8a2b2df022..84e09aaee7 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2013 John Darrington <jmd@gnu.org> ;;; Copyright © 2014 David Thompson <dthompson2@worcester.edu> ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> +;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com> ;;; ;;; This file is part of GNU Guix. ;;; @@ -32,12 +33,14 @@ #:use-module (gnu packages guile) #:use-module (gnu packages libcanberra) #:use-module (gnu packages image) + #:use-module (gnu packages ncurses) #:use-module (gnu packages python) #:use-module (gnu packages readline) #:use-module (gnu packages xorg) #: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 @@ -228,3 +231,93 @@ into stereotyped or otherwise humorous dialects. The filters are provided as a C library, so they can easily be integrated into other programs.") (license gpl2+))) +(define-public cmatrix + (package + (name "cmatrix") + (version "1.2a") + (source + (origin + (method url-fetch) + (uri (string-append "http://www.asty.org/cmatrix/dist/cmatrix-" version + ".tar.gz")) + (sha256 + (base32 + "0k06fw2n8nzp1pcdynhajp5prba03gfgsbj91bknyjr5xb5fd9hz")))) + (build-system gnu-build-system) + (arguments + '(#:phases + (alist-replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + ;; This old `configure' script doesn't support + ;; variables passed as arguments. + (let ((out (assoc-ref outputs "out"))) + (setenv "CONFIG_SHELL" (which "bash")) + (zero? + (system* "./configure" + (string-append "--prefix=" out))))) + %standard-phases))) + (inputs `(("ncurses" ,ncurses))) + (home-page "http://wwww.asty.org/cmatrix") + (synopsis "Simulate the display from \"The Matrix\"") + (description "CMatrix simulates the display from \"The Matrix\" and is +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://www.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+))) |