pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/zathura-pdf-mupdf zathura-pdf-mupdf: Fix build w...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9c3573f736b2
branches:  trunk
changeset: 399142:9c3573f736b2
user:      leot <leot%pkgsrc.org@localhost>
date:      Sat Aug 03 14:48:48 2019 +0000

description:
zathura-pdf-mupdf: Fix build with mupdf-1.16.0

Backport upstream patch to fix the build with 1.16.0 and bump
BUILDLINK_API_DEPENDS.mupdf accordingly.

PKGREVISION++

diffstat:

 print/zathura-pdf-mupdf/Makefile                                 |   5 +-
 print/zathura-pdf-mupdf/distinfo                                 |   3 +-
 print/zathura-pdf-mupdf/patches/patch-zathura-pdf-mupdf_search.c |  17 ++++++++++
 3 files changed, 22 insertions(+), 3 deletions(-)

diffs (56 lines):

diff -r ada5d60b96bc -r 9c3573f736b2 print/zathura-pdf-mupdf/Makefile
--- a/print/zathura-pdf-mupdf/Makefile  Sat Aug 03 14:47:55 2019 +0000
+++ b/print/zathura-pdf-mupdf/Makefile  Sat Aug 03 14:48:48 2019 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.32 2019/07/21 22:25:39 wiz Exp $
+# $NetBSD: Makefile,v 1.33 2019/08/03 14:48:48 leot Exp $
 #
 
 DISTNAME=      zathura-pdf-mupdf-0.3.4
-PKGREVISION=   4
+PKGREVISION=   5
 CATEGORIES=    print
 MASTER_SITES=  https://pwmt.org/projects/zathura/plugins/download/
 EXTRACT_SUFX=  .tar.xz
@@ -21,6 +21,7 @@
 
 .include "../../devel/py-meson/build.mk"
 .include "../../graphics/cairo/buildlink3.mk"
+BUILDLINK_API_DEPENDS.mupdf+=  mupdf>=1.16.0
 .include "../../print/mupdf/buildlink3.mk"
 .include "../../print/zathura/buildlink3.mk"
 .include "../../sysutils/desktop-file-utils/desktopdb.mk"
diff -r ada5d60b96bc -r 9c3573f736b2 print/zathura-pdf-mupdf/distinfo
--- a/print/zathura-pdf-mupdf/distinfo  Sat Aug 03 14:47:55 2019 +0000
+++ b/print/zathura-pdf-mupdf/distinfo  Sat Aug 03 14:48:48 2019 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.9 2018/10/04 19:13:28 leot Exp $
+$NetBSD: distinfo,v 1.10 2019/08/03 14:48:48 leot Exp $
 
 SHA1 (zathura-pdf-mupdf-0.3.4.tar.xz) = f2adf855a67455f4dccd22c61dcf22cde4c5ae2a
 RMD160 (zathura-pdf-mupdf-0.3.4.tar.xz) = 0063ae456a6753954879edf68b85bb1c1ce613f2
 SHA512 (zathura-pdf-mupdf-0.3.4.tar.xz) = 8a885f1faa471d413f09bd6a78b86d419fe433139b2f811dcae9a9ea180beaf693ee8c11c7fe98ed7d5303520f6d9b3efd0d8e7edf978aa5099ef580db79166a
 Size (zathura-pdf-mupdf-0.3.4.tar.xz) = 8092 bytes
 SHA1 (patch-document.c) = ad929680aa1de6f21b71cabc06da9ba54491687a
+SHA1 (patch-zathura-pdf-mupdf_search.c) = 2f5b65fb9354eabc73cb1dacd0b469ece6998025
diff -r ada5d60b96bc -r 9c3573f736b2 print/zathura-pdf-mupdf/patches/patch-zathura-pdf-mupdf_search.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/zathura-pdf-mupdf/patches/patch-zathura-pdf-mupdf_search.c  Sat Aug 03 14:48:48 2019 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-zathura-pdf-mupdf_search.c,v 1.1 2019/08/03 14:48:48 leot Exp $
+
+Backport upstream commit 95c830c9 to fix the build with MuPDF 1.16.0:
+
+ <https://git.pwmt.org/pwmt/zathura-pdf-mupdf/commit/95c830c9f6cfe4ba99535ecfba0a700ceb15a25a>
+
+--- zathura-pdf-mupdf/search.c.orig    2018-10-04 17:33:46.000000000 +0000
++++ zathura-pdf-mupdf/search.c
+@@ -39,7 +39,7 @@ pdf_page_search_text(zathura_page_t* pag
+     mupdf_page_extract_text(mupdf_document, mupdf_page);
+   }
+ 
+-  fz_quad* hit_bbox = fz_malloc_array(mupdf_page->ctx, N_SEARCH_RESULTS, sizeof(fz_quad));
++  fz_quad* hit_bbox = fz_malloc_array(mupdf_page->ctx, N_SEARCH_RESULTS, fz_quad);
+   int num_results = fz_search_stext_page(mupdf_page->ctx, mupdf_page->text,
+       text, hit_bbox, N_SEARCH_RESULTS);
+ 



Home | Main Index | Thread Index | Old Index