From patchwork Fri Jan 3 00:32:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Maja_K=C4=85dzio=C5=82ka?= X-Patchwork-Id: 19537 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 ED20D179E5; Fri, 3 Jan 2020 00:33:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,RCVD_NUMERIC_HELO, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 91BF1179E3 for ; Fri, 3 Jan 2020 00:33:12 +0000 (GMT) Received: from localhost ([::1]:47328 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inAts-0004QT-45 for patchwork@mira.cbaines.net; Thu, 02 Jan 2020 19:33:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33518) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inAtj-0004Q7-TM for guix-patches@gnu.org; Thu, 02 Jan 2020 19:33:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inAti-0008D7-9G for guix-patches@gnu.org; Thu, 02 Jan 2020 19:33:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34243) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1inAti-0008Cr-5H for guix-patches@gnu.org; Thu, 02 Jan 2020 19:33:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1inAti-0006hU-1j for guix-patches@gnu.org; Thu, 02 Jan 2020 19:33:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38882] [PATCH] Add SameBoy Resent-From: Jakub =?utf-8?b?S8SFZHppb8WCa2E=?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 03 Jan 2020 00:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38882 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38882@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.157801154125704 (code B ref -1); Fri, 03 Jan 2020 00:33:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Jan 2020 00:32:21 +0000 Received: from localhost ([127.0.0.1]:40216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inAt3-0006gW-1Y for submit@debbugs.gnu.org; Thu, 02 Jan 2020 19:32:21 -0500 Received: from lists.gnu.org ([209.51.188.17]:40879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inAt1-0006gO-Au for submit@debbugs.gnu.org; Thu, 02 Jan 2020 19:32:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57142) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inAsw-00041Q-68 for guix-patches@gnu.org; Thu, 02 Jan 2020 19:32:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inAsu-0006dc-Hb for guix-patches@gnu.org; Thu, 02 Jan 2020 19:32:14 -0500 Received: from pat.zlotemysli.pl ([37.59.186.212]:49936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1inAsu-0006C1-48 for guix-patches@gnu.org; Thu, 02 Jan 2020 19:32:12 -0500 Received: (qmail 29404 invoked by uid 1009); 3 Jan 2020 01:32:03 +0100 Received: from 188.123.215.55 (kuba@kadziolka.net@188.123.215.55) by pat (envelope-from , uid 1002) with qmail-scanner-2.08st (clamdscan: 0.98.6/25681. spamassassin: 3.4.0. perlscan: 2.08st. Clear:RC:1(188.123.215.55):. Processed in 0.046271 secs); 03 Jan 2020 00:32:03 -0000 Received: from unknown (HELO zdrowyportier.kadziolka.net) (kuba@kadziolka.net@188.123.215.55) by pat.zlotemysli.pl with SMTP; 3 Jan 2020 01:32:03 +0100 Date: Fri, 3 Jan 2020 01:32:02 +0100 From: Jakub =?utf-8?b?S8SFZHppb8WCa2E=?= Message-ID: <20200103003202.wy6in2mc4sbtj4h2@zdrowyportier.kadziolka.net> MIME-Version: 1.0 Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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 Hello Guix, please find attached a patchset that adds SameBoy and RGBDS to the available packages. The latter is a dependency of the former, but is also quite useful on its own. Regards, Jakub Kądziołka From d2900a92b271c5e81093bd9704aa82dbb6b0f523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20K=C4=85dzio=C5=82ka?= Date: Fri, 3 Jan 2020 01:29:04 +0100 Subject: [PATCH 2/2] gnu: Add sameboy. * gnu/packages/emulators.scm (sameboy): New variable. --- gnu/packages/emulators.scm | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index 63c1332c2f..fbfb1cf712 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -457,6 +457,54 @@ and Game Boy Color games.") ;; BSD-3. (license (list license:mpl2.0 license:lgpl2.1+ license:bsd-3)))) +(define-public sameboy + (package + (name "sameboy") + (version "v0.12.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/LIJI32/SameBoy.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0m5rv2x8qck1kr43xq186pp4kaiay7gd1x775n9qrljcd7z4x6fs")))) + (build-system gnu-build-system) + (native-inputs + `(("rgbds" ,rgbds) + ("gcc" ,gcc-9) + ("pkg-config" ,pkg-config))) + (inputs + `(("sdl2" ,sdl2))) + (arguments + `(#:tests? #f ; There are no tests + #:make-flags `("CC=gcc" "CONF=release" + ,(string-append "DATA_DIR=" + (assoc-ref %outputs "out") + "/share/sameboy/")) + #:phases + (modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin")) + (data (string-append out "/share/sameboy/"))) + (with-directory-excursion "build/bin/SDL" + (install-file "sameboy" bin) + (delete-file "sameboy") + (copy-recursively "." data)))))))) + (home-page "https://sameboy.github.io/") + (synopsis "Extremely accurate Game Boy, Game Boy Color and Super Game Boy emulator") + (description "SameBoy is a user friendly Game Boy, Game Boy Color +and Super Game Boy emulator. SameBoy is extremely accurate and includes a wide +range of powerful debugging features, making it ideal for both casual players +and developers. In addition to accuracy and developer capabilities, SameBoy +has all the features one would expect from an emulator---from save states to +scaling filters.") + (license license:expat))) + (define-public mupen64plus-core (package (name "mupen64plus-core") -- 2.24.1