Subject: [bug#78401] [PATCH] gnu: mupdf: Update to 1.26.0.

From: Divya Ranjan <[email-masked]>
Date: Tue, 13 May 2025 02:52:58 +0000

* gnu/packages/pdf.scm (mupdf): Update to 1.26.0.

Change-Id: I9b650356c8f6cbb36008c1956a59f4dd99c8d964
---
 gnu/packages/pdf.scm | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index a1c9da2c8a..91d47a74e3 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -862,14 +862,14 @@ (define-public python-pydyf
 (define-public mupdf
   (package
     (name "mupdf")
-    (version "1.25.2")
+    (version "1.26.0")
     (source
      (origin
        (method url-fetch)
        (uri (string-append "https://mupdf.com/downloads/archive/"
                            "mupdf-" version "-source.tar.lz"))
        (sha256
-        (base32 "0lg45wp3ici2g2i49fmwa1k32bgkqqgl51nxnqqk0i8ilmdh8hnx"))
+        (base32	 "1nncar9w0qdpwp4s00nazr7hbl2kpbp665a6gwpsmdz5d7j1hqz9"))
        (modules '((guix build utils)
                   (ice-9 ftw)
                   (srfi srfi-1)))
@@ -895,6 +895,7 @@ (define-public mupdf
            libx11
            libxext
            mujs
+	   brotli
            openjpeg
            openssl
            zlib))
@@ -907,6 +908,7 @@ (define-public mupdf
       #~(list "verbose=yes"
               (string-append "CC=" #$(cc-for-target))
               "XCFLAGS=-fpic"
+	      "USE_SYSTEM_BROTLI=yes"
               "USE_SYSTEM_FREETYPE=yes"
               "USE_SYSTEM_GUMBO=yes"
               "USE_SYSTEM_HARFBUZZ=yes"
@@ -921,7 +923,7 @@ (define-public mupdf
               "USE_SYSTEM_CURL=yes"
               "USE_SYSTEM_LEPTONICA=yes"
               "USE_SYSTEM_TESSERACT=yes"
-              "USE_SONAME=no"           ;install as libmupdf.so
+              "USE_SONAME=yes"
               "shared=yes"
               (string-append "LDFLAGS=-Wl,-rpath=" #$output "/lib")
               (string-append "prefix=" #$output))
@@ -945,7 +947,7 @@ (define-public mupdf
                    license:silofl1.1    ;resources/fonts/{han,noto,sil,urw}
                    license:asl2.0)))) ; resources/fonts/droid
 
-(define-public mupdf-1.24 ; Needed for sioyek
+(define-public mupdf-1.24               ; Needed for sioyek
   (package
     (inherit mupdf)
     (name "mupdf")

base-commit: 364694773ef1c61d4c9ec73e24f73642786486ca
-- 
2.49.0