[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: zathura-pdf-mupdf: Fix dependencies.
From: |
guix-commits |
Subject: |
01/01: gnu: zathura-pdf-mupdf: Fix dependencies. |
Date: |
Wed, 12 Dec 2018 06:41:11 -0500 (EST) |
iyzsong pushed a commit to branch master
in repository guix.
commit 7b046b1bdc0b1cbc50428d4e08136a110f0a12af
Author: 宋文武 <address@hidden>
Date: Wed Dec 12 19:35:05 2018 +0800
gnu: zathura-pdf-mupdf: Fix dependencies.
* gnu/packages/pdf.scm (zathura-pdf-mupdf)[inputs]: Add mujs.
[arguments]: Pass 'link-external' to the configure flags. Patch
'meson.build'
to include mujs as 'build_dependencies'.
---
gnu/packages/pdf.scm | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 4170e4a..c34a0bc 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -438,6 +438,7 @@ using the DjVuLibre library.")
(inputs
`(("jbig2dec" ,jbig2dec)
("libjpeg" ,libjpeg)
+ ("mujs", mujs)
("mupdf" ,mupdf)
("openjpeg" ,openjpeg)
("openssl" ,openssl)
@@ -447,7 +448,18 @@ using the DjVuLibre library.")
`(#:tests? #f ; package does not contain tests
#:configure-flags (list (string-append "-Dplugindir="
(assoc-ref %outputs "out")
- "/lib/zathura"))))
+ "/lib/zathura")
+ "-Dlink-external=true")
+ #:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'add-mujs-to-dependencies
+ (lambda _
+ ;; Add mujs to the 'build_dependencies'.
+ (substitute* "meson.build"
+ (("^ libopenjp2 = dependency.*" x)
+ (string-append x " mujs = cc.find_library('mujs')\n"))
+ (("^ libopenjp2")
+ " libopenjp2, mujs")))))))
(home-page "https://pwmt.org/projects/zathura-pdf-mupdf/")
(synopsis "PDF support for zathura (mupdf backend)")
(description "The zathura-pdf-mupdf plugin adds PDF support to zathura