mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
gnu: calibre: Wrap QTWEBENGINEPROCESS_PATH.
* gnu/packages/ebook.scm (calibre): Wrap QTWEBENGINEPROCESS_PATH in addition to wrapping PYTHONPATH as python-build-system does. Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
parent
4cb7a67544
commit
fd3eac4dd7
1 changed files with 23 additions and 0 deletions
|
@ -246,6 +246,29 @@ (define-public calibre
|
|||
(assoc-ref inputs "js-mathjax")
|
||||
"/share/javascript/mathjax"))
|
||||
(invoke "python2" "setup.py" "rapydscript")))
|
||||
(replace 'wrap
|
||||
;; Here we wrap PYTHONPATH exactly as it would be in
|
||||
;; python-build-system, plus the addition of
|
||||
;; QTWEBENGINEPROCESS_PATH, fixing a bug where Calibre would not
|
||||
;; find Qtwebengine.
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(bin (string-append out "/bin"))
|
||||
(python (assoc-ref inputs "python"))
|
||||
(site-packages
|
||||
(cons (string-append out "/lib/python"
|
||||
(python-version python)
|
||||
"/site-packages")
|
||||
(search-path-as-string->list (getenv "PYTHONPATH"))))
|
||||
(qtwebengineprocess
|
||||
(string-append (assoc-ref inputs "qtwebengine")
|
||||
"/lib/qt5/libexec/QtWebEngineProcess")))
|
||||
(for-each (lambda (program)
|
||||
(wrap-program program
|
||||
`("QTWEBENGINEPROCESS_PATH" = (,qtwebengineprocess))
|
||||
`("PYTHONPATH" prefix ,site-packages)))
|
||||
(find-files bin ".")))
|
||||
#t))
|
||||
(add-after 'install 'install-man-pages
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(copy-recursively
|
||||
|
|
Loading…
Reference in a new issue