GNU bug report logs -
#35446
[PATCH 0/26] Calibre: Update to 3.41.3
Previous Next
Reported by: Brendan Tildesley <mail <at> brendan.scot>
Date: Sat, 27 Apr 2019 09:29:02 UTC
Severity: normal
Tags: patch
Done: Danny Milosavljevic <dannym <at> scratchpost.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
* gnu/packages/ebook.scm (calibre): Use system mathjax. The build phase can be
replaced because the install phase builds everything anyway.
---
gnu/packages/ebook.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm
index 45a456a63b..e5bc023f33 100644
--- a/gnu/packages/ebook.scm
+++ b/gnu/packages/ebook.scm
@@ -42,6 +42,7 @@
#:use-module (gnu packages glib)
#:use-module (gnu packages icu4c)
#:use-module (gnu packages image)
+ #:use-module (gnu packages javascript)
#:use-module (gnu packages libusb)
#:use-module (gnu packages pdf)
#:use-module (gnu packages pkg-config)
@@ -113,6 +114,7 @@
("fontconfig" ,fontconfig)
("glib" ,glib)
("icu4c" ,icu4c)
+ ("js-mathjax" ,js-mathjax)
("libmtp" ,libmtp)
("libpng" ,libpng)
("libusb" ,libusb)
@@ -181,6 +183,10 @@
(setenv "PODOFO_INC_DIR" (string-append podofo "/include/podofo"))
(setenv "PODOFO_LIB_DIR" (string-append podofo "/lib"))
#t)))
+ (add-after 'build 'build-mathjax
+ (lambda* (#:key inputs #:allow-other-keys)
+ (invoke "python2" "setup.py" "mathjax""--system-mathjax" "--path-to-mathjax"
+ (string-append (assoc-ref inputs "js-mathjax") "/share/javascript/mathjax"))))
(add-after 'install 'install-font-liberation
(lambda* (#:key inputs outputs #:allow-other-keys)
(for-each (lambda (file)
--
2.21.0
This bug report was last modified 6 years and 76 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.