Subject: [bug#78622] [PATCH 1/2] gnu: Add sdl2-pango.

From: Eric Bavier <[email-masked]>
Date: Thu, 29 May 2025 04:10:54 +0000

* gnu/packages/sdl.scm (sdl2-pango): New variable.

Change-Id: I87a2fe0c0fefea7c39e9494acc5cc2bd5c782bb3
---
 gnu/packages/sdl.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
index ee6c1d11fd..da16c1b973 100644
--- a/gnu/packages/sdl.scm
+++ b/gnu/packages/sdl.scm
@@ -17,6 +17,7 @@
 ;;; Copyright © 2023 Evgeny Pisemsky <[email-masked]>
 ;;; Copyright © 2023, 2024 dan <[email-masked]>
 ;;; Copyright © 2025 Zheng Junjie <[email-masked]>
+;;; Copyright © 2025 Eric Bavier <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -519,6 +520,33 @@ (define-public sdl-pango
 tagged text in SDL applications.")
     (license license:lgpl2.1)))
 
+(define-public sdl2-pango
+  (package
+    (name "sdl2-pango")
+    (version "2.1.5")
+    (home-page "https://github.com/markuskimius/SDL2_Pango")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0ivngl3bsy2aq8pqdh96nzrfnln6linz50mp5bpb9wv2bk5gj8pi"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:configure-flags (list "--disable-static")))
+    (native-inputs
+     (list autoconf automake libtool pkg-config))
+    (inputs
+     (list freetype pango sdl2))
+    (synopsis "Pango SDL2 binding")
+    (description "This library is a wrapper around the Pango library.
+It allows you to use TrueType fonts to render internationalized and
+tagged text in SDL2 applications.")
+    (license license:lgpl2.1)))
+
 (define-public sdl-ttf
   (package
     (name "sdl-ttf")
-- 
2.49.0