From patchwork Sat Sep 26 10:17:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Gabriel Arazas X-Patchwork-Id: 24311 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 A5B5727BBE9; Sat, 26 Sep 2020 11:21:10 +0100 (BST) 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_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,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 27A6227BBE8 for ; Sat, 26 Sep 2020 11:21:10 +0100 (BST) Received: from localhost ([::1]:56874 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kM7KH-00033Y-CF for patchwork@mira.cbaines.net; Sat, 26 Sep 2020 06:21:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kM7KA-00030x-0F for guix-patches@gnu.org; Sat, 26 Sep 2020 06:21:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34334) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kM7K9-0007I5-Mz for guix-patches@gnu.org; Sat, 26 Sep 2020 06:21:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kM7K9-0005Qm-Ju for guix-patches@gnu.org; Sat, 26 Sep 2020 06:21:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43630] [PATCH] gnu: Add tic-80. Resent-From: Gabriel Arazas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 26 Sep 2020 10:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43630 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43630@debbugs.gnu.org Cc: Gabriel Arazas X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160111560820795 (code B ref -1); Sat, 26 Sep 2020 10:21:01 +0000 Received: (at submit) by debbugs.gnu.org; 26 Sep 2020 10:20:08 +0000 Received: from localhost ([127.0.0.1]:45880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kM7JE-0005PG-So for submit@debbugs.gnu.org; Sat, 26 Sep 2020 06:20:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:51150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kM7JA-0005OK-8D for submit@debbugs.gnu.org; Sat, 26 Sep 2020 06:20:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kM7JA-0002ki-2t for guix-patches@gnu.org; Sat, 26 Sep 2020 06:20:00 -0400 Received: from mail-pj1-x1041.google.com ([2607:f8b0:4864:20::1041]:56008) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kM7J8-00072j-8c for guix-patches@gnu.org; Sat, 26 Sep 2020 06:19:59 -0400 Received: by mail-pj1-x1041.google.com with SMTP id q4so790583pjh.5 for ; Sat, 26 Sep 2020 03:19:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kMv3GPWOXMeKMieI0XX4KcOnjMGWRfQqIbgkulT9JWo=; b=YBedtL7s6tOanKy7gixYUJc7ig/0g/EvF2nC4026TbsWhaC9UiWO0YJBHc0dmTknWx TomkxnNxMLS5ULO9zmVcybzVh3UVnmzhoSFy4XSLqqA51cCR2b4f2mepFsydf85n/zbV mYEsAoJWWMkLnmT+pbvCgCUaZErjWqyPSb9n/PDX1ZFJvM1mciQTazijZLcT6chcNaan 3RstEYj2BJYzvSVQaItwbkC8/kZjTmwwmrDdVxc8YP3UPP/xxLRc0g448Gjl3thM+Nr6 +Zetbjm4Fuxcw32mW4UvCUCbEcKWLaon09eTYFShTyLtg92hHgmZSWpnmN6IpxCLj6+L gNxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kMv3GPWOXMeKMieI0XX4KcOnjMGWRfQqIbgkulT9JWo=; b=N8mLkuHSmhb9VtU7VWJUAqgYEQcdVSSaFHJYuEv4HBratW3Q2Xt3DvXx6wtDV3QRFL jIkEpWxF9NeuP8bAMsR6CeZrv4TCJGulleA1E4BA4vWgirL9E3LA7beBPI4FydGVb+WT aiFNmEwIXHkBlbfwCcrKyXuiEHaCxpcCJ+/IJO/9GMeb2INBGLuq+ufqT+Z/FeaR14/V wTeT5RlHJfw7bbR/G6ozFpsT/VkElp+t/ugfwHLlDrnxOy9ANb19ehlId+aPR+OEnD6+ 4jkqwMOw7CfQyzmNR9Z6jbJrV0X6Noz0JQg2HtlBs4rz6UqZdix2je39H3nbDyjKtGh9 wYTw== X-Gm-Message-State: AOAM532iTTy7FTaKgLuzQjYhSZbcNYFAwiUd88VE3G9lbb6hYgnJFds+ GhHjVQclR4uWF6UXtP675Xp+RVvsvDcHNg== X-Google-Smtp-Source: ABdhPJxKEOM/xKDtugMUDN1vhPJ3UiN1F5JWVQZg3MDQwTQ25pVKq9zvQGoiy7LFBLxkfYoinICS/w== X-Received: by 2002:a17:90a:d152:: with SMTP id t18mr1480867pjw.27.1601115594355; Sat, 26 Sep 2020 03:19:54 -0700 (PDT) Received: from localhost.localdomain ([112.198.163.52]) by smtp.gmail.com with ESMTPSA id 1sm5577359pfx.126.2020.09.26.03.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Sep 2020 03:19:53 -0700 (PDT) From: Gabriel Arazas Date: Sat, 26 Sep 2020 18:17:38 +0800 Message-Id: <20200926101738.18925-2-foo.dogsquared@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200926101738.18925-1-foo.dogsquared@gmail.com> References: <20200926101738.18925-1-foo.dogsquared@gmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1041; envelope-from=foo.dogsquared@gmail.com; helo=mail-pj1-x1041.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/game-development.scm (tic-80): New variable. --- gnu/packages/game-development.scm | 57 +++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 3252eb322e..3d0b2e7413 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -20,6 +20,7 @@ ;;; Copyright © 2020 Nicolas Goaziou ;;; Copyright © 2020 Timotej Lazar ;;; Copyright © 2020 Giacomo Leidi +;;; Copyright © 2020 Gabriel Arazas ;;; ;;; This file is part of GNU Guix. ;;; @@ -2477,3 +2478,59 @@ fully dynamic omnidirectional shadows, global illumination, HDR lighting, deferred shading, morphological / temporal / multisample anti-aliasing, and much more.") (license license:zlib)))) + +(define-public tic-80 + ;; TODO: Package TIC-80 with an additional output as a WASM module. + (package + (name "tic-80") + (version "0.80.1344") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nesbox/TIC-80") + (commit (string-append "v" version)) + (recursive? #t))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0b1qm1m1wwss4bh3q8gx26kk4g8j4n9mzdd4lbyj7k37fx5v09rp")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f ; No tests. + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-source + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (share/applications (string-append out "/share/applications")) + (share/icons (string-append out "/share/icons"))) + (substitute* "CMakeLists.txt" + ;; Replace the destinations to be inline with Guix. + (("/usr/share/applications") bin) + (("/usr/share/icons") share/icons) + (("\\$\\{TIC80_DESKTOP_DIR}") share/applications)) + + ;; The files inside of the folder should have write permissions + ;; but it will be overwritten by the build process anyways so it + ;; is faster to delete them instead. + (delete-file-recursively "build/assets") + (mkdir-p "build/assets")) + #t))))) + (inputs + `(("alsa-lib" ,alsa-lib) + ("curl" ,curl) + ("freeglut" ,freeglut) + ("glu" ,glu) + ("gtk+" ,gtk+) + ("mesa" ,mesa))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (home-page "https://tic80.com") + (synopsis "Fantasy computer with built-in tools for game development") + (description + "A fantasy computer featuring built-in tools such as a sprite editor, +music tracker, and a text editor. This package builds the free version of the +software which you can override the package and build the PRO version +yourself.") + (license license:expat)))