Update print/zathura-pdf-mupdf to zathura-pdf-mupdf-0.3.1 Changes: - Compatible with mupdf 1.10 - Added flags for freetype, harfbuzz and zlib - Correctly use pdf_save_documentdiff -r1.10 -r1.11 pkgsrc/print/zathura-pdf-mupdf/Makefile
(leot)
@@ -1,18 +1,17 @@ | @@ -1,18 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.10 2017/01/01 16:06:35 adam Exp $ | 1 | # $NetBSD: Makefile,v 1.11 2017/01/31 10:12:02 leot Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= zathura-pdf-mupdf-0.3.0 | 4 | DISTNAME= zathura-pdf-mupdf-0.3.1 | |
5 | PKGREVISION= 7 | |||
6 | CATEGORIES= print | 5 | CATEGORIES= print | |
7 | MASTER_SITES= http://pwmt.org/projects/zathura/plugins/download/ | 6 | MASTER_SITES= http://pwmt.org/projects/zathura/plugins/download/ | |
8 | 7 | |||
9 | MAINTAINER= leot@NetBSD.org | 8 | MAINTAINER= leot@NetBSD.org | |
10 | HOMEPAGE= http://pwmt.org/projects/zathura-pdf-mupdf/ | 9 | HOMEPAGE= http://pwmt.org/projects/zathura-pdf-mupdf/ | |
11 | COMMENT= Add PDF support to zathura using mupdf rendering engine | 10 | COMMENT= Add PDF support to zathura using mupdf rendering engine | |
12 | LICENSE= zlib | 11 | LICENSE= zlib | |
13 | 12 | |||
14 | CONFLICTS+= zathura-pdf-poppler-[0-9]* | 13 | CONFLICTS+= zathura-pdf-poppler-[0-9]* | |
15 | 14 | |||
16 | USE_TOOLS+= pkg-config gmake | 15 | USE_TOOLS+= pkg-config gmake | |
17 | USE_LIBTOOL= yes | 16 | USE_LIBTOOL= yes | |
18 | 17 |
@@ -1,15 +1,7 @@ | @@ -1,15 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.4 2016/11/28 14:41:40 leot Exp $ | 1 | $NetBSD: distinfo,v 1.5 2017/01/31 10:12:02 leot Exp $ | |
2 | 2 | |||
3 | SHA1 (zathura-pdf-mupdf-0.3.0.tar.gz) = ae0be41ea7c75b8ddc083fe01f1366673ea9751a | 3 | SHA1 (zathura-pdf-mupdf-0.3.1.tar.gz) = ef37a181de96d6fca36db3ac818f790dcf3627ae | |
4 | RMD160 (zathura-pdf-mupdf-0.3.0.tar.gz) = 377e7848a5ea7f43f020e131aacc24c51453bf8f | 4 | RMD160 (zathura-pdf-mupdf-0.3.1.tar.gz) = 7497475ba55d2e7f96d23f378cbefeddd56089e4 | |
5 | SHA512 (zathura-pdf-mupdf-0.3.0.tar.gz) = c83eef453176c6317be338260e311c39e049b8ae1ae719445c6303725b4e993758ed3f3a61f0af31032d09f1f2f03574f862d24e36b27fa38732e0b6c7aa18ea | 5 | SHA512 (zathura-pdf-mupdf-0.3.1.tar.gz) = 87b5b8a750a6911be37a0195b0f4bc3304350f9d29173091b3eeece40350b10cb98b009b2722a69ae1e617b4242292f3eba17fea97d5276e485069180f2bd67d | |
6 | Size (zathura-pdf-mupdf-0.3.0.tar.gz) = 9914 bytes | 6 | Size (zathura-pdf-mupdf-0.3.1.tar.gz) = 9755 bytes | |
7 | SHA1 (patch-document.c) = ed5a34515767482b83c9cb3f3a20d1c492a80307 | 7 | SHA1 (patch-document.c) = b4695700ffc3a85667a292af059d0af58b3150f1 | |
8 | SHA1 (patch-image.c) = 15e60ede84c3b9a5f4d9b927bb5572c78a4409c3 | |||
9 | SHA1 (patch-index.c) = 8ec60bb5965abbc9d91be63305bf6b5a5244b30c | |||
10 | SHA1 (patch-links.c) = 9e133625f5c45a9dd490d15bd19ae3529999a990 | |||
11 | SHA1 (patch-page.c) = bc3bd7325f4005986182949c5e66b1ee3040431b | |||
12 | SHA1 (patch-plugin.h) = 8b12c096d265b397ae9f3a8aee7057a23dea3def | |||
13 | SHA1 (patch-render.c) = c65ec3d6e9622149d987798b69c680c886b7f970 | |||
14 | SHA1 (patch-search.c) = 1cbed6cc8a8cf672e6330bd2e91e0976f90bc352 | |||
15 | SHA1 (patch-utils.c) = 914ca7ea673be3bcb1a76661762ac7e343f57264 |
@@ -1,33 +1,15 @@ | @@ -1,33 +1,15 @@ | |||
1 | $NetBSD: patch-document.c,v 1.3 2016/11/28 14:41:40 leot Exp $ | 1 | $NetBSD: patch-document.c,v 1.4 2017/01/31 10:12:02 leot Exp $ | |
2 | 2 | |||
3 | o Correct the glib-2.0 include header file path. | 3 | Correct the glib-2.0 include header file path. | |
4 | o Update to mupdf-1.10 API | |||
5 | 4 | |||
6 | --- document.c.orig 2016-02-14 22:49:46.000000000 +0000 | 5 | --- document.c.orig 2017-01-11 21:21:14.000000000 +0000 | |
7 | +++ document.c | 6 | +++ document.c | |
8 | @@ -3,10 +3,9 @@ | 7 | @@ -5,7 +5,7 @@ | |
9 | #define _POSIX_C_SOURCE 1 | |||
10 | ||||
11 | #include <mupdf/fitz.h> | 8 | #include <mupdf/fitz.h> | |
12 | -#include <mupdf/xps.h> | |||
13 | #include <mupdf/pdf.h> | 9 | #include <mupdf/pdf.h> | |
14 | 10 | |||
15 | -#include <glib-2.0/glib.h> | 11 | -#include <glib-2.0/glib.h> | |
16 | +#include <glib.h> | 12 | +#include <glib.h> | |
17 | 13 | |||
18 | #include "plugin.h" | 14 | #include "plugin.h" | |
19 | 15 | |||
20 | @@ -109,12 +108,7 @@ pdf_document_save_as(zathura_document_t* | |||
21 | } | |||
22 | ||||
23 | fz_try (mupdf_document->ctx) { | |||
24 | - /* fz_write_document claims to accepts NULL as third argument but doesn't. | |||
25 | - * pdf_write_document does not check if the third arguments is NULL for some | |||
26 | - * options. */ | |||
27 | - | |||
28 | - fz_write_options opts = { 0 }; /* just use the default options */ | |||
29 | - fz_write_document(mupdf_document->ctx, mupdf_document->document, (char*) path, &opts); | |||
30 | + pdf_save_document(mupdf_document->ctx, pdf_specifics(mupdf_document->ctx, mupdf_document->document), (char*) path, NULL); | |||
31 | } fz_catch (mupdf_document->ctx) { | |||
32 | return ZATHURA_ERROR_UNKNOWN; | |||
33 | } |