mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
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'.
This commit is contained in:
parent
3a48d05538
commit
7b046b1bdc
1 changed files with 13 additions and 1 deletions
|
@ -438,6 +438,7 @@ (define-public zathura-pdf-mupdf
|
||||||
(inputs
|
(inputs
|
||||||
`(("jbig2dec" ,jbig2dec)
|
`(("jbig2dec" ,jbig2dec)
|
||||||
("libjpeg" ,libjpeg)
|
("libjpeg" ,libjpeg)
|
||||||
|
("mujs", mujs)
|
||||||
("mupdf" ,mupdf)
|
("mupdf" ,mupdf)
|
||||||
("openjpeg" ,openjpeg)
|
("openjpeg" ,openjpeg)
|
||||||
("openssl" ,openssl)
|
("openssl" ,openssl)
|
||||||
|
@ -447,7 +448,18 @@ (define-public zathura-pdf-mupdf
|
||||||
`(#:tests? #f ; package does not contain tests
|
`(#:tests? #f ; package does not contain tests
|
||||||
#:configure-flags (list (string-append "-Dplugindir="
|
#:configure-flags (list (string-append "-Dplugindir="
|
||||||
(assoc-ref %outputs "out")
|
(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/")
|
(home-page "https://pwmt.org/projects/zathura-pdf-mupdf/")
|
||||||
(synopsis "PDF support for zathura (mupdf backend)")
|
(synopsis "PDF support for zathura (mupdf backend)")
|
||||||
(description "The zathura-pdf-mupdf plugin adds PDF support to zathura
|
(description "The zathura-pdf-mupdf plugin adds PDF support to zathura
|
||||||
|
|
Loading…
Reference in a new issue