From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan =?utf-8?Q?Reich=C3=B6r?= Subject: Introduce packages/chess.el Date: Sat, 07 Jan 2017 20:37:11 +0100 Message-ID: <87mvf264rc.fsf@xsteve.at> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPwnu-0002OK-8o for guix-devel@gnu.org; Sat, 07 Jan 2017 14:37:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPwnq-0005rf-ME for guix-devel@gnu.org; Sat, 07 Jan 2017 14:37:26 -0500 Received: from [195.159.176.226] (port=44472 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cPwnq-0005pB-CV for guix-devel@gnu.org; Sat, 07 Jan 2017 14:37:22 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cPwni-0006TO-Pj for guix-devel@gnu.org; Sat, 07 Jan 2017 20:37:14 +0100 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" To: guix-devel@gnu.org --=-=-= Content-Type: text/plain Hi there, I would like to add some chess related packages to GUIX. I found the packages xboard and chess that are already covered by GUIX. The attached patch moves these two packages to a new file named chess.scm I would like to add some more chess related packages to chess.scm in the future. Stefan. --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-chess-xboard-Move-to-gnu-packages-chess.patch Content-Transfer-Encoding: 8bit >From 7fb3eba51f0919a2e1c9b13ecb4ff77757bf4267 Mon Sep 17 00:00:00 2001 From: Stefan Reichoer Date: Sat, 7 Jan 2017 20:30:14 +0100 Subject: [PATCH] gnu: chess, xboard: Move to (gnu packages chess). * gnu/packages/games.scm: Move 'chess', 'xboard' to... * gnu/packages/chess.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add chess.scm. --- gnu/local.mk | 1 + gnu/packages/chess.scm | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++ gnu/packages/games.scm | 49 -------------------------------- 3 files changed, 78 insertions(+), 49 deletions(-) create mode 100644 gnu/packages/chess.scm diff --git a/gnu/local.mk b/gnu/local.mk index 1889a0e..b043f41 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -69,6 +69,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/c.scm \ %D%/packages/calcurse.scm \ %D%/packages/ccache.scm \ + %D%/packages/chess.scm \ %D%/packages/cdrom.scm \ %D%/packages/certs.scm \ %D%/packages/check.scm \ diff --git a/gnu/packages/chess.scm b/gnu/packages/chess.scm new file mode 100644 index 0000000..28383c8 --- /dev/null +++ b/gnu/packages/chess.scm @@ -0,0 +1,77 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2013 John Darrington +;;; Copyright © 2016 Sou Bunnbu +;;; Copyright © 2016 Efraim Flashner +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages chess) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (gnu packages) + #:use-module (gnu packages gtk) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages texinfo) + #:use-module (guix build-system gnu)) + +(define-public chess + (package + (name "chess") + (version "6.2.4") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://gnu/chess/gnuchess-" version + ".tar.gz")) + (sha256 + (base32 + "1vw2w3jwnmn44d5vsw47f8y70xvxcsz9m5msq9fgqlzjch15qhiw")))) + (build-system gnu-build-system) + (home-page "https://www.gnu.org/software/chess") + (synopsis "Full chess implementation") + (description "GNU Chess is a chess engine. It allows you to compete +against the computer in a game of chess, either through the default terminal +interface or via an external visual interface such as GNU XBoard.") + (license license:gpl3+))) + +(define-public xboard + (package + (name "xboard") + (version "4.9.1") + (source + (origin + (method url-fetch) + (uri (string-append "mirror://gnu/xboard/xboard-" version + ".tar.gz")) + (sha256 + (base32 + "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib")))) + (build-system gnu-build-system) + (inputs + `(("gtk+" ,gtk+-2) + ("librsvg" ,librsvg))) + (native-inputs + `(("texinfo" ,texinfo) + ("pkg-config" ,pkg-config))) + (home-page "https://www.gnu.org/software/xboard") + (synopsis "Graphical user interface for chess programs") + (description "GNU XBoard is a graphical board for all varieties of chess, +including international chess, xiangqi (Chinese chess), shogi (Japanese chess) +and Makruk. Several lesser-known variants are also supported. It presents a +fully interactive graphical interface and it can load and save games in the +Portable Game Notation.") + (license license:gpl3+))) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index c449f59..2b260ca 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -327,26 +327,6 @@ settings up to 132x300 and can scroll lines all at the same rate or asynchronously and at a user-defined speed.") (license license:gpl2+))) -(define-public chess - (package - (name "chess") - (version "6.2.4") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://gnu/chess/gnuchess-" version - ".tar.gz")) - (sha256 - (base32 - "1vw2w3jwnmn44d5vsw47f8y70xvxcsz9m5msq9fgqlzjch15qhiw")))) - (build-system gnu-build-system) - (home-page "https://www.gnu.org/software/chess") - (synopsis "Full chess implementation") - (description "GNU Chess is a chess engine. It allows you to compete -against the computer in a game of chess, either through the default terminal -interface or via an external visual interface such as GNU XBoard.") - (license license:gpl3+))) - (define freedink-engine (package (name "freedink-engine") @@ -428,35 +408,6 @@ exec ~a/bin/freedink -refdir ~a/share/dink\n" ("bash" ,bash))) (native-inputs '()))) -(define-public xboard - (package - (name "xboard") - (version "4.9.1") - (source - (origin - (method url-fetch) - (uri (string-append "mirror://gnu/xboard/xboard-" version - ".tar.gz")) - (sha256 - (base32 - "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib")))) - (build-system gnu-build-system) - (inputs - `(("gtk+" ,gtk+-2) - ("librsvg" ,librsvg))) - (native-inputs - `(("texinfo" ,texinfo) - ("pkg-config" ,pkg-config))) - (home-page "https://www.gnu.org/software/xboard") - (synopsis "Graphical user interface for chess programs") - (description "GNU XBoard is a graphical board for all varieties of chess, -including international chess, xiangqi (Chinese chess), shogi (Japanese chess) -and Makruk. Several lesser-known variants are also supported. It presents a -fully interactive graphical interface and it can load and save games in the -Portable Game Notation.") - (license license:gpl3+))) - - (define-public xboing (package (name "xboing") -- 2.7.4 --=-=-=--