GNU bug report logs - #75106
[PATCH 0/2] Add ringracers.

Previous Next

Package: guix-patches;

Reported by: Andrew Wong <wongandj <at> icloud.com>

Date: Thu, 26 Dec 2024 01:31:02 UTC

Severity: normal

Tags: patch

Done: Andrew Wong <brosasaki <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 75106 in the body.
You can then email your comments to 75106 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#75106; Package guix-patches. (Thu, 26 Dec 2024 01:31:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andrew Wong <wongandj <at> icloud.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 26 Dec 2024 01:31:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andrew Wong <wongandj <at> icloud.com>
To: guix-patches <at> gnu.org
Cc: Andrew Wong <wongandj <at> icloud.com>
Subject: [PATCH 0/2] Add ringracers.
Date: Wed, 25 Dec 2024 20:24:06 -0500
This patch series adds the freely-licensed kart racer fangame "Dr. Robotnik's
Ring Racers" and a new dependency libyuv. Is it possible for me to include the
"non-functional" nonfreely-licensed game assets with the install? If so, how
can I fit it into the build process, seeing as it's a seperate download from
the engine itself? Also, how can I unbundle some of the libraries included
with the source?

Andrew Wong (2):
  gnu: Add libyuv.
  gnu: Add ringracers.

 gnu/packages/games.scm | 56 ++++++++++++++++++++++++++++++++++++++++++
 gnu/packages/image.scm | 27 ++++++++++++++++++++
 2 files changed, 83 insertions(+)

-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#75106; Package guix-patches. (Thu, 26 Dec 2024 01:33:02 GMT) Full text and rfc822 format available.

Message #8 received at 75106 <at> debbugs.gnu.org (full text, mbox):

From: Andrew Wong <wongandj <at> icloud.com>
To: 75106 <at> debbugs.gnu.org
Cc: Andrew Wong <wongandj <at> icloud.com>
Subject: [PATCH 1/2] gnu: Add libyuv.
Date: Wed, 25 Dec 2024 20:31:31 -0500
Change-Id: I631ea22fcb033013e377c17a12fb8a24248abd70
---
 gnu/packages/image.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 7337a27b88..db022a4e81 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -120,6 +120,33 @@ (define-module (gnu packages image)
   #:use-module (guix deprecation)
   #:use-module (srfi srfi-1))
 
+(define-public libyuv
+  (package
+    (name "libyuv")
+    (version "2021.4") ;last stable rel. April 2024
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://chromium.googlesource.com/libyuv/libyuv")
+             (commit "4620f1705822fd6ab99939f43ce63099bd3d9ae0")))
+       (sha256
+        (base32 "17vdm2g5qvrby7xa3agiqwh7ips33dxg6sw18s3q2xkfil4xw3mm"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list
+      #:tests? #f))
+    (home-page "https://chromium.googlesource.com/libyuv/libyuv/")
+    (synopsis "YUV scaling and conversion functionality")
+    (description
+     "libyuv is an open source project that includes YUV scaling and
+conversion functionality.  Scale YUV to prepare content for
+compression, with point, bilinear or box filter.  Convert to YUV from
+webcam formats for compression, and to RGB formats for
+rendering/effects.  Rotate by 90/180/270 degrees to adjust for mobile
+devices in portrait mode.")
+    (license license:expat)))
+
 (define-public converseen
   (package
     (name "converseen")
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#75106; Package guix-patches. (Thu, 26 Dec 2024 01:33:02 GMT) Full text and rfc822 format available.

Message #11 received at 75106 <at> debbugs.gnu.org (full text, mbox):

From: Andrew Wong <wongandj <at> icloud.com>
To: 75106 <at> debbugs.gnu.org
Cc: Andrew Wong <wongandj <at> icloud.com>
Subject: [PATCH 2/2] gnu: Add ringracers.
Date: Wed, 25 Dec 2024 20:31:32 -0500
Change-Id: Iaa92026e4d9a62fa3549b39aff7da0dd6f078013
---
 gnu/packages/games.scm | 56 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index c2bb9aa1c4..cccfd91e1c 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -249,6 +249,62 @@ (define-module (gnu packages games)
   #:use-module ((srfi srfi-1) #:hide (zip))
   #:use-module (srfi srfi-26))
 
+(define-public ring-racers
+  (package
+    (name "ring-racers")
+    (version "2.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+	     (url "https://git.do.srb2.org/KartKrew/RingRacers")
+	     (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+	(base32 "05lf799imbk0x3i2adaj0r84ck5yyrvzjvhs4k9dj7l4jg0x4sjz"))
+       ;; (snippet
+       ;;  '(begin
+       ;;     (with-directory-excursion "thirdparty"
+       ;;       (for-each delete-file-recursively '("fmt")))
+       ;;     #t))
+       ))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f
+       #:configure-flags
+       (list "-DCMAKE_C_FLAGS_RELWITHDEBINFO='-O3 -g -DNDEBUG'"
+	     "-DCMAKE_CXX_FLAGS_RELWITHDEBINFO='-O3 -g -DNDEBUG'"
+	     "-DSRB2_CONFIG_DEV_BUILD=OFF"
+	     "-DCMAKE_BUILD_TYPE=RelWithDebInfo")
+       #:phases
+       (modify-phases %standard-phases
+         ;; (add-after 'unpack 'unbundle-font
+         ;;   (lambda* (#:key inputs #:allow-other-keys)
+         ;;     (with-directory-excursion "thirdparty"
+         ;;       (for-each delete-file-recursively '("fmt")))
+         ;;     #t))
+         ;; ^^ This is how to remove the bundles, but how to replace them???
+         (add-after 'install 'move-binary
+           ;; Symlink executable to $out/bin.
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (bin (string-append out "/bin")))
+               (mkdir-p bin)
+               (with-directory-excursion bin
+                 (symlink "../ringracers"
+                          "ringracers"))
+               #t))))))
+    (inputs (list curl zlib libpng libogg libvorbis libvpx libyuv sdl2))
+    (home-page "https://kartkrew.org")
+    (synopsis "Technical kart racing game")
+    (description
+     "\"Dr. Robotnik’s Ring Racers\" is a Technical Kart Racer, drawing
+inspiration from \"antigrav\" racers, fighting games, and traditional-style kart
+racing.  Designed to minimize randomness and emphasize player expression, Ring
+Racers isn’t just about precise handling—you’ll need to master tense combat,
+resource management, and taking risks under pressure.")
+    (license license:gpl2)))
+
 (define-public hexahop
   (package
     (name "hexahop")
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#75106; Package guix-patches. (Thu, 26 Dec 2024 01:44:02 GMT) Full text and rfc822 format available.

Message #14 received at 75106 <at> debbugs.gnu.org (full text, mbox):

From: Andrew Wong <wongandj <at> icloud.com>
To: 75106 <at> debbugs.gnu.org
Cc: Andrew Wong <wongandj <at> icloud.com>
Subject: [PATCH v2 1/2] gnu: Add libyuv.
Date: Wed, 25 Dec 2024 20:43:36 -0500
Change-Id: I631ea22fcb033013e377c17a12fb8a24248abd70
---
 gnu/packages/image.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 7337a27b88..db022a4e81 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -120,6 +120,33 @@ (define-module (gnu packages image)
   #:use-module (guix deprecation)
   #:use-module (srfi srfi-1))
 
+(define-public libyuv
+  (package
+    (name "libyuv")
+    (version "2021.4") ;last stable rel. April 2024
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://chromium.googlesource.com/libyuv/libyuv")
+             (commit "4620f1705822fd6ab99939f43ce63099bd3d9ae0")))
+       (sha256
+        (base32 "17vdm2g5qvrby7xa3agiqwh7ips33dxg6sw18s3q2xkfil4xw3mm"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list
+      #:tests? #f))
+    (home-page "https://chromium.googlesource.com/libyuv/libyuv/")
+    (synopsis "YUV scaling and conversion functionality")
+    (description
+     "libyuv is an open source project that includes YUV scaling and
+conversion functionality.  Scale YUV to prepare content for
+compression, with point, bilinear or box filter.  Convert to YUV from
+webcam formats for compression, and to RGB formats for
+rendering/effects.  Rotate by 90/180/270 degrees to adjust for mobile
+devices in portrait mode.")
+    (license license:expat)))
+
 (define-public converseen
   (package
     (name "converseen")
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#75106; Package guix-patches. (Thu, 26 Dec 2024 01:44:02 GMT) Full text and rfc822 format available.

Message #17 received at 75106 <at> debbugs.gnu.org (full text, mbox):

From: Andrew Wong <wongandj <at> icloud.com>
To: 75106 <at> debbugs.gnu.org
Cc: Andrew Wong <wongandj <at> icloud.com>
Subject: [PATCH v2 2/2] gnu: Add ringracers.
Date: Wed, 25 Dec 2024 20:43:37 -0500
Change-Id: Iaa92026e4d9a62fa3549b39aff7da0dd6f078013
---
 gnu/packages/games.scm | 56 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index c2bb9aa1c4..cccfd91e1c 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -249,6 +249,62 @@ (define-module (gnu packages games)
   #:use-module ((srfi srfi-1) #:hide (zip))
   #:use-module (srfi srfi-26))
 
+(define-public ring-racers
+  (package
+    (name "ring-racers")
+    (version "2.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+	     (url "https://git.do.srb2.org/KartKrew/RingRacers")
+	     (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+	(base32 "05lf799imbk0x3i2adaj0r84ck5yyrvzjvhs4k9dj7l4jg0x4sjz"))
+       ;; (snippet
+       ;;  '(begin
+       ;;     (with-directory-excursion "thirdparty"
+       ;;       (for-each delete-file-recursively '("fmt")))
+       ;;     #t))
+       ))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f
+       #:configure-flags
+       (list "-DCMAKE_C_FLAGS_RELWITHDEBINFO='-O3 -g -DNDEBUG'"
+	     "-DCMAKE_CXX_FLAGS_RELWITHDEBINFO='-O3 -g -DNDEBUG'"
+	     "-DSRB2_CONFIG_DEV_BUILD=OFF"
+	     "-DCMAKE_BUILD_TYPE=RelWithDebInfo")
+       #:phases
+       (modify-phases %standard-phases
+         ;; (add-after 'unpack 'unbundle-font
+         ;;   (lambda* (#:key inputs #:allow-other-keys)
+         ;;     (with-directory-excursion "thirdparty"
+         ;;       (for-each delete-file-recursively '("fmt")))
+         ;;     #t))
+         ;; ^^ This is how to remove the bundles, but how to replace them???
+         (add-after 'install 'move-binary
+           ;; Symlink executable to $out/bin.
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (bin (string-append out "/bin")))
+               (mkdir-p bin)
+               (with-directory-excursion bin
+                 (symlink "../ringracers"
+                          "ringracers"))
+               #t))))))
+    (inputs (list curl zlib libpng libogg libvorbis libvpx libyuv sdl2))
+    (home-page "https://kartkrew.org")
+    (synopsis "Technical kart racing game")
+    (description
+     "\"Dr. Robotnik’s Ring Racers\" is a Technical Kart Racer, drawing
+inspiration from \"antigrav\" racers, fighting games, and traditional-style kart
+racing.  Designed to minimize randomness and emphasize player expression, Ring
+Racers isn’t just about precise handling—you’ll need to master tense combat,
+resource management, and taking risks under pressure.")
+    (license license:gpl2)))
+
 (define-public hexahop
   (package
     (name "hexahop")
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#75106; Package guix-patches. (Thu, 26 Dec 2024 01:48:02 GMT) Full text and rfc822 format available.

Message #20 received at 75106 <at> debbugs.gnu.org (full text, mbox):

From: Andrew Wong <wongandj <at> icloud.com>
To: 75106 <at> debbugs.gnu.org
Cc: Andrew Wong <wongandj <at> icloud.com>
Subject: [PATCH v3 1/2] gnu: Add libyuv.
Date: Wed, 25 Dec 2024 20:47:10 -0500
Change-Id: I631ea22fcb033013e377c17a12fb8a24248abd70
---
 gnu/packages/image.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 7337a27b88..db022a4e81 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -120,6 +120,33 @@ (define-module (gnu packages image)
   #:use-module (guix deprecation)
   #:use-module (srfi srfi-1))
 
+(define-public libyuv
+  (package
+    (name "libyuv")
+    (version "2021.4") ;last stable rel. April 2024
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://chromium.googlesource.com/libyuv/libyuv")
+             (commit "4620f1705822fd6ab99939f43ce63099bd3d9ae0")))
+       (sha256
+        (base32 "17vdm2g5qvrby7xa3agiqwh7ips33dxg6sw18s3q2xkfil4xw3mm"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list
+      #:tests? #f))
+    (home-page "https://chromium.googlesource.com/libyuv/libyuv/")
+    (synopsis "YUV scaling and conversion functionality")
+    (description
+     "libyuv is an open source project that includes YUV scaling and
+conversion functionality.  Scale YUV to prepare content for
+compression, with point, bilinear or box filter.  Convert to YUV from
+webcam formats for compression, and to RGB formats for
+rendering/effects.  Rotate by 90/180/270 degrees to adjust for mobile
+devices in portrait mode.")
+    (license license:expat)))
+
 (define-public converseen
   (package
     (name "converseen")
-- 
2.46.0





Information forwarded to guix-patches <at> gnu.org:
bug#75106; Package guix-patches. (Thu, 26 Dec 2024 01:48:03 GMT) Full text and rfc822 format available.

Message #23 received at 75106 <at> debbugs.gnu.org (full text, mbox):

From: Andrew Wong <wongandj <at> icloud.com>
To: 75106 <at> debbugs.gnu.org
Cc: Andrew Wong <wongandj <at> icloud.com>
Subject: [PATCH v3 2/2] gnu: Add ringracers.
Date: Wed, 25 Dec 2024 20:47:11 -0500
Change-Id: Iaa92026e4d9a62fa3549b39aff7da0dd6f078013
---
 gnu/packages/games.scm | 59 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index c2bb9aa1c4..caee1d5729 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -249,6 +249,65 @@ (define-module (gnu packages games)
   #:use-module ((srfi srfi-1) #:hide (zip))
   #:use-module (srfi srfi-26))
 
+(define-public ringracers
+  (package
+    (name "ringracers")
+    (version "2.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://git.do.srb2.org/KartKrew/RingRacers")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "05lf799imbk0x3i2adaj0r84ck5yyrvzjvhs4k9dj7l4jg0x4sjz"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f
+       #:configure-flags (list
+                          "-DCMAKE_C_FLAGS_RELWITHDEBINFO='-O3 -g -DNDEBUG'"
+                          "-DCMAKE_CXX_FLAGS_RELWITHDEBINFO='-O3 -g -DNDEBUG'"
+                          "-DSRB2_CONFIG_DEV_BUILD=OFF"
+                          "-DCMAKE_BUILD_TYPE=RelWithDebInfo")
+       #:phases (modify-phases %standard-phases
+                  (add-after 'install 'move-binary
+                    ;; Symlink executable to $out/bin.
+                    (lambda* (#:key outputs #:allow-other-keys)
+                      (let* ((out (assoc-ref outputs "out"))
+                             (bin (string-append out "/bin")))
+                        (mkdir-p bin)
+                        (with-directory-excursion bin
+                          (symlink "../ringracers" "ringracers")) #t))))))
+    (inputs (list curl
+                  zlib
+                  libpng
+                  libogg
+                  libvorbis
+                  libvpx
+                  libyuv
+                  sdl2))
+    (home-page "https://kartkrew.org")
+    (synopsis "Technical kart racing game")
+    (description
+     "\"Dr. Robotnik’s Ring Racers\" is a technical kart racing game drawing
+inspiration from \"antigrav\" racers, fighting games, and traditional-style kart
+racing.  Designed to minimize randomness and emphasize player expression, Ring
+Racers about more than precise handling—you’ll need to master tense combat,
+resource management, and taking risks under pressure.")
+    (license (list license:gpl2
+                   license:bsd-3
+                   license:gpl3
+                   license:lgpl2.1
+                   license:zlib
+                   license:public-domain
+                   license:bsd-2
+                   license:expat
+                   license:boost1.0
+                   (license:non-copyleft ;curl license
+                    "file://LICENSE-3RD-PARTY.txt"
+                    "See LICENSE-3RD-PARTY.txt in the distribution.")))))
+
 (define-public hexahop
   (package
     (name "hexahop")
-- 
2.46.0





bug closed, send any further explanations to 75106 <at> debbugs.gnu.org and Andrew Wong <wongandj <at> icloud.com> Request was from Andrew Wong <brosasaki <at> gmail.com> to control <at> debbugs.gnu.org. (Sun, 26 Jan 2025 12:28:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 24 Feb 2025 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 17 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.