summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorleot <leot@pkgsrc.org>2019-12-12 14:35:55 +0000
committerleot <leot@pkgsrc.org>2019-12-12 14:35:55 +0000
commitcd0b77cdd24ae0664885a86413be78ab436a50ec (patch)
tree2f823c2044d5377e9d5a366e6a581147a0f2e199 /print
parentf64aac96e4b68156ef4156098d8be81c43436c4d (diff)
downloadpkgsrc-cd0b77cdd24ae0664885a86413be78ab436a50ec.tar.gz
mupdf: Fix pressing ` ' (space) on second to last page
When ` ' (space) was pressed on second to last page it did not advanced to the next page as it should. PKGREVISION++
Diffstat (limited to 'print')
-rw-r--r--print/mupdf/Makefile4
-rw-r--r--print/mupdf/distinfo3
-rw-r--r--print/mupdf/patches/patch-platform_x11_pdfapp.c20
3 files changed, 24 insertions, 3 deletions
diff --git a/print/mupdf/Makefile b/print/mupdf/Makefile
index 42696cc7976..9c8ee8dfb2c 100644
--- a/print/mupdf/Makefile
+++ b/print/mupdf/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.73 2019/09/23 12:17:04 nia Exp $
+# $NetBSD: Makefile,v 1.74 2019/12/12 14:35:55 leot Exp $
DISTNAME= mupdf-1.16.1-source
PKGNAME= ${DISTNAME:S/-source//}
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= print
MASTER_SITES= https://mupdf.com/downloads/archive/
diff --git a/print/mupdf/distinfo b/print/mupdf/distinfo
index 50e6e8d19d9..e299994be5e 100644
--- a/print/mupdf/distinfo
+++ b/print/mupdf/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.49 2019/09/23 12:17:04 nia Exp $
+$NetBSD: distinfo,v 1.50 2019/12/12 14:35:55 leot Exp $
SHA1 (mupdf-1.16.1-source.tar.gz) = ccbef63c3d43d6a866b7978db5674dc4b1719f0f
RMD160 (mupdf-1.16.1-source.tar.gz) = 4787d4699504cab9e3fee9884f1faaa410f805c9
@@ -10,5 +10,6 @@ SHA1 (patch-ac) = 97442b78e52e57b783d93771c6002702dda38e8f
SHA1 (patch-ae) = c6b113818b32cb4470e8549c00a16e0b2f364ede
SHA1 (patch-platform_gl_gl-app.h) = 09064acf631f5e850cd65cb51ab5315485fb4200
SHA1 (patch-platform_gl_gl-main.c) = edff1aa77c4d6af59b2eca442340606a0bae9970
+SHA1 (patch-platform_x11_pdfapp.c) = e731d1d99d21ecdfd6172d7b5ed5ba1be2ef6a75
SHA1 (patch-source_fitz_load-jpx.c) = 161d21bca13bb57db37807aec844c85dc5b34157
SHA1 (patch-thirdparty_mujs_Makefile) = 833e44f4e23d2a6ff61e6276feede4892feeb9bb
diff --git a/print/mupdf/patches/patch-platform_x11_pdfapp.c b/print/mupdf/patches/patch-platform_x11_pdfapp.c
new file mode 100644
index 00000000000..21d4c426ccc
--- /dev/null
+++ b/print/mupdf/patches/patch-platform_x11_pdfapp.c
@@ -0,0 +1,20 @@
+$NetBSD: patch-platform_x11_pdfapp.c,v 1.1 2019/12/12 14:35:55 leot Exp $
+
+Fix ` ' on the last page.
+
+When ` ' (space) is pressed on the second to last page it doesn't
+go to the last page. Adjust the check to DTRT.
+
+Also fixed upstream via commit 606fcf8383943d7f986d6706f1cb67fbdab0e224.
+
+--- platform/x11/pdfapp.c.orig 2019-08-02 14:49:26.000000000 +0000
++++ platform/x11/pdfapp.c
+@@ -1503,7 +1503,7 @@ void pdfapp_onkey(pdfapp_t *app, int c,
+ {
+ if (app->imgw + app->panx <= app->winw)
+ {
+- if (app->pageno + 1 < app->pagecount)
++ if (app->pageno + 1 <= app->pagecount)
+ {
+ app->panx = 0;
+ app->pany = 0;