[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/23: gnu: calibre: Move font unbundling to after check phase.
From: |
guix-commits |
Subject: |
05/23: gnu: calibre: Move font unbundling to after check phase. |
Date: |
Sun, 5 May 2019 11:15:23 -0400 (EDT) |
dannym pushed a commit to branch master
in repository guix.
commit 13068a8ccf68653f082728b8809c46970cb97f60
Author: Brendan Tildesley <address@hidden>
Date: Sun May 5 13:35:14 2019 +0200
gnu: calibre: Move font unbundling to after check phase.
* gnu/packages/ebook.scm (calibre)[snippet]: Modify.
[native-inputs]: Remove font-liberation.
[inputs]: Add font-liberation.
[arguments]<#:phases>[install-font-liberation]: Delete phase.
[unbundle-font-liberation]: New phase.
Signed-off-by: Danny Milosavljevic <address@hidden>
---
gnu/packages/ebook.scm | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm
index 6bc3813..799eed6 100644
--- a/gnu/packages/ebook.scm
+++ b/gnu/packages/ebook.scm
@@ -95,13 +95,11 @@
(snippet
'(begin
(delete-file "src/odf/thumbnail.py")
- (delete-file-recursively "resources/fonts/liberation")
#t))
(patches (search-patches "calibre-no-updates-dialog.patch"))))
(build-system python-build-system)
(native-inputs
`(("pkg-config" ,pkg-config)
- ("font-liberation" ,font-liberation)
("qtbase" ,qtbase) ; for qmake
;; xdg-utils is supposed to be used for desktop integration, but it
;; also creates lots of messages
@@ -112,6 +110,7 @@
(inputs
`(("chmlib" ,chmlib)
("fontconfig" ,fontconfig)
+ ("font-liberation" ,font-liberation)
("glib" ,glib)
("icu4c" ,icu4c)
("js-mathjax" ,js-mathjax)
@@ -190,17 +189,18 @@
(invoke "python2" "setup.py" "mathjax""--system-mathjax"
"--path-to-mathjax"
(string-append (assoc-ref inputs "js-mathjax")
"/share/javascript/mathjax"))
(invoke "python2" "setup.py" "rapydscript")))
- (add-after 'install 'install-font-liberation
+ ;; The font TTF files are used in some miscellaneous tests, so we
+ ;; unbundle them here to avoid patching the tests.
+ (add-after 'install 'unbundle-font-liberation
(lambda* (#:key inputs outputs #:allow-other-keys)
- (for-each (lambda (file)
- (install-file file (string-append
- (assoc-ref outputs "out")
-
"/share/calibre/fonts/liberation")))
- (find-files (string-append
- (assoc-ref inputs "font-liberation")
- "/share/fonts/truetype")))
+ (let ((font-dest (string-append (assoc-ref outputs "out")
+
"/share/calibre/fonts/liberation"))
+ (font-src (string-append (assoc-ref inputs
"font-liberation")
+ "/share/fonts/truetype")))
+ (delete-file-recursively font-dest)
+ (symlink font-src font-dest))
#t))
- (add-after 'install-font-liberation 'install-mimetypes
+ (add-after 'unbundle-font-liberation 'install-mimetypes
(lambda* (#:key outputs #:allow-other-keys)
(install-file "resources/calibre-mimetypes.xml"
(string-append (assoc-ref outputs "out")
- 17/23: gnu: calibre: Remove some comments., (continued)
- 17/23: gnu: calibre: Remove some comments., guix-commits, 2019/05/05
- 16/23: gnu: calibre: Enable tests., guix-commits, 2019/05/05
- 10/23: gnu: calibre: Disable tests that require networking., guix-commits, 2019/05/05
- 20/23: gnu: calibre: Delete various junk from source., guix-commits, 2019/05/05
- 15/23: gnu: calibre: Disable sqlite test., guix-commits, 2019/05/05
- 18/23: gnu: calibre: Unbundle python2-odfpy., guix-commits, 2019/05/05
- 21/23: gnu: calibre: Install man pages., guix-commits, 2019/05/05
- 23/23: gnu: calibre: Update to 3.42.0., guix-commits, 2019/05/05
- 19/23: gnu: calibre: Remove libxrender as an input., guix-commits, 2019/05/05
- 01/23: gnu: calibre: Update to 3.41.3., guix-commits, 2019/05/05
- 05/23: gnu: calibre: Move font unbundling to after check phase.,
guix-commits <=
- 07/23: gnu: calibre: Add python2-html2text as an input., guix-commits, 2019/05/05
- 12/23: gnu: calibre: Use "linux.py" to install desktop files., guix-commits, 2019/05/05
- 14/23: gnu: calibre: Disable Qt test., guix-commits, 2019/05/05
- 13/23: gnu: calibre: Disable bs4 test., guix-commits, 2019/05/05
- 09/23: gnu: calibre: Remove unrar test., guix-commits, 2019/05/05
- 11/23: gnu: Add python-soupsieve, python2-soupsieve., guix-commits, 2019/05/05
- 22/23: gnu: calibre: Shorten long line., guix-commits, 2019/05/05