From a21b42e225fbf945f1c94fc4334e8f5d9f014be3 Mon Sep 17 00:00:00 2001 From: 宋文武 Date: Wed, 12 Nov 2014 20:28:51 +0800 Subject: gnu: Add GNU Typist. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/games.scm (gtypist): New variable. Co-authored-by: Ludovic Courtès --- gnu/packages/games.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'gnu') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index df24c0da38..dee39dd241 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -5,6 +5,7 @@ ;;; Copyright © 2014 Cyrill Schenkel ;;; Copyright © 2014 Sylvain Beucler ;;; Copyright © 2014 Ludovic Courtès +;;; Copyright © 2014 Sou Bunnbu ;;; ;;; This file is part of GNU Guix. ;;; @@ -47,6 +48,7 @@ #:use-module (gnu packages check) #:use-module (gnu packages fontutils) #:use-module (gnu packages bash) + #:use-module (gnu packages perl) #:use-module (guix build-system gnu) #:use-module (guix build-system trivial)) @@ -462,3 +464,37 @@ you control to bounce a ball around the game zone destroying blocks with a proton ball. Each block carries a different point value. The more blocks you destroy, the better your score. The person with the highest score wins.") (license (x11-style "file://COPYING" "Very similar to the X11 licence.")))) + +(define-public gtypist + (package + (name "gtypist") + (version "2.9.5") + (source (origin + (method url-fetch) + (uri (string-append "mirror://gnu/gtypist/gtypist-" + version ".tar.xz")) + (sha256 + (base32 + "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1")) + (modules '((guix build utils))) + (snippet + ;; We do not provide `ncurses.h' within an `ncursesw' + ;; sub-directory, so patch the source accordingly. See + ;; . + '(for-each (lambda (file) + (substitute* file + (("ncursesw/ncurses.h") + "ncurses.h"))) + (find-files "." "configure$|\\.c$"))))) + (build-system gnu-build-system) + (inputs `(("ncurses" ,ncurses) + ("perl" ,perl))) + (home-page "http://www.gnu.org/software/gtypist/") + (synopsis "Typing tutor") + (description + "GNU Typist is a universal typing tutor. It can be used to learn and +practice touch-typing. Several tutorials are included; in addition to +tutorials for the standard QWERTY layout, there are also tutorials for the +alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials +are primarily in English, however some in other languages are provided.") + (license gpl3+))) -- cgit v1.2.3