[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: emacs-auctex: Configure executable paths.
From: |
guix-commits |
Subject: |
branch master updated: gnu: emacs-auctex: Configure executable paths. |
Date: |
Fri, 04 Sep 2020 07:00:15 -0400 |
This is an automated email from the git hooks/post-receive script.
arunisaac pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 743be81 gnu: emacs-auctex: Configure executable paths.
743be81 is described below
commit 743be813418258c8226ad22bd15951fed6fd3724
Author: Arun Isaac <arunisaac@systemreboot.net>
AuthorDate: Mon Aug 31 09:33:53 2020 +0530
gnu: emacs-auctex: Configure executable paths.
* gnu/packages/emacs-xyz.scm (emacs-auctex): Configure absolute paths to
ghostscript and texlive executables.
[inputs]: Add ghostscript.
---
gnu/packages/emacs-xyz.scm | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 4d57a9d..9822784 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -175,6 +175,7 @@
#:use-module (gnu packages xdisorg)
#:use-module (gnu packages shells)
#:use-module (gnu packages sqlite)
+ #:use-module (gnu packages ghostscript)
#:use-module (gnu packages gnupg)
#:use-module (gnu packages video)
#:use-module (gnu packages haskell-xyz)
@@ -1914,6 +1915,21 @@ as a library for other Emacs packages.")
#:exclude '("^tests/" "^latex/README")
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'configure
+ (lambda* (#:key inputs #:allow-other-keys)
+ (emacs-substitute-variables "preview.el"
+ ("preview-gs-command"
+ (string-append (assoc-ref inputs "ghostscript") "/bin/gs")))
+ (substitute* "preview.el"
+ (("\"dvipng ")
+ (string-append "\"" (assoc-ref inputs "texlive")
+ "/bin/dvipng "))
+ (("\"dvips ")
+ (string-append "\"" (assoc-ref inputs "texlive")
+ "/bin/dvips "))
+ (("\"pdf2dsc ")
+ (string-append "\"" (assoc-ref inputs "ghostscript")
+ "/bin/pdf2dsc ")))))
(add-after 'install 'install-doc
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
@@ -1928,7 +1944,8 @@ as a library for other Emacs packages.")
(native-inputs
`(("perl" ,perl)))
(inputs
- `(("texlive" ,(texlive-union (list texlive-amsfonts)))))
+ `(("ghostscript" ,ghostscript)
+ ("texlive" ,(texlive-union (list texlive-amsfonts)))))
(home-page "https://www.gnu.org/software/auctex/")
(synopsis "Integrated environment for TeX")
(description
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: emacs-auctex: Configure executable paths.,
guix-commits <=