From patchwork Thu Dec 21 10:40:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 57946 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 97E4927BBEA; Thu, 21 Dec 2023 10:45:05 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 3095527BBE2 for ; Thu, 21 Dec 2023 10:45:04 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGGVA-0006FC-Gt; Thu, 21 Dec 2023 05:42:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rGGV4-0005uk-Rj for guix-patches@gnu.org; Thu, 21 Dec 2023 05:41:59 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rGGV4-0006C2-GM for guix-patches@gnu.org; Thu, 21 Dec 2023 05:41:58 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rGGV8-0000ut-2s for guix-patches@gnu.org; Thu, 21 Dec 2023 05:42:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67950] [PATCH 1/3] gnu: Add inform. References: In-Reply-To: Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Dec 2023 10:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67950 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67950@debbugs.gnu.org Cc: Liliana Marie Prikler Received: via spool by 67950-submit@debbugs.gnu.org id=B67950.17031552813476 (code B ref 67950); Thu, 21 Dec 2023 10:42:02 +0000 Received: (at 67950) by debbugs.gnu.org; 21 Dec 2023 10:41:21 +0000 Received: from localhost ([127.0.0.1]:42479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGGUT-0000tx-0L for submit@debbugs.gnu.org; Thu, 21 Dec 2023 05:41:21 -0500 Received: from layka.disroot.org ([178.21.23.139]:60786) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGGUO-0000tk-AG for 67950@debbugs.gnu.org; Thu, 21 Dec 2023 05:41:19 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 370B041537; Thu, 21 Dec 2023 11:41:10 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Uf8HfKFbuOij; Thu, 21 Dec 2023 11:41:08 +0100 (CET) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1703155268; bh=LKUTaexdybagVk2ZtpN22YOMBDDktxbGtJ8CbwlBFC8=; h=Date:To:Cc:From:Subject; b=D1YMDH4oufFv89ebWH6zJjvtTdNNv8v509KxG8/43Trwjsyh3gGOgrD+GZOd/8b7p BnS9r7W5ksPEu5GihsU2ed505Q21H8Dnyhvq9iwYOopQqvu6JxdPUstZcMeqaq4Vsr wReEdlrXZjgCzuMgXo2VWcof12w4NWHeRDhuj6ZYi9k6hoRFy7hkox2AarrtOZrCXH eLGGTxUCzhU7qOAcNPRXae3XFDueA+0Ux7Q/SGlfEp5skYjYW5DrMKuqhwF5P9jDwk by8LXYGd6Nf2O1ANrV8zCOb5yAFB4ckxG+8f+qNLLXWGoQCbdxJtPdfK2gdprwfR/H jk1aN13Dap9pA== Date: Thu, 21 Dec 2023 18:40:45 +0800 MIME-Version: 1.0 Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 7e5c86c9e60ba200f14c0fd8ef8e555c0dabcbc1 Mon Sep 17 00:00:00 2001 Message-ID: <7e5c86c9e60ba200f14c0fd8ef8e555c0dabcbc1.1703154486.git.adam.faiz@disroot.org> In-Reply-To: References: From: AwesomeAdam54321 Date: Thu, 21 Dec 2023 18:15:41 +0800 Subject: [PATCH 1/3] gnu: Add inform. * gnu/packages/patches/inform-add-makefile.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it here. * gnu/packages/game-development.scm (inform): New variable. --- gnu/local.mk | 1 + gnu/packages/game-development.scm | 25 ++++ .../patches/inform-add-makefile.patch | 109 ++++++++++++++++++ 3 files changed, 135 insertions(+) create mode 100644 gnu/packages/patches/inform-add-makefile.patch diff --git a/gnu/local.mk b/gnu/local.mk index f7aec83e8a..1bc955ce1f 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1449,6 +1449,7 @@ dist_patch_DATA = \ %D%/packages/patches/imagemagick-ReadDCMImage-fix.patch \ %D%/packages/patches/imagemagick-ReadDCMPixels-fix.patch \ %D%/packages/patches/imagemagick-WriteTHUMBNAILImage-fix.patch \ + %D%/packages/patches/inform-add-makefile.patch \ %D%/packages/patches/inkscape-poppler-compat.patch \ %D%/packages/patches/instead-use-games-path.patch \ %D%/packages/patches/intltool-perl-compatibility.patch \ diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index a2d7c5ea63..0c467de23f 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -2771,6 +2771,31 @@ (define-public ioquake3 people base their games, ports to new platforms, and other projects.") (license license:gpl2)))) +(define-public inform + (package + (name "inform") + (version "6.41") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://jxself.org/git/inform.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1g2misbp4lacaqa96wk0ad59ybr2dvjnhjsrz98byx4i99s2m2nr")) + (patches + (search-patches + "inform-add-makefile.patch")))) + (build-system gnu-build-system) + (native-inputs (list autoconf automake)) + (synopsis "The Inform 6 compiler") + (description + "This is an Inform 6 compiler that has been modified slightly to work better +when the Inform standard library is in a non-standard location.") + (home-page "https://jxself.org/git/inform.git") + (license license:gpl3+))) + (define-public instead (package (name "instead") diff --git a/gnu/packages/patches/inform-add-makefile.patch b/gnu/packages/patches/inform-add-makefile.patch new file mode 100644 index 0000000000..497d40979e --- /dev/null +++ b/gnu/packages/patches/inform-add-makefile.patch @@ -0,0 +1,109 @@ +From b2332ab850dc260be8892ad5a4148b335c6b193b Mon Sep 17 00:00:00 2001 +From: AwesomeAdam54321 +Date: Wed, 20 Dec 2023 22:38:41 +0800 +Subject: [PATCH] Implement a Makefile for Inform. + +--- + Makefile.am | 17 +++++++++++++++++ + configure.ac | 40 ++++++++++++++++++++++++++++++++++++++++ + src/Makefile.am | 17 +++++++++++++++++ + 3 files changed, 74 insertions(+) + create mode 100644 Makefile.am + create mode 100644 configure.ac + create mode 100644 src/Makefile.am + +diff --git a/Makefile.am b/Makefile.am +new file mode 100644 +index 0000000..fb99417 +--- /dev/null ++++ b/Makefile.am +@@ -0,0 +1,17 @@ ++# This file is part of Inform. ++# ++# Inform is free software: you can redistribute it and/or modify it ++# under the terms of the GNU General Public License as published by ++# theFree Software Foundation, either version 3 of the License, or ++#(at your option) any later version. ++# ++# Inform 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 Inform. If not, see https://gnu.org/licenses/ ++ ++AUTOMAKE_OPTIONS = foreign ++SUBDIRS = src +diff --git a/configure.ac b/configure.ac +new file mode 100644 +index 0000000..0ff8ced +--- /dev/null ++++ b/configure.ac +@@ -0,0 +1,40 @@ ++# Process this file with autoconf to produce a configure script. ++# ++# This file is part of Inform. ++# ++# Inform is free software: you can redistribute it and/or modify it ++# under the terms of the GNU General Public License as published by ++# theFree Software Foundation, either version 3 of the License, or ++#(at your option) any later version. ++# ++# Inform 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 Inform. If not, see https://gnu.org/licenses/ ++ ++AC_INIT([inform], [6.41], [j@jxself.org]) ++AM_INIT_AUTOMAKE([foreign]) ++AC_OUTPUT(Makefile src/Makefile) ++ ++# Checks for programs. ++AC_PROG_CC ++ ++# Checks for libraries. ++ ++# Checks for header files. ++AC_CHECK_HEADERS([limits.h stdlib.h string.h unistd.h]) ++ ++# Checks for typedefs, structures, and compiler characteristics. ++AC_CHECK_HEADER_STDBOOL ++AC_TYPE_SIZE_T ++ ++# Checks for library functions. ++AC_FUNC_ERROR_AT_LINE ++AC_FUNC_MALLOC ++AC_FUNC_REALLOC ++AC_CHECK_FUNCS([memmove memset realpath strchr strtol]) ++ ++AC_OUTPUT +diff --git a/src/Makefile.am b/src/Makefile.am +new file mode 100644 +index 0000000..b548944 +--- /dev/null ++++ b/src/Makefile.am +@@ -0,0 +1,17 @@ ++# This file is part of Inform. ++# ++# Inform is free software: you can redistribute it and/or modify it ++# under the terms of the GNU General Public License as published by ++# theFree Software Foundation, either version 3 of the License, or ++#(at your option) any later version. ++# ++# Inform 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 Inform. If not, see https://gnu.org/licenses/ ++ ++bin_PROGRAMS = inform ++inform_SOURCES = arrays.c asm.c bpatch.c chars.c directs.c errors.c expressc.c expressp.c files.c header.h inform.c lexer.c memory.c objects.c states.c symbols.c syntax.c tables.c text.c veneer.c verbs.c +-- +2.41.0 + From patchwork Thu Dec 21 10:42:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 57945 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 AE67727BBEA; Thu, 21 Dec 2023 10:44:58 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 F005227BBE9 for ; Thu, 21 Dec 2023 10:44:57 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGGWH-0001qS-CY; Thu, 21 Dec 2023 05:43:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rGGW3-0001hc-ER for guix-patches@gnu.org; Thu, 21 Dec 2023 05:43:00 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rGGW2-0006JV-1j for guix-patches@gnu.org; Thu, 21 Dec 2023 05:42:59 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rGGW5-0000wY-L7 for guix-patches@gnu.org; Thu, 21 Dec 2023 05:43:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67950] [PATCH 2/3] gnu: Add informlib. Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Dec 2023 10:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67950 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67950@debbugs.gnu.org Cc: Liliana Marie Prikler Received: via spool by 67950-submit@debbugs.gnu.org id=B67950.17031553703609 (code B ref 67950); Thu, 21 Dec 2023 10:43:01 +0000 Received: (at 67950) by debbugs.gnu.org; 21 Dec 2023 10:42:50 +0000 Received: from localhost ([127.0.0.1]:42483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGGVt-0000w9-S9 for submit@debbugs.gnu.org; Thu, 21 Dec 2023 05:42:50 -0500 Received: from layka.disroot.org ([178.21.23.139]:55886) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGGVr-0000vz-OJ for 67950@debbugs.gnu.org; Thu, 21 Dec 2023 05:42:49 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 5473D41300; Thu, 21 Dec 2023 11:42:43 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ML3YRNrKT2kg; Thu, 21 Dec 2023 11:42:42 +0100 (CET) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1703155362; bh=1Xrt4aFRUVcQtWLj4q68XlwpLFV7Qj5f/nW9kBk/JgE=; h=Date:Subject:From:To:Cc:References:In-Reply-To; b=UPUpQlyaSykrzfRfzTlA+NuNH+BZH2yCjWTdMAkGFRLCUqBeCxAIf//S/QE+VO7Uw 1aHRTTCe70kMGSUySfl79y2LpcJSfm+4pKjIKmK8/9Giruf7PnrRahEui/zMQErAtL DhseXn8bwJQbwQaDXItPTGwKLZ5FFabw/Tn1uZeoprj+81svd/stKEijp3jjImyBK2 0FVAd8tYjMQscZ8oV9OyMkTU5XGIZm+png0tyupKRIJxXWAiiGVsCeRjf6w3+tneIq YpsuJb/M8SuFjSTvzky/AT+ck+jqjoHPcCeVTZ2uQN5x1sHi5knNGM8SY0mpfAL4aV l+ifSzQ4qzUxg== Date: Thu, 21 Dec 2023 18:42:17 +0800 MIME-Version: 1.0 Content-Language: en-US References: In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 55f87c2ef4fe17845ac94e9e0ef5ccae98b1777f Mon Sep 17 00:00:00 2001 Message-ID: <55f87c2ef4fe17845ac94e9e0ef5ccae98b1777f.1703154486.git.adam.faiz@disroot.org> In-Reply-To: References: From: AwesomeAdam54321 Date: Thu, 21 Dec 2023 18:17:29 +0800 Subject: [PATCH 2/3] gnu: Add informlib. * gnu/packages/game-development.scm (informlib): New variable. --- gnu/packages/game-development.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 0c467de23f..6e080b3f36 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -57,6 +57,7 @@ (define-module (gnu packages game-development) #:use-module (guix svn-download) #:use-module (guix utils) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix build-system pyproject) #:use-module (guix build-system python) @@ -2796,6 +2797,30 @@ (define-public inform (home-page "https://jxself.org/git/inform.git") (license license:gpl3+))) +(define-public informlib + (package + (name "informlib") + (version "6.12.6") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://jxself.org/git/informlib.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0fcnw4jjzln402qk097n2s8y24vw1p3mmlmh6k1mbr2zfajjcn5r")))) + (build-system copy-build-system) + (arguments + (list + #:install-plan + #~'(("." "lib")))) + (synopsis "Inform 6 standard library") + (description + "This package provides the standard library for Inform 6.") + (home-page "https://jxself.org/git/informlib.git") + (license license:agpl3+))) + (define-public instead (package (name "instead") From patchwork Thu Dec 21 10:43:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 57947 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 4FD2A27BBE9; Thu, 21 Dec 2023 10:45:17 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED 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 30FB827BBE2 for ; Thu, 21 Dec 2023 10:45:15 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rGGY3-0007jK-3u; Thu, 21 Dec 2023 05:45:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rGGY0-0007Xw-5W for guix-patches@gnu.org; Thu, 21 Dec 2023 05:45:00 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rGGXy-0006gO-Ft for guix-patches@gnu.org; Thu, 21 Dec 2023 05:44:58 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rGGY2-0000zh-9D for guix-patches@gnu.org; Thu, 21 Dec 2023 05:45:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67950] [PATCH 3/3] gnu: Add devours. Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 21 Dec 2023 10:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67950 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67950@debbugs.gnu.org Cc: Liliana Marie Prikler Received: via spool by 67950-submit@debbugs.gnu.org id=B67950.17031554663768 (code B ref 67950); Thu, 21 Dec 2023 10:45:02 +0000 Received: (at 67950) by debbugs.gnu.org; 21 Dec 2023 10:44:26 +0000 Received: from localhost ([127.0.0.1]:42487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGGXR-0000yi-DE for submit@debbugs.gnu.org; Thu, 21 Dec 2023 05:44:25 -0500 Received: from layka.disroot.org ([178.21.23.139]:37770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rGGXP-0000yZ-CE for 67950@debbugs.gnu.org; Thu, 21 Dec 2023 05:44:24 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id EBC4040EA0; Thu, 21 Dec 2023 11:44:18 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0q49ivaIxdIO; Thu, 21 Dec 2023 11:44:17 +0100 (CET) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1703155457; bh=zO/MO4IJ3+YuQjc0asnmidvhbzWV465qfJba8V6/6t8=; h=Date:Subject:From:To:Cc:References:In-Reply-To; b=Qctq6gkWGvx2nddT8Fc7pCR5QnCteR+GEktIuR7GTw4WGQjYWVfISmymJ0FDmQcEV gK87NapbVbwDXFsaWQHM1Rj0Txlx0TRPvkHDBMuLTWN6ihfoK4vu01LXyuHUs7LQYS UNcX6hWelRdyOegZSN1Lq2XD2wiwHsldrkOE/gLOTFuEtuSX8b3fMbyuvoV6l+J9lK Twx6yl8OJmcPJk/87UukbbdvTTAQW99DyJZgvihxBovWNadCDzkg5A6p7oxtXsJyQ+ 6KnFYT9Ww4xZX7im5Hl2mOMGMSmd1zH1xvkTnEO3gIt5bEuxq5FEFEiRYbSlacVR+v cGNq0XCrkkb+w== Date: Thu, 21 Dec 2023 18:43:54 +0800 MIME-Version: 1.0 Content-Language: en-US References: In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 4a21bc5fc4a31a9a8f5cac2ea834d86203e5115a Mon Sep 17 00:00:00 2001 Message-ID: <4a21bc5fc4a31a9a8f5cac2ea834d86203e5115a.1703154486.git.adam.faiz@disroot.org> In-Reply-To: References: From: AwesomeAdam54321 Date: Thu, 21 Dec 2023 18:26:27 +0800 Subject: [PATCH 3/3] gnu: Add devours. * gnu/packages/games.scm (devours): New variable. --- gnu/packages/games.scm | 74 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 66739d7a6b..f7ff5cadf7 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -11100,6 +11100,80 @@ (define-public curseofwar available.") (license license:gpl3+))) +(define-public devours + (let ((commit "d50e745aa14aa48f7555ae12eb3d1000de1cc150") + (revision "0")) + (package + (name "devours") + (version (git-version "3" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://jxself.org/git/devours.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1ksl6mh76jfx64rmasz2571f88ws45vby2977srhgkh355zp3lzn")))) + (build-system gnu-build-system) + (arguments + (list + #:tests? #f ; no tests + #:phases + #~(modify-phases %standard-phases + (delete 'configure) ; no configure + (replace 'build + (lambda _ + (invoke "inform" + (string-append "+include_path=" + #$(this-package-native-input "informlib") + "/lib") + "devours.inf"))) + (replace 'install + (lambda* (#:key inputs #:allow-other-keys) + ;; Create standalone executable. + (let* ((bash (search-input-file inputs "/bin/bash")) + (share (string-append #$output "/share")) + (scummvm (search-input-file inputs "/bin/scummvm")) + (bin (string-append #$output "/bin")) + (executable (string-append bin "/devours"))) + (mkdir-p share) + (copy-file "devours.z5" (string-append share "/devours.z5")) + (mkdir-p bin) + (with-output-to-file executable + (lambda () + (format #t "#!~a~%" bash) + (format #t + "exec ~a --path=~a glk:zcode~%" + scummvm share))) + (chmod executable #o755)))) + (add-after 'install-executable 'install-desktop-file + (lambda _ + (let* ((apps (string-append #$output "/share/applications")) + (share (string-append #$output ""))) + (mkdir-p apps) + (make-desktop-entry-file + (string-append apps "/devours.desktop") + #:name "All Things Devours" + #:generic-name "All Things Devours" + #:exec (string-append #$output "/bin/devours") + #:categories '("AdventureGame" "Game" "RolePlaying") + #:keywords '("game" "adventure" "sci-fi") + #:comment '((#f "Sci-fi text adventure game"))))))))) + (inputs + (list bash scummvm)) + (native-inputs + (list inform informlib)) + (synopsis "All Things Devours") + (description + "All Things Devours is a short piece of sci-fi interactive fiction, +leaning strongly towards the text-adventure end of the spectrum. +Any move you make may put things into an unwinnable state. You are therefore +encouraged to save frequently, and also to realise that you will probably have +to start over several times to find the most satisfactory ending.") + (home-page "https://jxself.org/git/devours.git") + (license license:agpl3+)))) + (define-public schiffbruch ;; There haven't been any releases for several years, so I've taken the most ;; recent commit from the master branch that didn't fail to build (the last