guix-commits
[Top][All Lists]
Advanced

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

branch master updated: gnu: emacs-auctex: Compile Reference Card.


From: guix-commits
Subject: branch master updated: gnu: emacs-auctex: Compile Reference Card.
Date: Tue, 03 Mar 2020 08:47:07 -0500

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

pgarlick pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 1e8fef1  gnu: emacs-auctex: Compile Reference Card.
1e8fef1 is described below

commit 1e8fef19b6320d3382a4a69273e5aae8d49e9c41
Author: Paul Garlick <address@hidden>
AuthorDate: Tue Mar 3 13:23:11 2020 +0000

    gnu: emacs-auctex: Compile Reference Card.
    
    * gnu/packages/emacs-xyz.scm (emacs-auctex)[arguments]: Add
    'install-doc' phase.
    [inputs]: New field.
---
 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 60cca75..8069261 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -1663,9 +1663,24 @@ as a library for other Emacs packages.")
     (arguments
      `(#:emacs ,emacs
        #:include '("\\.el$" "^images/" "^latex/" "\\.info$")
-       #:exclude '("^tests/" "^latex/README")))
+       #:exclude '("^tests/" "^latex/README")
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'install 'install-doc
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (etc-dir (string-append out "/share/" ,name "/"
+                                            ,version "/etc")))
+               (with-directory-excursion "doc"
+                 (setenv "HOME" (getenv  "TMPDIR")) ; for mktextfm
+                 (invoke "pdftex" "tex-ref")
+                 (install-file "tex-ref.pdf" (string-append etc-dir
+                                                            "/refcards")))
+               #t))))))
     (native-inputs
      `(("perl" ,perl)))
+    (inputs
+     `(("texlive" ,(texlive-union (list texlive-amsfonts)))))
     (home-page "https://www.gnu.org/software/auctex/";)
     (synopsis "Integrated environment for TeX")
     (description



reply via email to

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