all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: 宋文武 <iyzsong@gmail.com>
To: guix-devel@gnu.org
Cc: 宋文武 <iyzsong@gmail.com>
Subject: [PATCH] gnu: Add GNU Typist.
Date: Wed, 12 Nov 2014 20:28:51 +0800	[thread overview]
Message-ID: <1415795331-12076-1-git-send-email-iyzsong@gmail.com> (raw)

* 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 <cyrill.schenkel@gmail.com>
 ;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
 ;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2014 Sou Bunnbu <iyzsong@gmail.com>
 ;;;
 ;;; 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	other threads:[~2014-11-12 12:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-12 12:28 宋文武 [this message]
2014-11-12 13:41 ` [PATCH] gnu: Add GNU Typist Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1415795331-12076-1-git-send-email-iyzsong@gmail.com \
    --to=iyzsong@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.