me
/
guix
Archived
1
0
Fork 0

gnu: zathura-pdf-mupdf: Update to 0.3.9.

* gnu/packages/pdf.scm (zathura-pdf-mupdf): Update to 0.3.9.
[inputs]: Add GUMBO-PARSER and TESSERACT-OCR.
[arguments]: Remove obsolete configure flag.  Adjust mupdf substitutions.
master
Marius Bakke 2022-08-29 17:07:44 +02:00
parent f26b9d5ced
commit 7c9cf349f3
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 15 additions and 14 deletions

View File

@ -6,7 +6,7 @@
;;; Copyright © 2016 Roel Janssen <roel@gnu.org> ;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
;;; Copyright © 2016 Nikita <nikita@n0.is> ;;; Copyright © 2016 Nikita <nikita@n0.is>
;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2022 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2016, 2017, 2018, 2019, 2020, 2022 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016, 2017 Marius Bakke <mbakke@fastmail.com> ;;; Copyright © 2016, 2017, 2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2016, 2017, 2019 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2016, 2017, 2019 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2016 Julien Lepiller <julien@lepiller.eu> ;;; Copyright © 2016 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2016, 2019 Arun Isaac <arunisaac@systemreboot.net> ;;; Copyright © 2016, 2019 Arun Isaac <arunisaac@systemreboot.net>
@ -82,6 +82,7 @@
#:use-module (gnu packages lua) #:use-module (gnu packages lua)
#:use-module (gnu packages man) #:use-module (gnu packages man)
#:use-module (gnu packages markup) #:use-module (gnu packages markup)
#:use-module (gnu packages ocr)
#:use-module (gnu packages pcre) #:use-module (gnu packages pcre)
#:use-module (gnu packages perl) #:use-module (gnu packages perl)
#:use-module (gnu packages photo) #:use-module (gnu packages photo)
@ -518,7 +519,7 @@ using the DjVuLibre library.")
(define-public zathura-pdf-mupdf (define-public zathura-pdf-mupdf
(package (package
(name "zathura-pdf-mupdf") (name "zathura-pdf-mupdf")
(version "0.3.6") (version "0.3.9")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (uri
@ -526,39 +527,39 @@ using the DjVuLibre library.")
"/download/zathura-pdf-mupdf-" version ".tar.xz")) "/download/zathura-pdf-mupdf-" version ".tar.xz"))
(sha256 (sha256
(base32 (base32
"1r3v37k9fl2rxipvacgxr36llywvy7n20a25h3ajlyk70697sa66")))) "01vw0lrcj9g7d5h2xvm4xb08mvfld4syfr381fjrbdj52zm9bxvp"))))
(native-inputs (list pkg-config)) (native-inputs (list pkg-config))
(inputs (inputs
`(("jbig2dec" ,jbig2dec) `(("gumbo-parser" ,gumbo-parser)
("jbig2dec" ,jbig2dec)
("libjpeg" ,libjpeg-turbo) ("libjpeg" ,libjpeg-turbo)
("mujs" ,mujs) ("mujs" ,mujs)
("mupdf" ,mupdf) ("mupdf" ,mupdf)
("openjpeg" ,openjpeg) ("openjpeg" ,openjpeg)
("openssl" ,openssl) ("openssl" ,openssl)
("tesseract" ,tesseract-ocr)
("zathura" ,zathura))) ("zathura" ,zathura)))
(build-system meson-build-system) (build-system meson-build-system)
(arguments (arguments
`(#: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 #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'remove-libmupdfthird.a-requirement (add-after 'unpack 'remove-libmupdfthird.a-requirement
(lambda _ (lambda _
;; Ignore a missing (apparently superfluous) static library. ;; Ignore a missing (apparently superfluous) static library.
(substitute* "meson.build" (substitute* "meson.build"
((".*mupdfthird.*") "")) (("mupdfthird = .*")
#t)) "")
(add-before 'configure 'add-mujs-to-dependencies ((", mupdfthird")
""))))
(add-after 'unpack 'fix-mupdf-detection
(lambda _ (lambda _
;; Add mujs to the 'build_dependencies'.
(substitute* "meson.build" (substitute* "meson.build"
(("^ libopenjp2 = dependency.*" x) (("dependency\\('mupdf', required: false\\)")
(string-append x " mujs = cc.find_library('mujs')\n")) "cc.find_library('mupdf')")))))))
(("^ 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