From 22bc8c02eeee9c37239a66d01ec59a17c41c0fe3 Mon Sep 17 00:00:00 2001
From: Zsolt Udvari <uzsolt@uzsolt.hu>
Date: Thu, 7 Dec 2023 09:25:08 +0100
Subject: [PATCH] graphics/zathura-pdf-mupdf: update version 0.4.1

Introduce USE_GITLAB and releated variables (and remove MASTER_SITES).
Remove unneeded dependenceies.

Changelog:
* fix handling of links
---
 graphics/zathura-pdf-mupdf/Makefile | 15 ++++++---------
 graphics/zathura-pdf-mupdf/distinfo |  6 +++---
 2 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/graphics/zathura-pdf-mupdf/Makefile b/graphics/zathura-pdf-mupdf/Makefile
index 2464c04ea..13d9a888c 100644
--- a/graphics/zathura-pdf-mupdf/Makefile
+++ b/graphics/zathura-pdf-mupdf/Makefile
@@ -1,9 +1,6 @@
 PORTNAME=	zathura-pdf-mupdf
-DISTVERSION=	0.4.0
-PORTREVISION=	2
+DISTVERSION=	0.4.1
 CATEGORIES=	graphics
-MASTER_SITES=	https://git.pwmt.org/pwmt/${PORTNAME}/-/archive/${DISTVERSION}/ \
-		http://freebsd.uzsolt.hu/src/
 
 MAINTAINER=	uzsolt@uzsolt.hu
 COMMENT=	MuPDF render PDF plugin for Zathura PDF viewer
@@ -15,15 +12,15 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 BUILD_DEPENDS=	zathura:graphics/zathura
 LIB_DEPENDS=	libfreetype.so:print/freetype2 \
 		libgirara-gtk3.so:x11-toolkits/girara \
-		libharfbuzz.so:print/harfbuzz \
-		libjbig2dec.so:graphics/jbig2dec \
-		libmupdf.so:graphics/mupdf \
-		libopenjp2.so:graphics/openjpeg
+		libmupdf.so:graphics/mupdf
 RUN_DEPENDS=	zathura:graphics/zathura
 
 USES=		compiler:c11 desktop-file-utils gnome jpeg meson pkgconfig
-USE_GNOME=	cairo gdkpixbuf2 glib20 gtk30
+USE_GNOME=	cairo glib20
 USE_LDCONFIG=	${PREFIX}/lib/zathura
+USE_GITLAB=	yes
+GL_SITE=	https://git.pwmt.org/
+GL_ACCOUNT=	pwmt
 
 CONFLICTS_INSTALL=	zathura-pdf-poppler
 
diff --git a/graphics/zathura-pdf-mupdf/distinfo b/graphics/zathura-pdf-mupdf/distinfo
index 380a3e71f..afb5e786b 100644
--- a/graphics/zathura-pdf-mupdf/distinfo
+++ b/graphics/zathura-pdf-mupdf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1671087133
-SHA256 (zathura-pdf-mupdf-0.4.0.tar.gz) = 60663e9aad4b639f86fc4e54614361a653a48dcf257499a98cb050ed19a70af8
-SIZE (zathura-pdf-mupdf-0.4.0.tar.gz) = 9323
+TIMESTAMP = 1701810692
+SHA256 (zathura-pdf-mupdf-0.4.1.tar.bz2) = ac21bb898b415a69ace2099f243b28905e7196f0edaae2cecba5a04568f20e0d
+SIZE (zathura-pdf-mupdf-0.4.1.tar.bz2) = 8815
-- 
2.42.0

