Subject: [PATCH 4/7] gnu: zathura-pdf-mupdf: Update to 0.4.4.

From: Andrew Wong <[email-masked]>
Date: Fri, 21 Mar 2025 17:11:56 -0400

* gnu/packages/pdf.scm (zathura-pdf-mupdf): Update to 0.4.4.
[arguments] <#:phases>: Remove unneeded 'fix-mupdf-detection phase

Change-Id: I175d326c05eb71ed27fee38eae2294f98701a845
---
 gnu/packages/pdf.scm | 63 ++++++++++++++++++--------------------------
 1 file changed, 25 insertions(+), 38 deletions(-)

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 122ab4280a..9335dc669b 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -617,47 +617,34 @@ (define-public zathura-djvu
 (define-public zathura-pdf-mupdf
   (package
     (name "zathura-pdf-mupdf")
-    (version "0.4.3")
-    (source (origin
-              (method url-fetch)
-              (uri
-               (string-append "https://pwmt.org/projects/zathura-pdf-mupdf"
-                              "/download/zathura-pdf-mupdf-" version ".tar.xz"))
-              (sha256
-               (base32
-                "0xk7fxgx5fiafczwqlpb3hkfmfhhq2ljabxvi272m9vy13p89kwc"))))
+    (version "0.4.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://pwmt.org/projects/zathura-pdf-mupdf"
+                           "/download/zathura-pdf-mupdf-" version ".tar.xz"))
+       (sha256
+        (base32 "1z7ln6nmcy5gvy83ixcg08y34slngmpa859kwqpkmgna054n4981"))))
     (native-inputs (list pkg-config))
-    (inputs
-     (list gumbo-parser
-           jbig2dec
-           libjpeg-turbo
-           mujs
-           mupdf
-           openjpeg
-           openssl
-           tesseract-ocr
-           zathura))
+    (inputs (list gumbo-parser
+                  jbig2dec
+                  libjpeg-turbo
+                  mujs
+                  mupdf
+                  openjpeg
+                  openssl
+                  tesseract-ocr
+                  zathura))
     (build-system meson-build-system)
     (arguments
-     `(#:tests? #f                      ; package does not contain tests
-       #:configure-flags (list (string-append "-Dplugindir="
-                                              (assoc-ref %outputs "out")
-                                              "/lib/zathura"))
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'remove-libmupdfthird.a-requirement
-           (lambda _
-             ;; Ignore a missing (apparently superfluous) static library.
-             (substitute* "meson.build"
-               (("mupdfthird = .*")
-                "")
-               ((", mupdfthird")
-                ""))))
-         (add-after 'unpack 'fix-mupdf-detection
-           (lambda _
-             (substitute* "meson.build"
-               (("dependency\\('mupdf', required: false\\)")
-                "cc.find_library('mupdf')")))))))
+     (list #:tests? #f                  ; package does not contain tests
+           #:configure-flags
+           #~(list (string-append "-Dplugindir=" #$output "/lib/zathura"))
+           #:phases #~(modify-phases %standard-phases
+                        (add-after 'unpack 'fix-unneeded-mupdfthird-req
+                          (lambda _ (substitute* "meson.build"
+                                      (("mupdfthird = .*") "")
+                                      ((", mupdfthird") "")))))))
     (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
-- 
2.48.1