guix_mirror_bot pushed a commit to branch master
in repository guix.

commit d732788994df2c8bf4064f9b3bc4df1f70f23b5f
Author: Cayetano Santos <csant...@inventati.org>
AuthorDate: Sat Jul 19 18:41:01 2025 +0200

    gnu: zathura-pdf-mupdf: Update to 0.4.4.
    
    * gnu/packages/pdf.scm (zathura-pdf-mupdf): Update to 0.4.4.
    [source]: Switch to git-fetch; update url.
    [inputs]: Remove all but mupdf and zathura.
    [arguments]: Use gexps.
    <#:phases>: Remove fix-mupdf-detection.
    <#:configure-flags>: Set plugindir.
    
    Change-Id: Iea2e531d05b2ce44b6caa1cbe470157fcfe3b237
    Signed-off-by: Andreas Enge <andr...@enge.fr>
---
 gnu/packages/pdf.scm | 56 +++++++++++++++++++++-------------------------------
 1 file changed, 22 insertions(+), 34 deletions(-)

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 8bb13c0377..c61822840b 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -697,47 +697,35 @@ using the DjVuLibre library.")
 (define-public zathura-pdf-mupdf
   (package
     (name "zathura-pdf-mupdf")
-    (version "0.4.3")
+    (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"))
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://github.com/pwmt/zathura-pdf-mupdf";)
+                     (commit version)))
+              (file-name (git-file-name name version))
               (sha256
                (base32
-                "0xk7fxgx5fiafczwqlpb3hkfmfhhq2ljabxvi272m9vy13p89kwc"))))
+                "1g1wiazyqdjd40qvq5vkxqabxzd0qlk6wvfvllm4y8x1jcc11vbs"))))
     (native-inputs (list pkg-config))
     (inputs
-     (list gumbo-parser
-           jbig2dec
-           libjpeg-turbo
-           mujs
-           mupdf
-           openjpeg
-           openssl
-           tesseract-ocr
-           zathura))
+     (list mupdf 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 'remove-libmupdfthird.a-requirement
+            (lambda _
+              ;; Ignore a missing (apparently superfluous) static library.
+              (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

Reply via email to