guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 0e0fb1ecf9ee42d970f088e8db0e7fa51ad95c60
Author: Cayetano Santos <csant...@inventati.org>
AuthorDate: Sat Jul 19 18:47:32 2025 +0200

    gnu: zathura-djvu: Update to 0.2.10.
    
    * gnu/packages/pdf.scm (zathura-djvu): Update to 0.2.10.
    [source]: Switch to git-fetch; update url.
    [arguments]: Use gexps.
    <#:phases>: Remove patch-plugin-directory.
    <#:configure-flags>: Set plugindir.
    
    Change-Id: Ia3652883cd527d8dd021d2be46dfe470e56e0c41
    Signed-off-by: Andreas Enge <andr...@enge.fr>
---
 gnu/packages/pdf.scm | 28 ++++++++++------------------
 1 file changed, 10 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 8fc23ecd19..8bb13c0377 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -670,32 +670,24 @@ using libspectre.")
 (define-public zathura-djvu
   (package
     (name "zathura-djvu")
-    (version "0.2.9")
+    (version "0.2.10")
     (source (origin
-              (method url-fetch)
-              (uri
-               (string-append 
"https://pwmt.org/projects/zathura-djvu/download/zathura-djvu-";
-                              version ".tar.xz"))
+              (method git-fetch)
+              (uri (git-reference
+                     (url "https://github.com/pwmt/zathura-djvu";)
+                     (commit version)))
+              (file-name (git-file-name name version))
               (sha256
                (base32
-                "0062n236414db7q7pnn3ccg5111ghxj3407pn9ri08skxskgirln"))))
+                "1c069n676c9byy1sp2c6idm3mlfijcdpv6z09ifx8hjkryaajplx"))))
     (native-inputs (list pkg-config))
     (inputs
      (list djvulibre zathura))
     (build-system meson-build-system)
     (arguments
-     `(#:tests? #f                      ; package does not contain tests
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'patch-plugin-directory
-           ;; Something of a regression in 0.2.8: 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)))))
+     (list #:tests? #f                      ;package does not contain tests
+           #:configure-flags
+           #~(list (string-append "-Dplugindir=" #$output "/lib/zathura"))))
     (home-page "https://pwmt.org/projects/zathura-djvu/";)
     (synopsis "DjVu support for zathura (DjVuLibre backend)")
     (description "The zathura-djvu plugin adds DjVu support to zathura

Reply via email to