Subject: [bug#71358] [PATCH 1/2] gnu: tig: Update to 2.5.10.

From: Timotej Lazar <[email-masked]>
Date: Tue, 4 Jun 2024 10:50:08 +0200

* gnu/packages/version-control.scm (tig): Update to 2.5.10.
[source]: Switch to git. Drop unbundling snippet.
[native-inputs]: Add autoconf, automake, docbook-xsl, libxml2, pkg-config.

Change-Id: I1ef40cb4aef8c7e7a6a974344b45c81ee55d11c3

foo

Change-Id: I79d8239e7d0d83bfef42263718e8d2d3a2c83252
---
 gnu/packages/version-control.scm | 26 +++++++++++---------------
 1 file changed, 11 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 4280d4fab8..f0503a8db0 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -2786,23 +2786,19 @@ (define-public aegis
 (define-public tig
   (package
     (name "tig")
-    (version "2.5.8")
-    (source (origin
-              (method url-fetch)
-              (uri (string-append
-                    "https://github.com/jonas/tig/releases/download/tig-"
-                    version "/tig-" version ".tar.gz"))
-              (sha256
-               (base32
-                "14b38200bmwvi3030hqnwdsp34854ck3bzncj0wlljnpmr10l3mp"))
-              (modules '((guix build utils)))
-              (snippet
-               '(begin
-                  ;; TODO: Delete and rebuild doc/*.(1|5|7).
-                  (for-each delete-file (find-files "doc" "\\.html$"))))))
+    (version "2.5.10")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/jonas/tig.git")
+             (commit (string-append "tig-" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0m7v6xkvly3cbc5hs7plxdny4r41x3vkx7xylygjva4jcvnz0fjr"))))
     (build-system gnu-build-system)
     (native-inputs
-     (list asciidoc xmlto))
+     (list asciidoc autoconf automake docbook-xsl libxml2 pkg-config xmlto))
     (inputs
      (list ncurses readline))
     (arguments
-- 
2.45.1