[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/12: gnu: emacs-djvu: Add needed inputs
From: |
guix-commits |
Subject: |
10/12: gnu: emacs-djvu: Add needed inputs |
Date: |
Sun, 13 Sep 2020 17:35:55 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 227932991f55f3a817d96b8de3193bd89ef6460b
Author: Morgan Smith <Morgan.J.Smith@outlook.com>
AuthorDate: Tue Sep 8 22:21:11 2020 -0400
gnu: emacs-djvu: Add needed inputs
* gnu/packages/emacs-xyz.scm (emacs-djvu)[inputs, arguments]: New fields.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/emacs-xyz.scm | 24 +++++++++++++++++++++---
1 file changed, 21 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index ddd0da6..d7b10c1 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -118,6 +118,7 @@
#:use-module (gnu packages curl)
#:use-module (gnu packages databases)
#:use-module (gnu packages dictionaries)
+ #:use-module (gnu packages djvu)
#:use-module (gnu packages emacs)
#:use-module (gnu packages guile)
#:use-module (gnu packages gtk)
@@ -2479,13 +2480,30 @@ filters, new key bindings and faces. It can be enabled
by
(sha256
(base32 "0njgyx09q225hliacsnjk8wallg5i6xkz6bj501pb05nwqfbvfk7"))))
(build-system emacs-build-system)
+ (inputs `(("djview" ,djview)
+ ("djvulibre" ,djvulibre)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'configure
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((file "djvu.el")
+ (djview (assoc-ref inputs "djview"))
+ (djvulibre (assoc-ref inputs "djvulibre")))
+ ;; Specify the absolute executable locations.
+ (chmod file #o644)
+ (substitute* file
+ (("\"djvused\"") (string-append "\"" djvulibre
"/bin/djvused\""))
+ (("\"djvm\"") (string-append "\"" djvulibre "/bin/djvm\""))
+ (("\"ddjvu\"") (string-append "\"" djvulibre "/bin/ddjvu\"")))
+ (emacs-substitute-variables file
+ ("djvu-djview-command" (string-append djview "/bin/djview"))))
+ #t)))))
(home-page "http://elpa.gnu.org/packages/djvu.html")
(synopsis "Edit and view Djvu files via djvused")
(description
"This package is a front end for the command-line program djvused from
-DjVuLibre, see @url{http://djvu.sourceforge.net/}. It assumes you have the
-programs @command{djvused}, @command{djview}, @command{ddjvu}, and
-@command{djvm} installed.")
+DjVuLibre, see @url{http://djvu.sourceforge.net/}.")
(license license:gpl3+)))
(define-public emacs-pabbrev
- branch master updated (71992a5 -> 43514b8), guix-commits, 2020/09/13
- 01/12: gnu: libcyaml: Update to 1.1.0., guix-commits, 2020/09/13
- 02/12: gnu: libaudec: Update to 0.2.3., guix-commits, 2020/09/13
- 03/12: gnu: Add meson 0.55.1., guix-commits, 2020/09/13
- 05/12: gnu: libgccjit: Reword synopsis and description., guix-commits, 2020/09/13
- 06/12: gnu: gccgo: Reword synopsis and description., guix-commits, 2020/09/13
- 08/12: gnu: fmt: Update to 7.0.3., guix-commits, 2020/09/13
- 10/12: gnu: emacs-djvu: Add needed inputs,
guix-commits <=
- 11/12: gnu: glade: Add catalog and module search paths., guix-commits, 2020/09/13
- 07/12: gnu: gcc-toolchain: Reword description., guix-commits, 2020/09/13
- 04/12: gnu: zrythm: Update to 0.8.911., guix-commits, 2020/09/13
- 09/12: services: certbot: Support registration without email., guix-commits, 2020/09/13
- 12/12: gnu: libhandy: Enable glade_catalog., guix-commits, 2020/09/13