aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/emacs-xyz.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/emacs-xyz.scm')
-rw-r--r--gnu/packages/emacs-xyz.scm17
1 files changed, 16 insertions, 1 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 60cca75ca1..80692615ce 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