From patchwork Thu Nov 18 15:24:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ekaitz Zarraga X-Patchwork-Id: 34620 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 6E56D27BBE3; Thu, 18 Nov 2021 15:25:46 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 13CA127BBE1 for ; Thu, 18 Nov 2021 15:25:46 +0000 (GMT) Received: from localhost ([::1]:59534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnjIH-0004tw-A0 for patchwork@mira.cbaines.net; Thu, 18 Nov 2021 10:25:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34756) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnjHg-0004ST-Qg for guix-patches@gnu.org; Thu, 18 Nov 2021 10:25:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53598) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnjHa-0004x3-DH for guix-patches@gnu.org; Thu, 18 Nov 2021 10:25:08 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mnjHa-00067U-AD for guix-patches@gnu.org; Thu, 18 Nov 2021 10:25:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51951] [PATCH] gnu: Add libresprite. References: <0YW5e3TveS73aXIyD0YkeVdne1S88mV6wqBbEwkyn_cvXnzjyizVgeiAVCRpw8W9_7Gj3vignMYpLg1z0jFy0jF7kqW_HBZX0aOMeT6ah0Q=@elenq.tech> In-Reply-To: <0YW5e3TveS73aXIyD0YkeVdne1S88mV6wqBbEwkyn_cvXnzjyizVgeiAVCRpw8W9_7Gj3vignMYpLg1z0jFy0jF7kqW_HBZX0aOMeT6ah0Q=@elenq.tech> Resent-From: Ekaitz Zarraga Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 18 Nov 2021 15:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51951 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: "51951@debbugs.gnu.org" <51951@debbugs.gnu.org> Received: via spool by 51951-submit@debbugs.gnu.org id=B51951.163724905923443 (code B ref 51951); Thu, 18 Nov 2021 15:25:02 +0000 Received: (at 51951) by debbugs.gnu.org; 18 Nov 2021 15:24:19 +0000 Received: from localhost ([127.0.0.1]:36911 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnjGo-00065v-25 for submit@debbugs.gnu.org; Thu, 18 Nov 2021 10:24:19 -0500 Received: from mail-40136.proton.ch ([185.70.40.136]:19002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnjGk-00065Z-9w for 51951@debbugs.gnu.org; Thu, 18 Nov 2021 10:24:13 -0500 Date: Thu, 18 Nov 2021 15:24:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail; t=1637249042; bh=Hg7BPDpQY/WBsr6Zb0PNcNQb9ttbVpnb8AhFNMaB0z8=; h=Date:To:From:Reply-To:Subject:From; b=s2ZRhCLi8lu7PM4F5H9/RedB2SdRYSiw7la0rqKhXUqmghkAtJ2kXZdCHG386W8go YvGehghvlz2giGCHuIWGcgBVWysODYIfV52CJJ2yWJLzyjVh1bVHtOYiexofedZmEu nbwPX5tNZNTPZrvcAEcFbiqxdF43Ums7UkkC+JZ4aC3Htp4Qh07AZiwYQTczwgFMJm YEYk7gft617MXAWsa31jALU7isuNBsqsq/IxOEhLq2V8OZcgZzsvt5QMOWt2aG/zqh YkPrjd3+hurjgTJTscSl1jKPsExQSFftNvUgkeyCCZCrAstcZ/6ZDG/avW/KOsL/b+ W9xwedPv3af6g== From: Ekaitz Zarraga Message-ID: MIME-Version: 1.0 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: Ekaitz Zarraga Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Corrected the description. It had a reference to Aseprite. Sorry for the noise. From 094c876b6d11464916ad021ad6c777f245e3c8df Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Thu, 18 Nov 2021 15:56:38 +0100 Subject: [PATCH] gnu: Add libresprite. * gnu/packages/game-development.scm (libresprite): New variable. --- gnu/packages/game-development.scm | 54 +++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) -- 2.34.0 diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 51ec4a5fc2..f822b496be 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -23,6 +23,7 @@ ;;; Copyright © 2021 Alexandru-Sergiu Marton ;;; Copyright © 2021 Dmitry Polyakov ;;; Copyright © 2020-2021 James Smith +;;; Copyright © 2021 Ekaitz Zarraga ;;; ;;; This file is part of GNU Guix. ;;; @@ -1016,6 +1017,59 @@ (define-public aseprite (home-page "https://www.aseprite.org/") (license license:gpl2+))) +(define-public libresprite + (package + (name "libresprite") + (version "1.0") + ;; TODO: Unbundle third party software. + ;; - duktape is bundled inside the project but it's hard to unbundle: + ;; there are many differences from a version to the next and it is not + ;; really designed to work as a shared lib. + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/LibreSprite/LibreSprite") + (commit (string-append "v" version)) + (recursive? #t))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0djbjjh21ahlxzh0b0jp4mpfycam8h9157i4wbxkd618fraadhbp")))) + (build-system cmake-build-system) + (arguments + '(#:configure-flags + (list "-DWITH_WEBP_SUPPORT=1") + ;; Tests are unmaintained + #:tests? #f)) + (native-inputs + `(("gcc@10" ,gcc-10) ; Requires 8.5 or higher + ("pkg-config" ,pkg-config))) + (inputs + `(("curl" ,curl) + ("freetype" ,freetype) + ("giflib" ,giflib) + ("googletest" ,googletest) + ("libjpeg" ,libjpeg-turbo) + ("libpng" ,libpng) + ("libwebp" ,libwebp) + ("libx11" ,libx11) + ("libxext" ,libxext) + ("libxxf86dga" ,libxxf86dga) + ("libxxf86vm" ,libxxf86vm) + ("lua" ,lua) ; Optional + ("pixman" ,pixman) + ("sdl2" ,sdl2) + ("sdl2-image" ,sdl2-image) + ("tinyxml" ,tinyxml) + ("zlib" ,zlib))) + (synopsis "Animated sprite editor and pixel art tool") + (description "LibreSprite is a tool for creating 2D pixel art for video +games. In addition to basic pixel editing features, LibreSprite can assist in +the creation of animations, tiled graphics, texture atlases, and more. +LibreSprite is a fork of the latest GPLv2 commit of Aseprite.") + (home-page "https://libresprite.github.io/") + (license license:gpl2+))) + (define-public qqwing (package (name "qqwing")