diff --git a/graphics/zathura-pdf-mupdf/Makefile b/graphics/zathura-pdf-mupdf/Makefile index f142aee6ee21..477fcd99e9d3 100644 --- a/graphics/zathura-pdf-mupdf/Makefile +++ b/graphics/zathura-pdf-mupdf/Makefile @@ -1,39 +1,38 @@ PORTNAME= zathura-pdf-mupdf -DISTVERSION= 0.4.4 -PORTREVISION= 9 +DISTVERSION= 0.4.6 CATEGORIES= graphics MASTER_SITES= https://pwmt.org/projects/zathura-pdf-mupdf/download/ MAINTAINER= uzsolt@FreeBSD.org COMMENT= MuPDF render PDF plugin for Zathura PDF viewer WWW= https://pwmt.org/projects/zathura-pdf-mupdf/ LICENSE= ZLIB LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= appstream-util:devel/appstream-glib \ +BUILD_DEPENDS= appstreamcli:devel/appstream \ zathura:graphics/zathura LIB_DEPENDS= libfreetype.so:print/freetype2 \ libgirara-gtk3.so:x11-toolkits/girara \ libmupdf.so:graphics/mupdf RUN_DEPENDS= zathura:graphics/zathura USES= compiler:c++17-lang desktop-file-utils gnome jpeg localbase \ meson pkgconfig tar:xz USE_GNOME= cairo glib20 CONFLICTS_INSTALL= zathura-pdf-poppler #MESON_ARGS= -Dlink-external=true PLIST_FILES= lib/zathura/libpdf-mupdf.so \ share/applications/org.pwmt.zathura-pdf-mupdf.desktop \ share/metainfo/org.pwmt.zathura-pdf-mupdf.metainfo.xml post-patch: ${REINPLACE_CMD} "s@\(cc.find_library(.*\))@\1,dirs:'${PREFIX}/lib')@" \ ${WRKSRC}/meson.build ${REINPLACE_CMD} "s@join_paths(datadir, \ 'metainfo')@join_paths(datadir, 'appdata')@" ${WRKSRC}/meson.build .include diff --git a/graphics/zathura-pdf-mupdf/distinfo b/graphics/zathura-pdf-mupdf/distinfo index cb9b6dad78cd..e9ffaa055075 100644 --- a/graphics/zathura-pdf-mupdf/distinfo +++ b/graphics/zathura-pdf-mupdf/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1722857611 -SHA256 (zathura-pdf-mupdf-0.4.4.tar.xz) = 0125624901cabe3a2fe63315a46e7d966a323c028ff53890dfaf7856adb1f4fc -SIZE (zathura-pdf-mupdf-0.4.4.tar.xz) = 9512 +TIMESTAMP = 1761799782 +SHA256 (zathura-pdf-mupdf-0.4.6.tar.xz) = c43cddb5809cc87f0bf263999020cb17eeb9ce46e2ea4525eb0ad954ddfb17bb +SIZE (zathura-pdf-mupdf-0.4.6.tar.xz) = 10328 diff --git a/graphics/zathura-pdf-mupdf/files/patch-meson.build b/graphics/zathura-pdf-mupdf/files/patch-meson.build index 52af85b6f040..796828013b0b 100644 --- a/graphics/zathura-pdf-mupdf/files/patch-meson.build +++ b/graphics/zathura-pdf-mupdf/files/patch-meson.build @@ -1,58 +1,39 @@ ---- meson.build.orig 2024-08-04 08:34:58 UTC +--- meson.build.orig 2025-11-02 14:41:12 UTC +++ meson.build -@@ -22,8 +22,7 @@ cairo = dependency('cairo') +@@ -23,7 +23,7 @@ cairo = dependency('cairo') girara = dependency('girara-gtk3') glib = dependency('glib-2.0') cairo = dependency('cairo') -mupdf = dependency('mupdf', required: false, version: '>=@0@.@1@'.format(mupdf_required_version_major, mupdf_required_version_minor)) --mupdfthird = cc.find_library('mupdf-third') +mupdf = cc.find_library('mupdf') build_dependencies = [ zathura, -@@ -32,43 +31,19 @@ build_dependencies = [ +@@ -32,26 +32,7 @@ build_dependencies = [ cairo, ] -if not mupdf.found() - # normal build of mupdf - mupdf = cc.find_library('mupdf', has_headers: ['mupdf/fitz/version.h', 'mupdf/fitz.h', 'mupdf/pdf.h'], required: true) +- mupdfthird = cc.find_library('mupdf-third') - version_check = ''' -#include -+ build_dependencies += [mupdf] - +- -#if FZ_VERSION_MAJOR < @0@ || (FZ_VERSION_MAJOR == @0@ && FZ_VERSION_MINOR < @1@) -#error "mupdf @0@.@1@ or newer is requried" -#endif -'''.format(mupdf_required_version_major, mupdf_required_version_minor) - if not cc.compiles(version_check, dependencies: [mupdf]) - error('mupdf @0@.@1@ or newer is required'.format(mupdf_required_version_major, mupdf_required_version_minor)) - endif - - build_dependencies += [mupdf, mupdfthird] -else - # build from Debian's libmupdf-dev -- build_dependencies += [mupdf, mupdfthird] -- - libjpeg = dependency('libjpeg') - libjbig2dec = cc.find_library('jbig2dec') - libopenjp2 = dependency('libopenjp2') - gumbo = dependency('gumbo') -- tesseract = dependency('tesseract') -- leptonica = dependency('lept') -- mujs = dependency('mujs') - - build_dependencies += [ - libjpeg, - libjbig2dec, - libopenjp2, -- gumbo, -- tesseract, -- leptonica, -- mujs -+ gumbo - ] +- build_dependencies += [mupdf] -endif ++build_dependencies += [mupdf] if get_option('plugindir') == '' plugindir = zathura.get_variable(pkgconfig: 'plugindir') diff --git a/graphics/zathura-pdf-mupdf/pkg-descr b/graphics/zathura-pdf-mupdf/pkg-descr index b3a3afa07d16..3284b499ee4d 100644 --- a/graphics/zathura-pdf-mupdf/pkg-descr +++ b/graphics/zathura-pdf-mupdf/pkg-descr @@ -1 +1,3 @@ -Zathura plugin to view PDF using the MuPDF rendering engine. +zathura is a highly customizable and functional document viewer based on the +girara user interface library and several document libraries. This plugin for +zathura provides PDF support using the mupdf library.