From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Subject: [PATCH] gnu: Add GNU Typist. Date: Wed, 12 Nov 2014 20:28:51 +0800 Message-ID: <1415795331-12076-1-git-send-email-iyzsong@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38985) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoX2l-0001gp-A0 for guix-devel@gnu.org; Wed, 12 Nov 2014 07:29:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XoX2g-0001QT-Gg for guix-devel@gnu.org; Wed, 12 Nov 2014 07:29:03 -0500 Received: from mail-pd0-x22f.google.com ([2607:f8b0:400e:c02::22f]:63632) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoX2g-0001QC-9j for guix-devel@gnu.org; Wed, 12 Nov 2014 07:28:58 -0500 Received: by mail-pd0-f175.google.com with SMTP id y13so12210776pdi.34 for ; Wed, 12 Nov 2014 04:28:57 -0800 (PST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org Cc: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= * 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 ;;; 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,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