Subject: [bug#77141] [PATCH] gnu: emacs-ansible-doc: Update to 0.4-2.648c844.

From: Simon Streit <[email-masked]>
Date: Thu, 20 Mar 2025 21:39:46 +0100

Hello,

This patch not updates the package, it also moves it to emacs-xyz
where all other emacs packages are collected too.  Thought it would
fit better there.

Kind regards

* gnu/packages/admin.scm (emacs-ansible-doc): Move variable from here…
* gnu/packages/emacs-xyz.scm: … to here and update to 0.4-2.648c84.
  Update source and homepage URL to maintained fork.

Change-Id: I910e773661d98b13ada374e8f5086448bb4d2586
---
 gnu/packages/admin.scm     | 29 +----------------------------
 gnu/packages/emacs-xyz.scm | 31 ++++++++++++++++++++++++++++++-
 2 files changed, 31 insertions(+), 29 deletions(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index aff2f4d0bdf..afe1228e8f4 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -76,6 +76,7 @@
 ;;; Copyright © 2024 Ashvith Shetty <[email-masked]>
 ;;; Copyright © 2025 Dariqq <[email-masked]>
 ;;; Copyright © 2024 nik gaffney <[email-masked]>
+;;; Copyright © 2025 Simon Streit <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -3372,34 +3373,6 @@ (define-public debops
 manage virtual machines and/or containers.")
     (license license:gpl3+)))
 
-(define-public emacs-ansible-doc
-  (let ((commit "86083a7bb2ed0468ca64e52076b06441a2f8e9e0"))
-    (package
-      (name "emacs-ansible-doc")
-      (version (git-version "0.4" "1" commit))
-      (source
-       (origin
-         (method git-fetch)
-         (uri (git-reference
-               (url "https://github.com/lunaryorn/ansible-doc.el")
-               (commit commit)))
-         (file-name (git-file-name name version))
-         (sha256
-          (base32
-           "0lap404ch74w99n3xip176jr42b38xhyzkfnkyqg0g3wk2cd3aq8"))))
-      (build-system emacs-build-system)
-      ;; Unmaintained by upstream.
-      (home-page "https://github.com/lunaryorn/ansible-doc.el")
-      (synopsis "Ansible documentation for Emacs")
-      (description
-       "This package provides an Ansible documentation for GNU Emacs.
-
-@code{ansible-doc} allows you to view the documentation of an Ansible
-module and @code{ansible-doc-mode} minor mode adds documentation
-lookup to YAML Mode.  You could enable the mode with @code{(add-hook
-'yaml-mode-hook #'ansible-doc-mode)}.")
-      (license license:gpl3+))))
-
 (define-public cpulimit
   (package
     (name "cpulimit")
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index f7459c3c32e..e833bb11736 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -119,7 +119,7 @@
 ;;; Copyright © 2022, 2024, 2025 Nicolas Graves <[email-masked]>
 ;;; Copyright © 2022 Thiago Jung Bauermann <[email-masked]>
 ;;; Copyright © 2022 Joeke de Graaf <[email-masked]>
-;;; Copyright © 2023 Simon Streit <[email-masked]>
+;;; Copyright © 2023, 2025 Simon Streit <[email-masked]>
 ;;; Copyright © 2023 John Kehayias <[email-masked]>
 ;;; Copyright © 2023 Ivan Vilata-i-Balaguer <[email-masked]>
 ;;; Copyright © 2022 Demis Balbach <[email-masked]>
@@ -23999,6 +23999,35 @@ (define-public emacs-ansible
      "This is an Emacs minor mode for editing Ansible files.")
     (license license:gpl2+)))
 
+(define-public emacs-ansible-doc
+  (let ((commit "648c844ab46f56c2c7ee25687ad2952a5d5eb4c7")
+        (revision "2")
+        (version "0.4"))
+    (package
+      (name "emacs-ansible-doc")
+      (version (git-version version revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/fredericgiquel/ansible-doc")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "02xnkgsrq54bpk26z9cs352r5rq0scmzw2czlq2pyq1332g6lycd"))))
+      (build-system emacs-build-system)
+      (home-page "https://github.com/fredericgiquel/ansible-doc")
+      (synopsis "Ansible documentation for Emacs")
+      (description
+       "This package provides an Ansible documentation for GNU Emacs.
+
+@code{ansible-doc} allows you to view the documentation of an Ansible
+module and @code{ansible-doc-mode} minor mode adds documentation
+lookup to YAML Mode.  You could enable the mode with @code{(add-hook
+'yaml-mode-hook #'ansible-doc-mode)}.")
+      (license license:gpl3+))))
+
 (define-public emacs-polymode-ansible
   (package
     (name "emacs-polymode-ansible")

base-commit: e12455a5e8d524c5c3fba1ae56ebc6819b4f9320
-- 
2.47.1