Subject: [bug#77561] [PATCH v3] gnu: emacs-org-roam: Update to 2.2.2-2.046822b.

From: Cayetano Santos <[email-masked]>
Date: Mon, 7 Apr 2025 08:54:07 +0200

* gnu/packages/emacs-xyz.scm (emacs-org-roam): Update to 2.2.2-2.046822b.

[propagated-inputs]: Remove emacs-f, emacs-org, emacs-s
[arguments]<#:phases>: Produce info document using provided makefile

Change-Id: I70cdd629a92145ad4cf5d965e53ce34f71117c7f
---
 gnu/packages/emacs-xyz.scm | 33 ++++++++++++++-------------------
 1 file changed, 14 insertions(+), 19 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index b0ed0fdd0b..fb6e139784 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -40163,8 +40163,8 @@ (define-public emacs-orca
       (license license:gpl3+))))
 
 (define-public emacs-org-roam
-  (let ((commit "0b9fcbc97b65b349826e63bad89ca121a08fd2be")
-        (revision "1"))
+  (let ((commit "046822b512ffecdee7d110f73dd3a511802ca590")
+        (revision "2"))
     (package
       (name "emacs-org-roam")
       (version (git-version "2.2.2" revision commit))
@@ -40176,15 +40176,23 @@ (define-public emacs-org-roam
                (commit commit)))
          (file-name (git-file-name name version))
          (sha256
-          (base32 "04vqwrsb71jdb66fkahmxwvx8cssgqamrradbdgp3ygf8alwc7ml"))))
+          (base32 "0jbj48glh0r6fkb0lk1xb9067x2myp3krkw2byycijwdq1nlqzv2"))))
       (build-system emacs-build-system)
       (arguments
        (list
         #:phases
         #~(modify-phases %standard-phases
+            (add-after 'unpack 'make-info
+              (lambda _
+                (invoke "make" "-C" "doc" "info")
+                (copy-file "doc/org-roam.info" "org-roam.info")))
+            (add-after 'make-info 'install-image
+              (lambda* (#:key outputs #:allow-other-keys)
+                (install-file "doc/images/org-ref-citelink.png"
+                              (string-append #$output "/share/info/images"))))
             ;; Move the extensions source files to the top level, which
             ;; is included in the EMACSLOADPATH.
-            (add-after 'unpack 'move-source-files
+            (add-after 'install-image 'move-source-files
               (lambda _
                 (let ((el-files (find-files "./extensions" ".*\\.el$")))
                   (for-each (lambda (f)
@@ -40195,17 +40203,7 @@ (define-public emacs-org-roam
                 (make-file-writable "org-roam-graph.el")
                 (emacs-substitute-variables "org-roam-graph.el"
                   ("org-roam-graph-executable"
-                   (search-input-file inputs "/bin/dot")))))
-            (add-after 'install 'install-image
-              (lambda* (#:key outputs #:allow-other-keys)
-                (install-file "doc/images/org-ref-citelink.png"
-                              (string-append #$output "/share/info/images"))))
-            (add-after 'install-image 'make-info
-              (lambda* (#:key outputs #:allow-other-keys)
-                (with-directory-excursion "doc"
-                  (invoke "makeinfo" "-o" "org-roam.info" "org-roam.texi")
-                  (install-file "org-roam.info"
-                                (string-append #$output "/share/info"))))))))
+                   (search-input-file inputs "/bin/dot"))))))))
       (inputs
        (list graphviz))
       (native-inputs
@@ -40213,10 +40211,7 @@ (define-public emacs-org-roam
       (propagated-inputs
        (list emacs-dash
              emacs-emacsql
-             emacs-f
-             emacs-magit
-             emacs-org
-             emacs-s))
+             emacs-magit))
       (home-page "https://github.com/org-roam/org-roam/")
       (synopsis "Non-hierarchical note-taking with Org mode")
       (description "Emacs Org Roam is a solution for taking non-hierarchical

base-commit: 6af680670bf9055b90e6f8b63c4c2ab7b08e7c56
-- 
2.49.0