From patchwork Wed Apr 1 14:32:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jack Hill X-Patchwork-Id: 21035 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D232B27BBE4; Wed, 1 Apr 2020 15:33:14 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 7C08427BBE1 for ; Wed, 1 Apr 2020 15:33:14 +0100 (BST) Received: from localhost ([::1]:32890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJeQb-0001lZ-KS for patchwork@mira.cbaines.net; Wed, 01 Apr 2020 10:33:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56782) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJeQR-0001lD-Jk for guix-patches@gnu.org; Wed, 01 Apr 2020 10:33:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJeQQ-0005k6-Aq for guix-patches@gnu.org; Wed, 01 Apr 2020 10:33:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55238) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jJeQQ-0005jn-6Z for guix-patches@gnu.org; Wed, 01 Apr 2020 10:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jJeQQ-0006so-3K for guix-patches@gnu.org; Wed, 01 Apr 2020 10:33:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40364] [PATCH v2] gnu: Add gnome-chess Resent-From: Jack Hill Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 01 Apr 2020 14:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40364 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 40364@debbugs.gnu.org Cc: Jack Hill , mail@cbaines.net, mail@nicolasgoaziou.fr Received: via spool by 40364-submit@debbugs.gnu.org id=B40364.158575156726401 (code B ref 40364); Wed, 01 Apr 2020 14:33:02 +0000 Received: (at 40364) by debbugs.gnu.org; 1 Apr 2020 14:32:47 +0000 Received: from localhost ([127.0.0.1]:38551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJeQ6-0006rV-3h for submit@debbugs.gnu.org; Wed, 01 Apr 2020 10:32:47 -0400 Received: from minsky.hcoop.net ([104.248.1.95]:60316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jJeQ4-0006qz-Sf for 40364@debbugs.gnu.org; Wed, 01 Apr 2020 10:32:41 -0400 Received: from lib-its13.lib.duke.edu ([152.3.118.151] helo=localhost.localdomain) by minsky.hcoop.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1jJePx-0000j8-J1; Wed, 01 Apr 2020 10:32:33 -0400 From: Jack Hill Date: Wed, 1 Apr 2020 10:32:07 -0400 Message-Id: <20200401143207.13357-1-jackhill@jackhill.us> X-Mailer: git-send-email 2.25.1 In-Reply-To: <874ku34nlm.fsf@nicolasgoaziou.fr> References: <874ku34nlm.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/games.scm (gnome-chess): New variable. --- Thanks for the review and suggestion. I've added the #glib-or-gtk? #t argument, and it looks like the wrapping happens correctly. gnu/packages/games.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index e818b851f4..8a24dad33d 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -49,6 +49,7 @@ ;;; Copyright © 2020 Alberto Eleuterio Flores Guerrero ;;; Copyright © 2020 Naga Malleswari ;;; Copyright © 2020 Vitaliy Shatrov +;;; Copyright © 2020 Jack Hill ;;; ;;; This file is part of GNU Guix. ;;; @@ -1095,6 +1096,46 @@ destroying an ancient book using a special wand.") ;; license. The whole package is released under GPLv3+. (license license:gpl3+))) +(define-public gnome-chess + (package + (name "gnome-chess") + (version "3.36.0") + (source (origin + (method url-fetch) + (uri (string-append "mirror://gnome/sources/" name "/" + (version-major+minor version) "/" + name "-" version ".tar.xz")) + (sha256 + (base32 + "1a9fgi749gy1f60vbcyrqqkab9vqs42hji70q73k1xx8rv0agmg0")))) + (build-system meson-build-system) + (arguments + '(#:glib-or-gtk? #t + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'skip-gtk-update-icon-cache + ;; Don't create 'icon-theme.cache'. + (lambda _ + (substitute* "meson_post_install.py" + (("gtk-update-icon-cache") "true")) + #t))))) + (inputs + `(("gtk+" ,gtk+) + ("librsvg" ,librsvg))) + (native-inputs + `(("gettext" ,gettext-minimal) + ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util + ("itstool" ,itstool) + ("pkg-config" ,pkg-config) + ("vala" ,vala))) + (home-page "https://wiki.gnome.org/Apps/Chess") + (synopsis "Chess board for GNOME") + (description "GNOME Chess provides a 2D board for playing chess games +against human or computer players. It supports loading and saving games in +Portable Game Notation. To play against a computer, install a chess engine +such as chess or stockfish.") + (license license:gpl3+))) + (define-public gnubg (package (name "gnubg")