[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#35446] [PATCH 08/26] gnu: calibre: Use system mathjax.
From: |
Brendan Tildesley |
Subject: |
[bug#35446] [PATCH 08/26] gnu: calibre: Use system mathjax. |
Date: |
Sat, 27 Apr 2019 19:36:41 +1000 |
* 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
- [bug#35446] [PATCH 20/26] gnu: calibre: Disable bs4 test., (continued)
- [bug#35446] [PATCH 20/26] gnu: calibre: Disable bs4 test., Brendan Tildesley, 2019/04/27
- [bug#35446] [PATCH 19/26] gnu: calibre: Use linux.py to install desktop files., Brendan Tildesley, 2019/04/27
- [bug#35446] [PATCH 05/26] Update email address for Brendan Tildesley, Brendan Tildesley, 2019/04/27
- [bug#35446] [PATCH 07/26] gnu: calibre: Remove markdown unbundling code., Brendan Tildesley, 2019/04/27
- [bug#35446] [PATCH 03/26] gnu: calibre: Update to 3.41.3., Brendan Tildesley, 2019/04/27
- [bug#35446] [PATCH 10/26] gnu: calibre: Enable tests., Brendan Tildesley, 2019/04/27
- [bug#35446] [PATCH 15/26] gnu: calibre: Add python2-html2text as an input., Brendan Tildesley, 2019/04/27
- [bug#35446] [PATCH 18/26] gnu: Add python-soupsieve, python2-soupsieve, Brendan Tildesley, 2019/04/27
- [bug#35446] [PATCH 12/26] gnu: calibre: Patch out unrar test., Brendan Tildesley, 2019/04/27
- [bug#35446] [PATCH 04/26] gnu: calibre: Remove feedparser patch., Brendan Tildesley, 2019/04/27
- [bug#35446] [PATCH 08/26] gnu: calibre: Use system mathjax.,
Brendan Tildesley <=
- [bug#35446] [PATCH 09/26] gnu: calibre: Build rapydscript., Brendan Tildesley, 2019/04/27
- [bug#35446] [PATCH 06/26] gnu: calibre: [inputs]: Replace cssutils with the css-parser fork., Brendan Tildesley, 2019/04/27
- [bug#35446] [PATCH 23/26] gnu: Calibre: Remove some comments., Brendan Tildesley, 2019/04/27
- [bug#35446] [PATCH 24/26] gnu: calibre: Unbundle python2-odfpy, Brendan Tildesley, 2019/04/27
- [bug#35446] [PATCH 26/26] gnu: calibre: Delete various junk from source., Brendan Tildesley, 2019/04/27