From patchwork Thu Nov 18 14:58:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ekaitz Zarraga X-Patchwork-Id: 34619 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 3F65727BBE3; Thu, 18 Nov 2021 14:59:12 +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 B565627BBE1 for ; Thu, 18 Nov 2021 14:59:11 +0000 (GMT) Received: from localhost ([::1]:55894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnisY-0007Qo-RS for patchwork@mira.cbaines.net; Thu, 18 Nov 2021 09:59:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnisQ-0007MD-8L for guix-patches@gnu.org; Thu, 18 Nov 2021 09:59:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:53569) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnisP-0008K6-Vt for guix-patches@gnu.org; Thu, 18 Nov 2021 09:59:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mnisP-00031m-US for guix-patches@gnu.org; Thu, 18 Nov 2021 09:59:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#51951] [PATCH] gnu: Add libresprite. Resent-From: Ekaitz Zarraga Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 18 Nov 2021 14:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51951 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51951@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.163724752711584 (code B ref -1); Thu, 18 Nov 2021 14:59:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Nov 2021 14:58:47 +0000 Received: from localhost ([127.0.0.1]:36878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnis5-00030Z-KN for submit@debbugs.gnu.org; Thu, 18 Nov 2021 09:58:47 -0500 Received: from lists.gnu.org ([209.51.188.17]:56220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnis3-00030P-Bc for submit@debbugs.gnu.org; Thu, 18 Nov 2021 09:58:39 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnis3-0006XQ-3W for guix-patches@gnu.org; Thu, 18 Nov 2021 09:58:39 -0500 Received: from mail-0301.mail-europe.com ([188.165.51.139]:59272) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnirz-0008CP-1T for guix-patches@gnu.org; Thu, 18 Nov 2021 09:58:38 -0500 Date: Thu, 18 Nov 2021 14:58:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail; t=1637247502; bh=v4x9Se97yt5zXyXAlGv3D0Q4ymd/QZbcJdL6rJux3WU=; h=Date:To:From:Reply-To:Subject:From; b=Vq3sc3smR3M2YQGIg8cOmalU8xGmcF/t56OYXawRXeCxKlXhr6mFdi0iJwzbYH3Vw xZNG3tQ28HAIHpde4OrDy06IK9FB9fm4mJFhzD9Z6T+FBx9lL20xzBBF3741CLzeEx 0WMMSLznTWPuDuwPt7XysJ8F7rk2VI3MrdnW8FmJezm0a/E1wwKwVHQyJEDMM/qv20 F+7Mpf6IomSHzAsoUvD1iB56+PVQv3d6iS2LWBWTpF1oESXBFRV8X0EcAeLXqBuwKN 1CUDjSPEY6cnD8204Ah7CQTA+AVCxOSIMdtupBKKZnt4iFrgIDCj+T0TDyxMKJ9fj/ Pr87s/JtSKoTA== From: Ekaitz Zarraga Message-ID: <0YW5e3TveS73aXIyD0YkeVdne1S88mV6wqBbEwkyn_cvXnzjyizVgeiAVCRpw8W9_7Gj3vignMYpLg1z0jFy0jF7kqW_HBZX0aOMeT6ah0Q=@elenq.tech> MIME-Version: 1.0 Received-SPF: pass client-ip=188.165.51.139; envelope-from=ekaitz@elenq.tech; helo=mail-0301.mail-europe.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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 From ebf5421f72e91d3b215bb4eb4f4b642d7a4ffa98 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..1f6dcdc0e6 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, Aseprite 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")