[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: emacs-calibredb: Patch paths to calibre prog
From: |
guix-commits |
Subject: |
branch master updated: gnu: emacs-calibredb: Patch paths to calibre programs. |
Date: |
Fri, 15 Jan 2021 15:38:25 -0500 |
This is an automated email from the git hooks/post-receive script.
ngz pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 9867bad gnu: emacs-calibredb: Patch paths to calibre programs.
9867bad is described below
commit 9867bad90933b10975bc16f3efc1a430ed87b660
Author: Michael Rohleder <mike@rohleder.de>
AuthorDate: Fri Jan 15 02:58:02 2021 +0100
gnu: emacs-calibredb: Patch paths to calibre programs.
* gnu/packages/emacs-xyz.scm (emacs-calibredb): Patch paths to calibre
programs.
[arguments]: Add phase patch-paths.
[inputs]: Add calibre.
Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
---
gnu/packages/emacs-xyz.scm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index de99227..4d48e0d 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -131,6 +131,7 @@
#:use-module (gnu packages databases)
#:use-module (gnu packages dictionaries)
#:use-module (gnu packages djvu)
+ #:use-module (gnu packages ebook)
#:use-module (gnu packages emacs)
#:use-module (gnu packages guile)
#:use-module (gnu packages gtk)
@@ -22720,6 +22721,21 @@ through Dash docsets.")
(sha256
(base32 "19gc05k2p1l8wlkrqij9cw6d61hzknd6a9n64kzlpi87cpbav3lv"))))
(build-system emacs-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((calibre (assoc-ref inputs "calibre")))
+ (make-file-writable "calibredb-core.el")
+ (emacs-substitute-variables "calibredb-core.el"
+ ("calibredb-program"
+ (string-append calibre "/bin/calibredb"))
+ ("calibredb-fetch-metadata-program"
+ (string-append calibre "/bin/fetch-ebook-metadata"))))
+ #t)))))
+ (inputs
+ `(("calibre" ,calibre)))
(propagated-inputs
`(("emacs-dash" ,emacs-dash)
("emacs-s" ,emacs-s)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: emacs-calibredb: Patch paths to calibre programs.,
guix-commits <=