From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: "Noé Lopez" <noe@xn--no-cja.eu>
Cc: 宋文武 <iyzsong@envs.net>,
"Liliana Marie Prikler" <liliana.prikler@gmail.com>,
"Adam Faiz" <adam.faiz@disroot.org>,
74485-done@debbugs.gnu.org
Subject: bug#74485: [PATCH 1/1] gnu: emulators: Add libretro-beetle-gba.
Date: Thu, 19 Dec 2024 15:40:29 +0900 [thread overview]
Message-ID: <87ldwckwf6.fsf@gmail.com> (raw)
In-Reply-To: <c898c2e52364b474ba7ff4596a5e36a4e5ec6c07.1732309972.git.noelopez@free.fr> ("Noé Lopez"'s message of "Fri, 22 Nov 2024 22:19:13 +0100")
Hi Noé,
Noé Lopez <noe@noé.eu> writes:
> From: Noé Lopez <noelopez@free.fr>
>
> * gnu/packages/emulators.scm (libretro-beetle-gba): New variable.
Cool!
> Change-Id: I3f58972ae9065e7e59b2d9fd5b31d528f7690da2
> ---
> gnu/packages/emulators.scm | 37 +++++++++++++++++++++++++++++++++++++
> 1 file changed, 37 insertions(+)
>
> diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm
> index 948e588c4c..4d757048a4 100644
> --- a/gnu/packages/emulators.scm
> +++ b/gnu/packages/emulators.scm
> @@ -743,6 +743,43 @@ (define-public mednafen
> ;; Main license is GPL2+. Some parts are BSD-3.
> (license (list license:gpl2+ license:bsd-3))))
>
> +(define-public libretro-beetle-gba
> + ;; There are no releases. Use the latest commit.
> + (let ((commit "6cee80685f735ea6c2373db2622a1f1ee9f39d39")
> + (revision "0"))
> + (package
> + (name "libretro-beetle-gba")
> + ;; Use Mednafen core version as base. Defined in libretro.cpp:73.
> + (version (git-version "0.9.36" revision commit))
> + (source
> + (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://github.com/libretro/beetle-gba-libretro")
> + (commit commit)))
> + (file-name (git-file-name name version))
> + (sha256
> + (base32 "14fm2g3hrsvvd57d6m9apzc30ypa4m0m5hk2viq422fm2l9y0xbb"))))
> + (build-system gnu-build-system)
> + (arguments
> + (list
> + #:make-flags #~(list "CC=gcc"
You should prefer to use (string-append "CC=" #$(cc-for-target)), which
gives the right gcc command name when cross-compiling.
> + (string-append "GIT_VERSION="
> + #$commit)
> + (string-append "DESTDIR="
> + #$output) "prefix=/")
> + ;; No tests.
> + #:tests? #f
> + #:phases #~(modify-phases %standard-phases
> + (delete 'configure))))
> + (home-page "https://github.com/libretro/beetle-gba-libretro")
> + (synopsis "Standalone port of Mednafen GBA to libretro")
> + (description
> + "A standalone port of Mednafen’s GameBoy Advance emulator called
> +Beetle GBA to libretro. Beetle GBA is based on VBA-M, itself a fork of Visual Boy
> +Advance. This is an old fork, and is not recommended over newer alternatives.")
Is the last sentence about VBA-M, or Visual Boy Advance? I'm guessing
the later, but it could confuse so I'd drop it.
I've done the two above modifications myself:
--8<---------------cut here---------------start------------->8---
modified gnu/packages/emulators.scm
@@ -762,22 +762,18 @@ (define-public libretro-beetle-gba
(base32 "14fm2g3hrsvvd57d6m9apzc30ypa4m0m5hk2viq422fm2l9y0xbb"))))
(build-system gnu-build-system)
(arguments
- (list
- #:make-flags #~(list "CC=gcc"
- (string-append "GIT_VERSION="
- #$commit)
- (string-append "DESTDIR="
- #$output) "prefix=/")
- ;; No tests.
- #:tests? #f
- #:phases #~(modify-phases %standard-phases
- (delete 'configure))))
+ (list #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
+ (string-append "GIT_VERSION=" #$commit)
+ (string-append "prefix=" #$output))
+ #:tests? #f ;no tests
+ #:phases #~(modify-phases %standard-phases
+ (delete 'configure))))
(home-page "https://github.com/libretro/beetle-gba-libretro")
(synopsis "Standalone port of Mednafen GBA to libretro")
(description
- "A standalone port of Mednafen’s GameBoy Advance emulator called
-Beetle GBA to libretro. Beetle GBA is based on VBA-M, itself a fork of Visual Boy
-Advance. This is an old fork, and is not recommended over newer alternatives.")
+ "A standalone port of Mednafen’s GameBoy Advance emulator called Beetle
+GBA to libretro. Beetle GBA is based on VBA-M, itself a fork of Visual Boy
+Advance.")
(license license:gpl2+))))
(define-public mgba
--8<---------------cut here---------------end--------------->8---
I've also ordered this package before libretro-bsnes-jg (it's nice to
keep packages sorted in alphabetic order, as much as possible).
Pushed as commit f73588e3b0.
--
Thanks,
Maxim
prev parent reply other threads:[~2024-12-19 6:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-22 21:15 [bug#74485] [PATCH 0/1] gnu: emulators: Add libretro-beetle-gba Noé Lopez via Guix-patches via
2024-11-22 21:19 ` [bug#74485] [PATCH 1/1] " Noé Lopez via Guix-patches via
2024-12-19 6:40 ` Maxim Cournoyer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ldwckwf6.fsf@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=74485-done@debbugs.gnu.org \
--cc=adam.faiz@disroot.org \
--cc=iyzsong@envs.net \
--cc=liliana.prikler@gmail.com \
--cc=noe@xn--no-cja.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).