Subject: [PATCH v2] gnu: emacs-corfu: Update to 2.0.

From: Cayetano Santos <[email-masked]>
Date: Thu, 3 Apr 2025 13:45:20 +0200

* gnu/packages/emacs-xyz.scm (emacs-corfu): Update to 2.0.

Change-Id: Ibebd4b221984e814fa970802fd922f02e8d4b779
---
 gnu/packages/emacs-xyz.scm | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index e30989cb1e..66a829ef2d 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -5565,7 +5565,7 @@ (define-public emacs-citeproc-el
 (define-public emacs-corfu
   (package
     (name "emacs-corfu")
-    (version "1.7")
+    (version "2.0")
     (source
      (origin
        (method git-fetch)
@@ -5574,10 +5574,11 @@ (define-public emacs-corfu
              (commit version)))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "0yyc64bfqpsjs5iwgwxm171sg85al4mzj4pv3qd4cpmkgmamrrv3"))))
+        (base32 "15vmhbwpjgvc9ly8icrjf74jhbplhigfyfa762s45ipnrq6gyixq"))))
     (build-system emacs-build-system)
     (arguments
      (list
+      #:tests? #f ; there are no tests
       #:phases
       #~(modify-phases %standard-phases
           ;; Move the extensions source files to the top level, which is included
@@ -5588,15 +5589,12 @@ (define-public emacs-corfu
                 (for-each (lambda (f)
                             (rename-file f (basename f)))
                           el-files))))
-          (add-after 'install 'makeinfo
+          (add-after 'unpack 'makeinfo
             (lambda _
-              (invoke "emacs"
-                      "--batch"
+              (invoke "emacs" "--batch"
                       "--eval=(require 'ox-texinfo)"
                       "--eval=(find-file \"README.org\")"
-                      "--eval=(org-texinfo-export-to-info)")
-              (install-file "corfu.info"
-                            (string-append #$output "/share/info")))))))
+                      "--eval=(org-texinfo-export-to-info)"))))))
     (native-inputs (list texinfo))
     (propagated-inputs
      (list emacs-compat))

base-commit: 6f53abfdab78e45530d0d9ca3b789482c052c6a7
-- 
2.49.0