guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] gnu: Add GNU Typist.


From: 宋文武
Subject: [PATCH] gnu: Add GNU Typist.
Date: Wed, 12 Nov 2014 20:28:51 +0800

* gnu/packages/games.scm (gtypist): New variable.
---
 gnu/packages/games.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index df24c0d..9009ad7 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -5,6 +5,7 @@
 ;;; Copyright © 2014 Cyrill Schenkel <address@hidden>
 ;;; Copyright © 2014 Sylvain Beucler <address@hidden>
 ;;; Copyright © 2014 Ludovic Courtès <address@hidden>
+;;; Copyright © 2014 Sou Bunnbu <address@hidden>
 ;;;
 ;;; 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,38 @@ 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"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:phases
+       (alist-cons-before
+        'configure 'patch-ncursesw
+        ;; We do not provide `ncurses.h' within an `ncursesw' subdir.
+        (lambda _
+          (for-each (lambda (file)
+                      (substitute* file (("ncursesw/ncurses.h") "ncurses.h")))
+                    (find-files "." "configure$|\\.c$")))
+        %standard-phases)))
+    (inputs `(("ncurses" ,ncurses)
+              ("perl" ,perl)))
+    (home-page "http://www.gnu.org/software/gtypist/";)
+    (synopsis "Universal typing tutor")
+    (description
+     "Typist is a typing tutor package built using Curses.  The package has
+tutorials, drills, and practice sessions to learn touch typing.  The emphasis
+is on the US computer keyboard layout, but lessons for Dvorak and other
+keyboard types and languages are also included.  The program also has Native
+Language Support and is distributed with messages in many different 
languages.")
+    (license gpl3+)))
-- 
1.9.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]