guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: emacs-use-package: Install texinfo manual.


From: guix-commits
Subject: branch master updated: gnu: emacs-use-package: Install texinfo manual.
Date: Fri, 24 Jul 2020 22:04:23 -0400

This is an automated email from the git hooks/post-receive script.

brettgilio pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 30aa5dd  gnu: emacs-use-package: Install texinfo manual.
30aa5dd is described below

commit 30aa5dd7e7180d163d409b080bf89e8a15a5ba4d
Author: Evan Straw <evan.straw99@gmail.com>
AuthorDate: Mon Apr 13 17:32:34 2020 -0700

    gnu: emacs-use-package: Install texinfo manual.
    
    * gnu/packages/emacs-xyz.scm (emacs-use-package).
    
    [native-inputs]: Add texinfo.
    
    [arguments]: Add phase for installation of the texinfo manual.
    
    Signed-off-by: Brett Gilio <brettg@gnu.org>
---
 gnu/packages/emacs-xyz.scm | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 9bdc8ee..836a395 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -10464,13 +10464,28 @@ abbreviation of the mode line displays (lighters) of 
minor modes.")
                (base32
                 "1b7mjjh0d6fmkkd9vyj64vca27xqhga0nvyrrcqxpqjn62zq046y"))))
     (build-system emacs-build-system)
+    (native-inputs
+     `(("texinfo" ,texinfo)))
     (propagated-inputs
      `(("emacs-diminish" ,emacs-diminish)))
     (arguments
      `(#:tests? #t
        #:test-command '("emacs" "--batch"
                         "-l" "use-package-tests.el"
-                        "-f" "ert-run-tests-batch-and-exit")))
+                        "-f" "ert-run-tests-batch-and-exit")
+       #:phases
+       (modify-phases %standard-phases
+         (add-before 'install 'install-manual
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (info-dir (string-append out "/share/info")))
+               (mkdir-p info-dir)
+               (install-file "use-package.info" info-dir)
+               #t)))
+         (add-before 'install-manual 'build-manual
+           (lambda _
+             (invoke "makeinfo" "use-package.texi")
+             #t)))))
     (home-page "https://github.com/jwiegley/use-package";)
     (synopsis "Declaration for simplifying your .emacs")
     (description "The use-package macro allows you to isolate package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]