From patchwork Sun Aug 27 05:27:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 53242 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 7B32327BBEA; Sun, 27 Aug 2023 06:28:18 +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 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 73BD827BBE2 for ; Sun, 27 Aug 2023 06:28:16 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qa8Jb-0005Zw-43; Sun, 27 Aug 2023 01:27:59 -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 1qa8JZ-0005Zo-6y for guix-patches@gnu.org; Sun, 27 Aug 2023 01:27:57 -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 1qa8JY-0002vN-TA for guix-patches@gnu.org; Sun, 27 Aug 2023 01:27:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qa8Je-0004Hd-5c for guix-patches@gnu.org; Sun, 27 Aug 2023 01:28:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64787] [PATCH v3 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: Sun, 27 Aug 2023 05:28: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.169311404016387 (code B ref 64787); Sun, 27 Aug 2023 05:28:02 +0000 Received: (at 64787) by debbugs.gnu.org; 27 Aug 2023 05:27:20 +0000 Received: from localhost ([127.0.0.1]:43839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qa8Ix-0004GE-FO for submit@debbugs.gnu.org; Sun, 27 Aug 2023 01:27:19 -0400 Received: from layka.disroot.org ([178.21.23.139]:39816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qa8It-0004Fw-At for 64787@debbugs.gnu.org; Sun, 27 Aug 2023 01:27:17 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 419E84110E; Sun, 27 Aug 2023 07:27:08 +0200 (CEST) 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 lr-RzVrznpxq; Sun, 27 Aug 2023 07:27:07 +0200 (CEST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1693114027; bh=njhPP9MGOpPr6p9VKi5aSBl6JG6FW7THnekYtTRhRBo=; h=Date:To:Cc:From:Subject; b=QAfIKLHn1+VbcIwwUbK5P7nXPJISwqpuX/jhQTtXTzwiZwjoCVkdskXBBp+NsuvPx OFSNZIji2Uxv1EfCy1nAOhgAuSLz8hnatxZ4XTCTL5pLZf+b6zVru9AOtrqOS/EPTw hASclKCAhkCSsbJMX9DweI1HDOzueVJfy1wGZ1wDEN7TwI1gM4hZhwt47zSxvZlZMc kxkAUJRAjMDS3vWIFhqtP73KmEZ9LWzwdvdFEgSFuA949H1VT6LV6DW4NS7fS187ad mYUnusFk0Wzt/qkJtbuB9s+x39zc6ywn63J2q2d/1OSb2HTqNMXj+51X+5+L7lXfze fYFW+OTuiDhqQ== Date: Sun, 27 Aug 2023 13:27:03 +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 7ab2531a5434121f3fb7fdc25c626693f4d96cb6 Mon Sep 17 00:00:00 2001 Message-ID: <7ab2531a5434121f3fb7fdc25c626693f4d96cb6.1693113837.git.adam.faiz@disroot.org> From: AwesomeAdam54321 Date: Sat, 22 Jul 2023 15:34:55 +0800 Subject: [PATCH v3 1/2] gnu: Add scummc. * gnu/packages/game-development.scm (scummc): New variable. --- gnu/packages/game-development.scm | 55 +++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) base-commit: d17eea747277643811134f9a33b534e58160688f diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 5e470f0d25..3f53b53f3a 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,60 @@ (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")) + (modules '((guix build utils))) + (snippet + #~(begin + (substitute* "configure" + (("\\|alpha" all) + (string-append all "|arm|aarch64|powerpc64le"))) + (substitute* "examples/example.mak" + (("scost.*\n$") "scost\n") + (("bmp \\$\\(.*\n$") "bmp\n") + (("/%.scc.*\n$") "/%.scc\n") + (("voc \\$\\(.*\n$") "voc\n")) + (substitute* "Makefile.target" + (("distrib-data:.*\n") "distrib-data:\n") + (("cp.*/bin" all) + (string-append all " || true"))))))) + (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* (#:key configure-flags #:allow-other-keys) + (apply invoke "./configure" configure-flags))) + (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")