summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author宋文武 <iyzsong@gmail.com>2014-11-12 20:28:51 +0800
committerLudovic Courtès <ludo@gnu.org>2014-11-12 14:38:55 +0100
commita21b42e225fbf945f1c94fc4334e8f5d9f014be3 (patch)
treeef5c4c7e5db9b89eb77869ad67c97e01e30b1cde
parent84dfb4582121480cec7a8cfb73725ef006b747b5 (diff)
gnu: Add GNU Typist.
* gnu/packages/games.scm (gtypist): New variable. Co-authored-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--gnu/packages/games.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index df24c0da380..dee39dd241e 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -5,6 +5,7 @@
5;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com> 5;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
6;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net> 6;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
7;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org> 7;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
8;;; Copyright © 2014 Sou Bunnbu <iyzsong@gmail.com>
8;;; 9;;;
9;;; This file is part of GNU Guix. 10;;; This file is part of GNU Guix.
10;;; 11;;;
@@ -47,6 +48,7 @@
47 #:use-module (gnu packages check) 48 #:use-module (gnu packages check)
48 #:use-module (gnu packages fontutils) 49 #:use-module (gnu packages fontutils)
49 #:use-module (gnu packages bash) 50 #:use-module (gnu packages bash)
51 #:use-module (gnu packages perl)
50 #:use-module (guix build-system gnu) 52 #:use-module (guix build-system gnu)
51 #:use-module (guix build-system trivial)) 53 #:use-module (guix build-system trivial))
52 54
@@ -462,3 +464,37 @@ you control to bounce a ball around the game zone destroying blocks with a
462proton ball. Each block carries a different point value. The more blocks you 464proton ball. Each block carries a different point value. The more blocks you
463destroy, the better your score. The person with the highest score wins.") 465destroy, the better your score. The person with the highest score wins.")
464 (license (x11-style "file://COPYING" "Very similar to the X11 licence.")))) 466 (license (x11-style "file://COPYING" "Very similar to the X11 licence."))))
467
468(define-public gtypist
469 (package
470 (name "gtypist")
471 (version "2.9.5")
472 (source (origin
473 (method url-fetch)
474 (uri (string-append "mirror://gnu/gtypist/gtypist-"
475 version ".tar.xz"))
476 (sha256
477 (base32
478 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
479 (modules '((guix build utils)))
480 (snippet
481 ;; We do not provide `ncurses.h' within an `ncursesw'
482 ;; sub-directory, so patch the source accordingly. See
483 ;; <http://bugs.gnu.org/19018>.
484 '(for-each (lambda (file)
485 (substitute* file
486 (("ncursesw/ncurses.h")
487 "ncurses.h")))
488 (find-files "." "configure$|\\.c$")))))
489 (build-system gnu-build-system)
490 (inputs `(("ncurses" ,ncurses)
491 ("perl" ,perl)))
492 (home-page "http://www.gnu.org/software/gtypist/")
493 (synopsis "Typing tutor")
494 (description
495 "GNU Typist is a universal typing tutor. It can be used to learn and
496practice touch-typing. Several tutorials are included; in addition to
497tutorials for the standard QWERTY layout, there are also tutorials for the
498alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
499are primarily in English, however some in other languages are provided.")
500 (license gpl3+)))