View | Details | Raw Unified | Return to bug 210398 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-3 / +5 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	zathura-pdf-mupdf
4
PORTNAME=	zathura-pdf-mupdf
5
PORTVERSION=	0.3.0
5
PORTVERSION=	0.3.0
6
PORTREVISION=	1
6
CATEGORIES=	graphics
7
CATEGORIES=	graphics
7
MASTER_SITES=	http://pwmt.org/projects/zathura-pdf-mupdf/download/
8
MASTER_SITES=	http://pwmt.org/projects/zathura-pdf-mupdf/download/
8
9
Lines 16-29 Link Here
16
		mupdf>=1.8,1:graphics/mupdf
17
		mupdf>=1.8,1:graphics/mupdf
17
RUN_DEPENDS=	zathura:graphics/zathura
18
RUN_DEPENDS=	zathura:graphics/zathura
18
LIB_DEPENDS=	libjbig2dec.so:graphics/jbig2dec \
19
LIB_DEPENDS=	libjbig2dec.so:graphics/jbig2dec \
19
		libopenjp2.so:graphics/openjpeg
20
		libopenjp2.so:graphics/openjpeg \
21
		libgirara-gtk3.so:x11-toolkits/girara
20
22
21
PLIST_FILES=	lib/zathura/pdf.so share/applications/zathura-pdf-mupdf.desktop
23
PLIST_FILES=	lib/zathura/pdf.so share/applications/zathura-pdf-mupdf.desktop
22
24
23
MAKE_ARGS=	MUPDF_LIB=-lmupdf_pic OPENSSL_INC=-I${OPENSSLINC} \
25
MAKE_ARGS=	MUPDF_LIB=-lmupdf_pic OPENSSL_INC=-I${OPENSSLINC} \
24
		OPENSSL_LIB="-L${OPENSSLLIB} -lcrypto"
26
		OPENSSL_LIB="-L${OPENSSLLIB} -lcrypto"
25
USES=		compiler:c11 desktop-file-utils gmake pkgconfig
27
USES=		compiler:c11 desktop-file-utils gmake gettext jpeg pkgconfig
26
USE_GNOME=	glib20 gtk30
28
USE_GNOME=	cairo gdkpixbuf2 glib20 gtk30
27
USE_OPENSSL=	yes
29
USE_OPENSSL=	yes
28
30
29
CONFLICTS_INSTALL=	zathura-pdf-poppler-[0-9]*
31
CONFLICTS_INSTALL=	zathura-pdf-poppler-[0-9]*
(-)files/patch-document.c (+11 lines)
Line 0 Link Here
1
--- document.c.orig	2016-06-23 07:20:41 UTC
2
+++ document.c
3
@@ -113,7 +113,7 @@ pdf_document_save_as(zathura_document_t*
4
      * pdf_write_document does not check if the third arguments is NULL for some
5
      * options. */
6
 
7
-    fz_write_options opts = { 0 }; /* just use the default options */
8
+    pdf_write_options opts = { 0 }; /* just use the default options */
9
     fz_write_document(mupdf_document->ctx, mupdf_document->document, (char*) path, &opts);
10
   } fz_catch (mupdf_document->ctx) {
11
     return ZATHURA_ERROR_UNKNOWN;
(-)files/patch-plugin.h (+13 lines)
Line 0 Link Here
1
--- plugin.h.orig	2016-02-14 22:49:46 UTC
2
+++ plugin.h
3
@@ -21,8 +21,8 @@ typedef struct mupdf_page_s
4
 {
5
   fz_page* page; /**< Reference to the mupdf page */
6
   fz_context* ctx; /**< Context */
7
-  fz_text_sheet* sheet; /**< Text sheet */
8
-  fz_text_page* text; /**< Page text */
9
+  fz_stext_sheet* sheet; /**< Text sheet */
10
+  fz_stext_page* text; /**< Page text */
11
   fz_rect bbox; /**< Bbox */
12
   bool extracted_text; /**< If text has already been extracted */
13
 } mupdf_page_t;

Return to bug 210398