From ee00e7e7e931d39a9afad36a203f7f28a39647cf Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Sun, 3 May 2020 00:01:56 -0400 Subject: [PATCH 12/14] gnu: zathura-pdf-mupdf: Update package definition. * gnu/packages/pwmt.scm (zathura-pdf-mupdf): [arguments]<#:glib-or-gtk?>: New argument. [inputs]: Removed. : New inputs. [synopsis]: Updated. [description]: Updated. --- gnu/packages/pwmt.scm | 59 +++++++++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 25 deletions(-) diff --git a/gnu/packages/pwmt.scm b/gnu/packages/pwmt.scm index e9d97bbc89..7c734c2111 100644 --- a/gnu/packages/pwmt.scm +++ b/gnu/packages/pwmt.scm @@ -267,30 +267,24 @@ using the poppler rendering library.") (package (name "zathura-pdf-mupdf") (version "0.3.5") - (source (origin - (method url-fetch) - (uri - (string-append "https://pwmt.org/projects/zathura-pdf-mupdf" - "/download/zathura-pdf-mupdf-" version ".tar.xz")) - (sha256 - (base32 - "1pjwsb7zwclxsvz229fl7y2saf1pv3ifwv3ay8viqxgrp9x3z9hq")))) - (native-inputs `(("pkg-config" ,pkg-config))) - (inputs - `(("jbig2dec" ,jbig2dec) - ("libjpeg" ,libjpeg) - ("mujs" ,mujs) - ("mupdf" ,mupdf) - ("openjpeg" ,openjpeg) - ("openssl" ,openssl) - ("zathura" ,zathura))) + (source + (origin + (method url-fetch) + (uri + (string-append "https://pwmt.org/projects/zathura-pdf-mupdf/download/" + "zathura-pdf-mupdf-" version ".tar.xz")) + (sha256 + (base32 + "1pjwsb7zwclxsvz229fl7y2saf1pv3ifwv3ay8viqxgrp9x3z9hq")))) (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") - "-Dlink-external=true") + `(#:tests? #f ; No target + #:glib-or-gtk? #t ; To compile schemas + #:configure-flags + (list + (string-append "-Dplugindir=" + (assoc-ref %outputs "out") "/lib/zathura") + "-Dlink-external=true") ; For MuPDF external libraries #:phases (modify-phases %standard-phases (add-before 'configure 'add-mujs-to-dependencies @@ -301,10 +295,25 @@ using the poppler rendering library.") (string-append x " mujs = cc.find_library('mujs')\n")) (("^ libopenjp2") " libopenjp2, mujs"))))))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("cairo" ,cairo) + ("girara" ,girara) + ("glib" ,glib) + ("gtk+" ,gtk+) + ("jbig2dec" ,jbig2dec) + ("json-c" ,json-c) ; To generate cargs for zathura + ("libjpeg" ,libjpeg) + ("libnotify" ,libnotify) ; To generate cargs for zathura + ("mujs" ,mujs) + ("mupdf" ,mupdf) + ("openjpeg" ,openjpeg) + ("zathura" ,zathura))) + (synopsis "PDF support (mupdf backend) for zathura") + (description "The zathura-pdf-mupdf plugin adds PDF support to zathura by +using the mupdf rendering library.") (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 -by using the @code{mupdf} rendering library.") (license license:zlib))) (define-public zathura-djvu -- 2.26.2