From patchwork Sun Mar 20 14:28:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Roman Riabenko X-Patchwork-Id: 37964 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 E32CD27BBEA; Sun, 20 Mar 2022 15:34:32 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 63C9C27BBE9 for ; Sun, 20 Mar 2022 15:34:32 +0000 (GMT) Received: from localhost ([::1]:37716 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVxZf-000849-I4 for patchwork@mira.cbaines.net; Sun, 20 Mar 2022 11:34:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52612) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVwZG-0005mN-QE for guix-patches@gnu.org; Sun, 20 Mar 2022 10:30:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41013) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nVwZG-0000Sx-GQ for guix-patches@gnu.org; Sun, 20 Mar 2022 10:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nVwZG-0001IW-Cf for guix-patches@gnu.org; Sun, 20 Mar 2022 10:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54476] [PATCH] gnu: games: Add robotfindskitten. Resent-From: Roman Riabenko Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 20 Mar 2022 14:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54476 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54476@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16477865464894 (code B ref -1); Sun, 20 Mar 2022 14:30:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Mar 2022 14:29:06 +0000 Received: from localhost ([127.0.0.1]:34910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVwYG-0001GW-Up for submit@debbugs.gnu.org; Sun, 20 Mar 2022 10:29:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:47998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nVwYF-0001GP-Hy for submit@debbugs.gnu.org; Sun, 20 Mar 2022 10:28:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVwYF-0005jq-2H for guix-patches@gnu.org; Sun, 20 Mar 2022 10:28:59 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:56903) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVwYC-0000Lc-FH for guix-patches@gnu.org; Sun, 20 Mar 2022 10:28:58 -0400 Received: (Authenticated sender: roman@riabenko.com) by mail.gandi.net (Postfix) with ESMTPSA id B30D31BF203 for ; Sun, 20 Mar 2022 14:28:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riabenko.com; s=gm1; t=1647786532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=h1blsjiV3GtamXSIc0LdLIpeS/LfKvOoYRLffydgoAs=; b=NJHyMhxUitwoCZ246n9L6GC/vFRR+nUlObElaaB8jgatcGfYustv1Pekv7LdvXSfzo1q87 2OwwErW9t/qz60vZcz0H9wasZ9v6lq5t24/bb9PBinFsDCqxjraQ5nNmCmyTBxIv56WMjJ 3ReH7G3vDuSUfTnVJf3N/xvRoIX9QbDITmYOGtJjPajUngxu9YsGlmkimEifIV4gylZjb8 UUjPiJTMKROZFdh5xgKQxDHeqwd/c3dKFS6sfOfhpygBYJ69D27WBDyiNVBwQwSf3e9YMO KAQa7M+3Sx0B01bNgF04OFfC20qTruPDeWHYtiU/3mrX1g+WCkSZEr1SyGYHzw== Message-ID: From: Roman Riabenko Date: Sun, 20 Mar 2022 16:28:49 +0200 User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Received-SPF: pass client-ip=217.70.183.201; envelope-from=roman@riabenko.com; helo=relay8-d.mail.gandi.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sun, 20 Mar 2022 11:34:21 -0400 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 This patch adds robotfindskitten. Roman From c35c4283a2e66c03693164df1b9e62514478bb1c Mon Sep 17 00:00:00 2001 From: Roman Riabenko Date: Thu, 17 Mar 2022 14:34:25 +0200 Subject: [PATCH] gnu: games: Add robotfindskitten. * gnu/packages/games.scm (robotfindskitten): New variable. --- gnu/packages/games.scm | 56 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 8cc29b3487..9ed0cad802 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -69,6 +69,7 @@ ;;; Copyright © 2021 Christopher Baines ;;; Copyright © 2021 Foo Chuan Wei ;;; Copyright © 2022 Yovan Naumovski +;;; Copyright © 2022 Roman Riabenko ;;; ;;; This file is part of GNU Guix. ;;; @@ -2250,6 +2251,61 @@ (define-public retux license:gpl2+ license:gpl3+))))) +(define-public robotfindskitten + (package + (name "robotfindskitten") + ;; Despite what guix lint says, version 2.8284271.702 is newer then + ;; 1600003_201b. See ChangeLog for version history. + (version "2.8284271.702") + ;; The git version is the same as in the release tarball, but it bundles + ;; convenient .desktop files, which were requested for Debian. + (source (origin + (method git-fetch) + (uri (git-reference + (url + "https://github.com/robotfindskitten/robotfindskitten") + (commit "1cae36621f9c19d19a40eacf63789913d4ef5d5c"))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0ps3xrl1yh0h7jhl3bwhx5xw2hvhzync03y08i66rzw098r530qq")))) + (build-system gnu-build-system) + (arguments + '(#:phases (modify-phases %standard-phases + (replace 'bootstrap + (lambda _ + (invoke "autoreconf" "-ifv"))) ;per README.md + (add-after 'unpack 'fix-install-path + (lambda _ + ;; It is configured to install executable to /games or + ;; /usr/local/games per Filesystem Hierarchy Standard. + ;; We change that to get it in $PATH. + (substitute* "src/Makefile.am" + (("\\$\\(prefix\\)/games") "$(prefix)/bin")) + ;; When built with guix, all characters are displayed in + ;; the background colour pair. If it is not set manually, + ;; this is not happening, so we get back colour into the + ;; game. The background is redrawn anyway. See man bkgd. + (substitute* "src/robotfindskitten.c" + (("\\(void\\) bkgd \\( \\(chtype\\) COLOR_PAIR\\(WHITE\\) \\);") + ""))))) + #:configure-flags + '("--enable-silent-rules"))) + (native-inputs (list autoconf automake libtool texinfo)) + (inputs (list ncurses)) + (outputs '("out" "debug")) + ;; The following was copied from the bundled XML file and formatted. + (synopsis "Zen Simulation of robot finding kitten") + (description + "In this simulation, you play the part of robot. Your task is to +complete the simulation by finding kitten, as is your destiny, and indeed your +wont. You (robot) are represented by the # character, and you move around with +the arrow keys touching things. If the thing you touch is kitten, you get a +cute little animation (which was cuter in the DOS version) and the simulation +ends. Otherwise, you get a brief description of what it is you touched.") + (home-page "http://robotfindskitten.org/") + (license license:gpl2+))) + (define-public roguebox-adventures (package (name "roguebox-adventures") base-commit: 8a0713aef2a8d709551d51fefff45f4611d05c66 -- 2.34.0