mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-08 07:56:16 -05:00
gnu: emacs-auctex: Compile Reference Card.
* gnu/packages/emacs-xyz.scm (emacs-auctex)[arguments]: Add 'install-doc' phase. [inputs]: New field.
This commit is contained in:
parent
dedbdacf27
commit
1e8fef19b6
1 changed files with 16 additions and 1 deletions
|
@ -1663,9 +1663,24 @@ (define-public emacs-auctex
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue