From patchwork Sat Jul 22 08:24:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 51922 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 9A37B27BBEA; Sat, 22 Jul 2023 09:26:09 +0100 (BST) 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 B2B8B27BBE2 for ; Sat, 22 Jul 2023 09:26:08 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qN7wC-0000cw-UG; Sat, 22 Jul 2023 04:26:04 -0400 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 1qN7wB-0000ce-AK for guix-patches@gnu.org; Sat, 22 Jul 2023 04:26:03 -0400 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 1qN7wB-0004VA-2A for guix-patches@gnu.org; Sat, 22 Jul 2023 04:26:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qN7wA-0004Qo-UW for guix-patches@gnu.org; Sat, 22 Jul 2023 04:26:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64787] [PATCH 1/2] gnu: Add scummc. References: In-Reply-To: Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 22 Jul 2023 08:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64787 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64787@debbugs.gnu.org Cc: Liliana Marie Prikler , iyzsong@envs.net Received: via spool by 64787-submit@debbugs.gnu.org id=B64787.169001430916914 (code B ref 64787); Sat, 22 Jul 2023 08:26:02 +0000 Received: (at 64787) by debbugs.gnu.org; 22 Jul 2023 08:25:09 +0000 Received: from localhost ([127.0.0.1]:35433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qN7vI-0004Oj-Vq for submit@debbugs.gnu.org; Sat, 22 Jul 2023 04:25:09 -0400 Received: from knopi.disroot.org ([178.21.23.139]:59100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qN7vG-0004OP-JT for 64787@debbugs.gnu.org; Sat, 22 Jul 2023 04:25:07 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 4BE2744F21; Sat, 22 Jul 2023 10:25:02 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4lPC6MCYb1kv; Sat, 22 Jul 2023 10:25:00 +0200 (CEST) Message-ID: <82cbd1ec-be9b-bd78-79a4-0c375d0f5c57@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1690014300; bh=DONmIagR3zCJKG6gKJqw60YjltqmIwg4B0sEgzWYxNE=; h=Date:To:Cc:From:Subject; b=ZOxvvX1fyk/Rg7lGKAuheWrtlBsnb6JdsljKRROSRX+KolLXv901ywtagbDo5uHCd ZhfKGuNQjOp/rMK/6Fo/1Q4+oidHfuu6EWzVs0wL2Bkobb55MzcwP5hOEbFBis/E6k iWKFjydM96OHeERxjVSKKhxa5ireE7GCFjiRxVckwj7bNzM8b+zEOapK67CbjVKPg+ UJq4OWYoEwbj2ES779QfAadEX7fLPszu2MDITQ+d35Z3FsPqwJizDx066RFujHB6j8 /9LI1GjpU37qVZE0jGrv8wXOekeF0RmLwO4HmiYwTaaZ4cn9vNaxpvmiztAK3bzjjv PT263cI3szwbQ== Date: Sat, 22 Jul 2023 16:24:57 +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 7b2abb3e398601b28666511b457c23f2e2b71a79 Mon Sep 17 00:00:00 2001 Message-ID: <7b2abb3e398601b28666511b457c23f2e2b71a79.1690012542.git.adam.faiz@disroot.org> In-Reply-To: References: From: AwesomeAdam54321 Date: Sat, 22 Jul 2023 15:34:55 +0800 Subject: [PATCH 1/2] gnu: Add scummc. * gnu/packages/game-development.scm (scummc): New variable. --- gnu/packages/game-development.scm | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index b0d9a88dc2..a2600ff2fe 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -66,6 +66,7 @@ (define-module (gnu packages game-development) #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages bash) + #:use-module (gnu packages bison) #:use-module (gnu packages boost) #:use-module (gnu packages build-tools) #:use-module (gnu packages compression) @@ -745,6 +746,49 @@ (define-public tsukundere experimental.") (license license:lgpl3+))) +(define-public scummc + (package + (name "scummc") + (version "0.2.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/AlbanBedel/scummc") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1yyq05kfmvgx5aa68kg1l5a4lpsky7hzxxcdvv2xbgf0jljdcl3k")))) + (build-system gnu-build-system) + (native-inputs + (list bison doxygen libxslt pkg-config)) + (inputs + (list freetype gtk+-2 sdl)) + (arguments + (list #:test-target "test" + #:tests? #f ; The only tests verify that game checksums match + #:make-flags + #~(list "SHOW_WARNINGS=no") + #:phases + #~(modify-phases %standard-phases + (replace 'configure ; ScummC uses a non-standard configure + (lambda _ + (invoke "./configure"))) + (add-after 'build 'build-openquest + (lambda _ + (with-directory-excursion "examples/openquest" + (invoke "make" "tentacle")))) + (replace 'install ; install target is referred to as distrib + (lambda _ + (invoke "make" "distrib" + (string-append "DISTRIB=" #$output))))))) + (synopsis "Scumm Compiler") + (description + "ScummC is a set of tools allowing to create SCUMM games from scratch. +It is capable of creating games for SCUMM version 6 and partially version 7.") + (home-page "https://github.com/AlbanBedel/scummc") + (license license:gpl2+))) + (define-public sfml (package (name "sfml")