gnu: zathura-pdf-poppler: Update to 0.2.9.
* gnu/packages/pdf.scm (zathura-pdf-poppler): Update to 0.2.9. [build-system]: Switch to the Meson build system. [arguments]: Trim accordingly. Add a new ‘patch-plugin-directory’ phase.
This commit is contained in:
parent
aac2006d82
commit
0ed990530f
|
@ -460,27 +460,33 @@ by using the @code{mupdf} rendering library.")
|
||||||
(define-public zathura-pdf-poppler
|
(define-public zathura-pdf-poppler
|
||||||
(package
|
(package
|
||||||
(name "zathura-pdf-poppler")
|
(name "zathura-pdf-poppler")
|
||||||
(version "0.2.8")
|
(version "0.2.9")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri
|
(uri
|
||||||
(string-append "https://pwmt.org/projects/zathura-pdf-poppler/download/zathura-pdf-poppler-"
|
(string-append "https://pwmt.org/projects/zathura-pdf-poppler/download/zathura-pdf-poppler-"
|
||||||
version ".tar.gz"))
|
version ".tar.xz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1m55m7s7f8ng8a7lmcw9z4n5zv7xk4vp9n6fp9j84z6rk2imf7a2"))))
|
"1p4jcny0jniygns78mcf0nlm298dszh49qpmjmackrm6dq8hc25y"))))
|
||||||
(native-inputs `(("pkg-config" ,pkg-config)))
|
(native-inputs `(("pkg-config" ,pkg-config)))
|
||||||
(inputs
|
(inputs
|
||||||
`(("poppler" ,poppler)
|
`(("poppler" ,poppler)
|
||||||
("zathura" ,zathura)))
|
("zathura" ,zathura)))
|
||||||
(build-system gnu-build-system)
|
(build-system meson-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:make-flags (list (string-append "PREFIX=" %output)
|
`(#:tests? #f ; package does not include tests
|
||||||
(string-append "PLUGINDIR=" %output "/lib/zathura")
|
|
||||||
"CC=gcc")
|
|
||||||
#:tests? #f ; Package does not include tests.
|
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases (delete 'configure))))
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-plugin-directory
|
||||||
|
;; Something of a regression in 0.2.9: the new Meson build system
|
||||||
|
;; now hard-codes an incorrect plugin directory. Fix it.
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(substitute* "meson.build"
|
||||||
|
(("(install_dir:).*" _ key)
|
||||||
|
(string-append key
|
||||||
|
"'" (assoc-ref outputs "out") "/lib/zathura'\n")))
|
||||||
|
#t)))))
|
||||||
(home-page "https://pwmt.org/projects/zathura-pdf-poppler/")
|
(home-page "https://pwmt.org/projects/zathura-pdf-poppler/")
|
||||||
(synopsis "PDF support for zathura (poppler backend)")
|
(synopsis "PDF support for zathura (poppler backend)")
|
||||||
(description "The zathura-pdf-poppler plugin adds PDF support to zathura
|
(description "The zathura-pdf-poppler plugin adds PDF support to zathura
|
||||||
|
|
Loading…
Reference in New Issue