aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendan Tildesley <mail@brendan.scot>2019-05-04 02:42:10 +1000
committerDanny Milosavljevic <dannym@scratchpost.org>2019-05-05 14:44:19 +0200
commitd243b41dd06144c739c7391f3fcdf1ad889bc722 (patch)
treea70c541a9b839fb739cbf55988e4c96f9a52e3c3
parent4e6f8a1442d04a4dd9066c4bda0a3c06cb4af5d3 (diff)
downloadguix-d243b41dd06144c739c7391f3fcdf1ad889bc722.tar.gz
guix-d243b41dd06144c739c7391f3fcdf1ad889bc722.zip
gnu: calibre: Use system mathjax.
* gnu/packages/ebook.scm (calibre)[arguments]<#:phases>[build-extra]: New phase. [inputs]: Add js-mathjax. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
-rw-r--r--gnu/packages/ebook.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm
index a603519590..1d815489a6 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-extra
+ (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)