From patchwork Tue Oct 17 18:19:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Evgeny Pisemsky X-Patchwork-Id: 54939 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 601E327BBEA; Tue, 17 Oct 2023 19:20:52 +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 92AA127BBE9 for ; Tue, 17 Oct 2023 19:20:51 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsogN-0005hH-Pq; Tue, 17 Oct 2023 14:20:44 -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 1qsogH-0005gq-2Y for guix-patches@gnu.org; Tue, 17 Oct 2023 14:20:37 -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 1qsogG-0000Qo-RD for guix-patches@gnu.org; Tue, 17 Oct 2023 14:20:36 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qsogg-0004W6-66 for guix-patches@gnu.org; Tue, 17 Oct 2023 14:21:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#66597] [PATCH] gnu: Add sdl2-gamecontrollerdb. Resent-From: Evgeny Pisemsky Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 17 Oct 2023 18:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66597 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 66597@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169756681717294 (code B ref -1); Tue, 17 Oct 2023 18:21:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Oct 2023 18:20:17 +0000 Received: from localhost ([127.0.0.1]:32780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsofx-0004Us-AT for submit@debbugs.gnu.org; Tue, 17 Oct 2023 14:20:17 -0400 Received: from lists.gnu.org ([2001:470:142::17]:47354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qsofu-0004Ud-Vj for submit@debbugs.gnu.org; Tue, 17 Oct 2023 14:20:15 -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 1qsofP-0005d2-2n for guix-patches@gnu.org; Tue, 17 Oct 2023 14:19:43 -0400 Received: from sofi-shared.hosting.energy ([2001:41d0:602:1f56::] helo=sofi.hosting.energy) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsofL-0008So-Ss for guix-patches@gnu.org; Tue, 17 Oct 2023 14:19:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=pisemsky.com; s=dkim; h=Content-Transfer-Encoding:Content-Type:MIME-Version :Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=3xdIyidhpwzQJ+Ct9ULrOU0VAlAvCf8T7aqmambufZs=; b=HbEEbw6cXRRSw/O0HzL42nOKsN hUT46JEKPu16w53hO+f7OWtjyDXTyFIyW5Z3B8gPyMKdQZE7KOAsWGuZ7Pno1LnYF9/jKUF8PHNL5 dqmHZ9eA9/Ofe1QPVk4TzzfM46g/BkYtrgB1fXOcvzEkjf6gHBKoPadefiCBZ2mag3Os=; Received: from [176.59.38.140] (helo=laptop) by sofi.hosting.energy with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1qsof9-00011D-5J for guix-patches@gnu.org; Tue, 17 Oct 2023 21:19:32 +0300 From: Evgeny Pisemsky Date: Tue, 17 Oct 2023 21:19:23 +0300 Message-ID: <87il751590.fsf@pisemsky.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Disposition: inline; filename=0001-gnu-Add-sdl2-gamecontrollerdb.patch X-Scanned-By: ClamAV 0.103.0; Tue, 17 Oct 2023 21:19:32 +0300 Received-SPF: pass client-ip=2001:41d0:602:1f56::; envelope-from=evgeny@pisemsky.com; helo=sofi.hosting.energy 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, SPF_PASS=-0.001, T_SPF_HELO_PERMERROR=0.01 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 40688a0f63e85f12a86fa2ccf28fc50150f3846d Mon Sep 17 00:00:00 2001 From: Evgeny Pisemsky Date: Tue, 17 Oct 2023 19:10:10 +0300 Subject: [PATCH] gnu: Add sdl2-gamecontrollerdb. * gnu/packages/game-development.scm (sdl2-gamecontrollerdb): New variable. --- gnu/packages/game-development.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index eb1d74d1e1..3400ca03dc 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -29,6 +29,7 @@ ;;; Copyright © 2022 Jai Vetrivelan ;;; Copyright © 2022 dan ;;; Copyright © 2023 John Kehayias +;;; Copyright © 2023 Evgeny Pisemsky ;;; ;;; This file is part of GNU Guix. ;;; @@ -56,6 +57,7 @@ (define-module (gnu packages game-development) #:use-module (guix svn-download) #:use-module (guix utils) #:use-module (guix build-system cmake) + #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix build-system python) #:use-module (guix build-system scons) @@ -3283,3 +3285,29 @@ (define-public bbcsdl allowing you to write utilities and games, use sound and graphics, perform calculations and create complete applications.") (license license:zlib))) + +(define-public sdl2-gamecontrollerdb + (let ((commit "6f3c4edcb5a2e2ed090ca8af40d2c0f00dcd77f6") + (revision "0")) + (package + (name "sdl2-gamecontrollerdb") + (version (git-version "0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gabomdq/SDL_GameControllerDB") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1gciqc8qm2qgcjj5s9jpclznznsp6awl4ldrnj7g01chkcx0l6a3")))) + (build-system copy-build-system) + (arguments + '(#:install-plan '(("gamecontrollerdb.txt" + "share/sdl2-gamecontrollerdb/")))) + (home-page "https://github.com/gabomdq/SDL_GameControllerDB") + (synopsis "SDL2 game controller database") + (description + "A community sourced database of game controller mappings to be used +with SDL2 Game Controller functionality.") + (license license:zlib)))) base-commit: 018567adb7b2d31d0bd457983b755ec3063d08c6 -- 2.41.0