* [PATCH] gnu: Add GNU Typist.
@ 2014-11-12 12:28 宋文武
2014-11-12 13:41 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: 宋文武 @ 2014-11-12 12:28 UTC (permalink / raw)
To: guix-devel; +Cc: 宋文武
* 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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gnu: Add GNU Typist.
2014-11-12 12:28 [PATCH] gnu: Add GNU Typist 宋文武
@ 2014-11-12 13:41 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2014-11-12 13:41 UTC (permalink / raw)
To: 宋文武; +Cc: guix-devel
宋文武 <iyzsong@gmail.com> skribis:
> * gnu/packages/games.scm (gtypist): New variable.
I’ve pushed the patch with two changes:
1. I’ve moved the patching to a ‘snippet’ in the ‘origin’ form, so
that it is applied when someone uses ‘guix build -S’, and adjusted
formatting.
2. I’ve changed the synopsis and description to what ‘make
sync-descriptions’ suggests (for GNU packages, we take synopses and
descriptions from an upstream database, which is what
‘sync-description’ uses.)
Thank you!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-12 13:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-12 12:28 [PATCH] gnu: Add GNU Typist 宋文武
2014-11-12 13:41 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).