Subject: bug#76766: closed (Re: [bug#76766] [PATCH] gnu: Add sdl3-gfx.)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 30 Mar 2025 03:30:04 +0000

Your bug report

#76766: [PATCH] gnu: Add sdl3-gfx.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
76766: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=76766
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#76766] [PATCH] gnu: Add sdl3-gfx.
From: Z572 <[email-masked]>
To: guix-patches--- via <[email-masked]>
Cc: Nguyễn Gia Phong <[email-masked]>, [email-masked]
Date: Sun, 30 Mar 2025 11:28:28 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

guix-patches--- via <[email-masked]> writes:

> * gnu/packages/sdl.scm (sdl3-gfx): New variable.
>
> Change-Id: I4be1900c77367b327d22def198e5f58360efaf6e
> ---
> https://github.com/sabdul-khabir/SDL3_gfx
> is recommended by the maintainer of SDL{,2}_gfx:
> https://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx
>
>  gnu/packages/sdl.scm | 25 +++++++++++++++++++++++++
>  1 file changed, 25 insertions(+)
>
> diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
> index 42fcf35d40fe..00a11d8d5b02 100644
> --- a/gnu/packages/sdl.scm
> +++ b/gnu/packages/sdl.scm
> @@ -667,6 +667,31 @@ (define-public sdl2-gamecontrollerdb
>  mappings intended for the use with SDL2's game controller functionality.")
>        (license license:zlib))))
>  
> +(define-public sdl3-gfx
> +  (package
> +    (name "sdl3-gfx")
> +    (version "1.0.1")
> +    (source (origin
> +              (method git-fetch)
> +              (uri (git-reference
> +                    (url "https://github.com/sabdul-khabir/SDL3_gfx")
> +                    (commit (string-append "v" version))))
> +              (file-name (git-file-name name version))
> +              (sha256
> +               (base32
> +                "18g9qavk0wh1bvfh6gdi5q75fd57dk0gp5r20c80x7xnp2ywywih"))))
> +    (build-system cmake-build-system)
> +    (arguments '(#:configure-flags '("-DBUILD_TESTS=ON")))

use (arguments (list #:configure-flags #~(list "-DBUILD_TESTS=ON")))

> +    (propagated-inputs (list sdl3))
> +    (home-page "https://github.com/sabdul-khabir/SDL3_gfx")
> +    (synopsis "SDL3 graphics drawing primitives")
> +    (description
> +     "This package provides Graphics drawing primitives
> +and other support functions wrapped up in an add-on, C-based library
> +for the Simple Direct Media (SDL) cross-platform API layer.")
> +    (license license:zlib)
> +    (properties '((upstream-name . "SDL3_gfx")))))
> +
>  (define-public guile-sdl
>    (package
>      (name "guile-sdl")
>
> base-commit: 310adf4ce70cbb864859274fcc7842bd519bbddc
pushed, closing.

Subject: [PATCH] gnu: Add sdl3-gfx.
From: Nguyễn Gia Phong <[email-masked]>
To: [email-masked]
Cc: Nguyễn Gia Phong <[email-masked]>
Date: Thu, 6 Mar 2025 10:35:01 +0900
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/sdl.scm (sdl3-gfx): New variable.

Change-Id: I4be1900c77367b327d22def198e5f58360efaf6e
---
https://github.com/sabdul-khabir/SDL3_gfx
is recommended by the maintainer of SDL{,2}_gfx:
https://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx

 gnu/packages/sdl.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
index 42fcf35d40fe..00a11d8d5b02 100644
--- a/gnu/packages/sdl.scm
+++ b/gnu/packages/sdl.scm
@@ -667,6 +667,31 @@ (define-public sdl2-gamecontrollerdb
 mappings intended for the use with SDL2's game controller functionality.")
       (license license:zlib))))
 
+(define-public sdl3-gfx
+  (package
+    (name "sdl3-gfx")
+    (version "1.0.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/sabdul-khabir/SDL3_gfx")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "18g9qavk0wh1bvfh6gdi5q75fd57dk0gp5r20c80x7xnp2ywywih"))))
+    (build-system cmake-build-system)
+    (arguments '(#:configure-flags '("-DBUILD_TESTS=ON")))
+    (propagated-inputs (list sdl3))
+    (home-page "https://github.com/sabdul-khabir/SDL3_gfx")
+    (synopsis "SDL3 graphics drawing primitives")
+    (description
+     "This package provides Graphics drawing primitives
+and other support functions wrapped up in an add-on, C-based library
+for the Simple Direct Media (SDL) cross-platform API layer.")
+    (license license:zlib)
+    (properties '((upstream-name . "SDL3_gfx")))))
+
 (define-public guile-sdl
   (package
     (name "guile-sdl")

base-commit: 310adf4ce70cbb864859274fcc7842bd519bbddc
-- 
2.48.1