aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorFernando ApesteguĂ­a <fernape@FreeBSD.org>2020-05-19 07:25:54 +0000
committerFernando ApesteguĂ­a <fernape@FreeBSD.org>2020-05-19 07:25:54 +0000
commit23b2a98cc69071016a2484ea4481b0ba2b43dcad (patch)
tree15bad2d812c915019194157b3d5a966c59f52d6e /graphics
parent63b29b0cc853831d0115a34c8cd0a18f0fd37dd4 (diff)
downloadports-23b2a98cc69071016a2484ea4481b0ba2b43dcad.tar.gz
ports-23b2a98cc69071016a2484ea4481b0ba2b43dcad.zip
Notes
Diffstat (limited to 'graphics')
-rw-r--r--graphics/mupdf/Makefile2
-rw-r--r--graphics/mupdf/distinfo6
-rw-r--r--graphics/mupdf/files/scroll_hack-platform__x11__pdfapp.c36
-rw-r--r--graphics/mupdf/pkg-plist1
-rw-r--r--graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_index.c11
-rw-r--r--graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_links.c15
6 files changed, 49 insertions, 22 deletions
diff --git a/graphics/mupdf/Makefile b/graphics/mupdf/Makefile
index 3639f201815b..29a29413abac 100644
--- a/graphics/mupdf/Makefile
+++ b/graphics/mupdf/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= mupdf
-DISTVERSION= 1.16.0
+DISTVERSION= 1.17.0
DISTVERSIONSUFFIX= -source
PORTEPOCH= 1
CATEGORIES= graphics
diff --git a/graphics/mupdf/distinfo b/graphics/mupdf/distinfo
index 1cf8ce5d86b9..ef34bf4e4cc2 100644
--- a/graphics/mupdf/distinfo
+++ b/graphics/mupdf/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1564598649
-SHA256 (mupdf-1.16.0-source.tar.gz) = 64d537895641b711737cc58fe762481b07ea71d1506e8bd8a13434e093b0068d
-SIZE (mupdf-1.16.0-source.tar.gz) = 60805124
+TIMESTAMP = 1589721586
+SHA256 (mupdf-1.17.0-source.tar.gz) = 00e33fa89cb42f1ef9e3bb73671b1cb6d210f5159bd68168fa5c89ceb24dd48e
+SIZE (mupdf-1.17.0-source.tar.gz) = 65510829
diff --git a/graphics/mupdf/files/scroll_hack-platform__x11__pdfapp.c b/graphics/mupdf/files/scroll_hack-platform__x11__pdfapp.c
index 0718938e474f..1acd9d523628 100644
--- a/graphics/mupdf/files/scroll_hack-platform__x11__pdfapp.c
+++ b/graphics/mupdf/files/scroll_hack-platform__x11__pdfapp.c
@@ -1,36 +1,36 @@
---- ./platform/x11/pdfapp.c.orig 2014-08-04 19:59:53.000000000 +0200
-+++ ./platform/x11/pdfapp.c 2014-08-04 20:03:46.000000000 +0200
-@@ -1166,6 +1166,8 @@
+--- ./platform/x11/pdfapp.c.orig 2020-05-05 04:29:09.000000000 -0700
++++ ./platform/x11/pdfapp.c 2020-05-17 08:47:00.137902000 -0700
+@@ -1462,6 +1462,8 @@
+
case 'j':
{
- int h = fz_pixmap_height(app->ctx, app->image);
-+ if ( (app->pany + h) <= app->winh )
-+ goto pagedown;
- if (h <= app->winh || app->pany <= app->winh - h)
++ if (app->pany + app->imgh <= app->winh)
++ goto pagedown;
+ if (app->imgh <= app->winh || app->pany <= app->winh - app->imgh)
{
panto = PAN_TO_TOP;
-@@ -1182,6 +1184,8 @@
+@@ -1477,6 +1479,8 @@
+
case 'k':
{
- int h = fz_pixmap_height(app->ctx, app->image);
-+ if (app->pany >= 0)
-+ goto pageup;
- if (h <= app->winh || app->pany == 0)
++ if (app->pany >= 0)
++ goto pageup;
+ if (app->imgh <= app->winh || app->pany == 0)
{
panto = PAN_TO_BOTTOM;
-@@ -1257,6 +1261,7 @@
+@@ -1550,6 +1554,7 @@
*/
case ',':
-+ pageup:
- panto = PAN_TO_BOTTOM;
++ pageup:
+ panto = DONT_PAN;
if (app->numberlen > 0)
app->pageno -= atoi(app->number);
-@@ -1265,6 +1270,7 @@
+@@ -1558,6 +1563,7 @@
break;
case '.':
-+ pagedown:
- panto = PAN_TO_TOP;
++ pagedown:
+ panto = DONT_PAN;
if (app->numberlen > 0)
app->pageno += atoi(app->number);
diff --git a/graphics/mupdf/pkg-plist b/graphics/mupdf/pkg-plist
index 9d5736f3ab17..fda6879d2757 100644
--- a/graphics/mupdf/pkg-plist
+++ b/graphics/mupdf/pkg-plist
@@ -26,6 +26,7 @@ include/mupdf/fitz/glyph.h
include/mupdf/fitz/hash.h
include/mupdf/fitz/image.h
include/mupdf/fitz/link.h
+include/mupdf/fitz/log.h
include/mupdf/fitz/outline.h
include/mupdf/fitz/output-svg.h
include/mupdf/fitz/output.h
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
new file mode 100644
index 000000000000..576e4ea1afb4
--- /dev/null
+++ b/graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_index.c
@@ -0,0 +1,11 @@
+--- 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
new file mode 100644
index 000000000000..9f95b56ab1a7
--- /dev/null
+++ b/graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_links.c
@@ -0,0 +1,15 @@
+--- 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;