From patchwork Sun Nov 2 08:25:12 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 43442 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 19A4827BC4B; Sun, 2 Nov 2025 08:26:25 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,DMARC_PASS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS autolearn=ham autolearn_force=no version=4.0.1 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D3D5927BC4A for ; Sun, 2 Nov 2025 08:26:23 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vFTPh-00069a-PS; Sun, 02 Nov 2025 03:26:14 -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 1vFTPY-00068D-7D for guix-patches@gnu.org; Sun, 02 Nov 2025 03:26:05 -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 1vFTPX-0003Tf-VE for guix-patches@gnu.org; Sun, 02 Nov 2025 03:26:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:MIME-Version:Date:To:In-Reply-To:References:Subject; bh=Sj4dbaHghhxQIP7EglVFR2DolsCxYBEjvfzgYD4OsT8=; b=RUOfQ7eKswScIQ7u1unK8jrkJXxx8HsQ9CacfBBD9JDLq3Rx3H75cHALlnQ4a6n3qkSBFaPj5ZyzwiIoZX4WhqJhX6BVwAxQd83X6EvlyVWdxjLfhxpsqfduUwLCEeQiki/t5nF24Ip27NfsC1oQIQkU2Vd71PSZ2kjiQboYNKTAIJCFvNSmAvUlCnRQdr8Jrqn10mV6bF81Rhl54E4iteoz8QnKTOQu6hP/akQuuGXEUyKun5QDP/qg+Hwpee6toM4jTkLgpRDQAM7kSqor5EW3nHQIxvI6t1RbsudBGhzq/CSN0E5LhtTKPVh9fLJ/F6TBxcN0wRidIeQJAqqcsQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1vFTPW-0005P8-5b for guix-patches@gnu.org; Sun, 02 Nov 2025 03:26:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#79005] [PATCH v3] gnu: Add dialogc. References: In-Reply-To: Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 02 Nov 2025 08:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 79005 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 79005@debbugs.gnu.org Cc: Andreas Enge Received: via spool by 79005-submit@debbugs.gnu.org id=B79005.176207192320735 (code B ref 79005); Sun, 02 Nov 2025 08:26:02 +0000 Received: (at 79005) by debbugs.gnu.org; 2 Nov 2025 08:25:23 +0000 Received: from localhost ([127.0.0.1]:57658 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1vFTOt-0005ON-4i for submit@debbugs.gnu.org; Sun, 02 Nov 2025 03:25:23 -0500 Received: from layka.disroot.org ([178.21.23.139]:52044) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1vFTOp-0005O9-Ph for 79005@debbugs.gnu.org; Sun, 02 Nov 2025 03:25:22 -0500 Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 017A5261FB; Sun, 2 Nov 2025 09:25:17 +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]) (amavis, port 10024) with ESMTP id B0NMwFj6naex; Sun, 2 Nov 2025 09:25:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1762071916; bh=JEfk2yNtL4PrkXhBKc7JVCWIts1MDdDn2E/zdgiJZ/E=; h=Date:To:Subject:Cc:From; b=Sg7biSFLCmrxbUJ9opTM3x8f//G6amy2NPe1OjzYUIJzyIneCN3GGCYFk9LVHKOmG jx0qAX307yRTaqjqyHyQ65rPn/fQHsP8i++U6iTcWkaapsDVfTXfPX9PaSVs6WAXGM v987jfEnd0IuANRj1w0821uVrbAwNmN6aqdwKkMaevB3/C3y40RXiqYWTh2RmTAVDf i0cc3vUwYm9Ou8W54us4lO2Gz5SQLowIj54ofsmCbM4dw/PH0uwfuu5Z0ThtFxiNiR hSPQ52HHtTFFHUxbn+VSP8SgZacWCKT+TGBXR3N93shD/skdBYSaOXnBkwlN3/zm8+ UZdzoLN8sGYPA== Message-ID: <68a6ba4a-1e12-48de-8c8c-f344f4ab79c6@disroot.org> Date: Sun, 2 Nov 2025 16:25:12 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-GB 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 Hello Andreas, > Hello Adam, > > in the dialogc package, you can write "python" instead of "python-3", > since it has become the standard version now. Cool! I didn't know that before. > > The license is bsd-2, not bsd-3. > > I would use a phase instead of a snippet: This is not written down in > the documentation, but we tend to use snippets when we want to modify > the source itself (often, removing non-free parts); here the change is > merely to adapt to the Guix build, and there is no real need to modify > the source as distributed with "guix build dialogc -S". > Actually this will make the recipe easier: You could simply move the > substitution into the "with-directory-excursion" of the build phase. Right, I've revised the patch with all the changes. > Where do you take the base version "1a-01" from? Normally this should be > the latest released version; here I do not see any release, so maybe we > should use "0" instead? I took it from `dialogc --version`. While it hasn't been officially tagged yet, I thought it would be best to build from the most recent commit. There's a bit more context here, if you're interested: https://intfiction.org/t/dialog-version-naming/73515/3 The revised patch is attached. From ad3adbf76b1f7512399d7bebb8cb6353986427c8 Mon Sep 17 00:00:00 2001 Message-ID: From: AwesomeAdam54321 Date: Sun, 13 Jul 2025 16:30:50 +0800 Subject: [PATCH v3] gnu: Add dialogc. * gnu/packages/game-development.scm (dialogc): New variable. Change-Id: Id02c124814854785a73d8ff7e1739158a7d03faf --- gnu/packages/game-development.scm | 49 +++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index d3bae8c2fa..6cb42c49a8 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -95,6 +95,7 @@ (define-module (gnu packages game-development) #:use-module (gnu packages freedesktop) #:use-module (gnu packages fribidi) #:use-module (gnu packages dbm) + #:use-module (gnu packages games) #:use-module (gnu packages gawk) #:use-module (gnu packages gettext) #:use-module (gnu packages gl) @@ -121,6 +122,7 @@ (define-module (gnu packages game-development) #:use-module (gnu packages ncurses) #:use-module (gnu packages networking) #:use-module (gnu packages pcre) + #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages pretty-print) #:use-module (gnu packages pulseaudio) @@ -319,6 +321,53 @@ (define-public deutex DeuTex has functions such as merging wads, etc.") (license license:gpl2+))) +(define-public dialogc + (let ((commit "68476f9f3b1ca2db15615e508837ca721e0759ab") + (revision "0")) + (package + (name "dialogc") + (version (git-version "1a-01" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Dialog-IF/dialog") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1gm6fb86chq74fh2llmmgji6fwylk0xd53fmij6l9x348nvw1bkn")))) + (build-system gnu-build-system) + (native-inputs (list frotz-dumb-terminal perl python)) + (arguments + (list + #:test-target "test" + #:parallel-tests? #f + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'set-install-prefix + (lambda _ + (setenv "PREFIX" #$output))) + (replace 'build + (lambda _ + (with-directory-excursion "src" + (substitute* "Makefile" + (("cp dialogc" all) + (string-append "install -d ${PREFIX}/bin\n\t" all)) + (("/usr/local") "${PREFIX}")) + (invoke "make")))) + (replace 'install + (lambda _ + (let ((bin (string-append #$output "/bin"))) + (install-file "src/dialogc" bin) + (install-file "src/dgdebug" bin))))))) + (synopsis "Dialog interactive fiction compiler") + (description + "Dialog is a domain-specific language for creating works +of interactive fiction. It is heavily inspired by Inform 7 and Prolog.") + (home-page "https://github.com/Dialog-IF/dialog") + (license license:bsd-2)))) + (define-public go-codeberg-org-anaseto-gruid-sdl (package (name "go-codeberg-org-anaseto-gruid-sdl") base-commit: 28b5d5c9db66d48a663f95fb18bb1a53ab1f2b0b -- 2.51.2