Subject: [bug#77450] [PATCH] gnu: font-go: Update to 2.010

From: Kurome <[email-masked]>
Date: Mon, 7 Apr 2025 21:15:13 +0900

Other changes:
* Use git-version
* Adopted version number that was written in the
  41969df76e82aeec85fa3821b1e24955ea993001 commit message.
* Changed to use gexp for arguments

Change-Id: I4dd8c14c42fdb3803d6e6ff4d075242621c3abd6
---
 gnu/packages/fonts.scm | 44 +++++++++++++++++++++---------------------
 1 file changed, 22 insertions(+), 22 deletions(-)

diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 9b329b3f37..b35d5ae583 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -2477,32 +2477,32 @@ (define-public font-space-grotesk
     (license license:silofl1.1)))
 
 (define-public font-go
-  (let ((commit "f03a046406d4d7fbfd4ed29f554da8f6114049fc")
-        (revision "1"))
+  (let ((commit "41969df76e82aeec85fa3821b1e24955ea993001")
+        (revision "2"))
     (package
       (name "font-go")
-      (version (string-append "20170330-" revision "." (string-take commit 7)))
-      (source (origin
-                (file-name (string-append "go-image-" version "-checkout"))
-                (method git-fetch)
-                (uri (git-reference
-                      (url "https://go.googlesource.com/image")
-                      (commit commit)))
-                (sha256
-                 (base32
-                  "1aq6mnjayks55gd9ahavk6jfydlq5lm4xm0xk4pd5sqa74p5p74d"))))
+      (version (git-version "2.010" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://go.googlesource.com/image")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1z7lxkb84ca013ys0pr1bma2zdfzrvqip4yl6s941iyby0xfiyws"))))
       (build-system font-build-system)
       (arguments
-       `(#:license-file-regexp "^(LICENSE|PATENTS)$"
-         #:phases
-         (modify-phases %standard-phases
-           (add-before 'install 'chdir
-             (lambda _
-               (chdir "font/gofont/ttfs")
-               #t))
-           (add-before 'install-license-files 'enter-license-directory
-             (lambda _
-               (chdir "../../.."))))))
+       (list
+        #:license-file-regexp "^(LICENSE|PATENTS)$"
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-before 'install 'chdir
+              (lambda _
+                (chdir "font/gofont/ttfs") #t))
+            (add-before 'install-license-files 'enter-license-directory
+              (lambda _
+                (chdir "../../.."))))))
       (home-page "https://go.dev/blog/go-fonts")
       (synopsis "The Go font family")
       (description
-- 
2.49.0