git: 40511fbefbd8 - main - graphics/zathura-pdf-mupdf: Update to 0.3.8

From: Wen Heping <wen_at_FreeBSD.org>
Date: Sat, 26 Nov 2022 00:13:11 UTC
The branch main has been updated by wen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=40511fbefbd83168e749ba0ba28e4dbc4191e7eb

commit 40511fbefbd83168e749ba0ba28e4dbc4191e7eb
Author:     Wen Heping <wen@FreeBSD.org>
AuthorDate: 2022-11-26 00:11:50 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2022-11-26 00:11:50 +0000

    graphics/zathura-pdf-mupdf: Update to 0.3.8
    
    PR:             264938
    Reported by:    wen@
    Approved by:    maintainer
---
 graphics/zathura-pdf-mupdf/Makefile                       |  7 +++----
 graphics/zathura-pdf-mupdf/distinfo                       |  6 +++---
 .../files/patch-zathura-pdf-mupdf_index.c                 | 11 -----------
 .../files/patch-zathura-pdf-mupdf_links.c                 | 15 ---------------
 4 files changed, 6 insertions(+), 33 deletions(-)

diff --git a/graphics/zathura-pdf-mupdf/Makefile b/graphics/zathura-pdf-mupdf/Makefile
index df22bcb43915..741aa17e70f0 100644
--- a/graphics/zathura-pdf-mupdf/Makefile
+++ b/graphics/zathura-pdf-mupdf/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	zathura-pdf-mupdf
-DISTVERSION=	0.3.5
-PORTREVISION=	12
+DISTVERSION=	0.3.8
 CATEGORIES=	graphics
 MASTER_SITES=	https://git.pwmt.org/pwmt/${PORTNAME}/-/archive/${DISTVERSION}/ \
 		http://freebsd.uzsolt.hu/src/
@@ -22,10 +21,10 @@ LIB_DEPENDS=	libjbig2dec.so:graphics/jbig2dec \
 		libopenjp2.so:graphics/openjpeg
 
 USES=		compiler:c11 desktop-file-utils gnome jpeg \
-		meson pkgconfig tar:xz
+		meson pkgconfig
 USE_GNOME=	cairo gdkpixbuf2 glib20 gtk30
 
-MESON_ARGS=	-Dlink-external=true
+#MESON_ARGS=	-Dlink-external=true
 
 PLIST_FILES=	lib/zathura/libpdf-mupdf.so \
 		share/applications/org.pwmt.zathura-pdf-mupdf.desktop \
diff --git a/graphics/zathura-pdf-mupdf/distinfo b/graphics/zathura-pdf-mupdf/distinfo
index 512b91481284..4c6e88c50a10 100644
--- a/graphics/zathura-pdf-mupdf/distinfo
+++ b/graphics/zathura-pdf-mupdf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1565696783
-SHA256 (zathura-pdf-mupdf-0.3.5.tar.xz) = 18a63f7abaf9751c37f26a6ceee2d83738a5853fd42521fed69d32fecfd25cde
-SIZE (zathura-pdf-mupdf-0.3.5.tar.xz) = 8088
+TIMESTAMP = 1669420397
+SHA256 (zathura-pdf-mupdf-0.3.8.tar.gz) = ba19c187fc8a441dcfb4d793624eadaea99e0d320b1e33ca25dd62be2b68bcea
+SIZE (zathura-pdf-mupdf-0.3.8.tar.gz) = 9198
diff --git a/graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_index.c b/graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_index.c
deleted file mode 100644
index 576e4ea1afb4..000000000000
--- a/graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_index.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- zathura-pdf-mupdf/index.c.orig	2020-05-18 10:56:42 UTC
-+++ zathura-pdf-mupdf/index.c
-@@ -67,7 +67,7 @@ build_index(fz_context* ctx, fz_document* document, fz
- 
-       type                    = ZATHURA_LINK_GOTO_DEST;
-       target.destination_type = ZATHURA_LINK_DESTINATION_XYZ;
--      target.page_number      = fz_resolve_link(ctx, document, outline->uri, &x, &y);
-+      target.page_number      = fz_page_number_from_location(ctx, document, fz_resolve_link(ctx, document, outline->uri, &x, &y));
-       target.left  = x;
-       target.top   = y;
-       target.zoom  = 0.0;
diff --git a/graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_links.c b/graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_links.c
deleted file mode 100644
index 9f95b56ab1a7..000000000000
--- a/graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_links.c
+++ /dev/null
@@ -1,15 +0,0 @@
---- zathura-pdf-mupdf/links.c.orig	2020-05-18 11:05:39 UTC
-+++ zathura-pdf-mupdf/links.c
-@@ -56,8 +56,10 @@ pdf_page_links_get(zathura_page_t* page, void* data, z
- 
-       type                    = ZATHURA_LINK_GOTO_DEST;
-       target.destination_type = ZATHURA_LINK_DESTINATION_XYZ;
--      target.page_number      = fz_resolve_link(mupdf_document->ctx,
--          mupdf_document->document, link->uri, &x, &y);
-+      target.page_number      =
-+	      fz_page_number_from_location(mupdf_document->ctx,
-+			      mupdf_document->document, fz_resolve_link(mupdf_document->ctx,
-+          mupdf_document->document, link->uri, &x, &y));
-       target.left  = x;
-       target.top   = y;
-       target.zoom  = 0.0;