FreeBSD Bugzilla – Attachment 155797 Details for
Bug 199576
[maintainer patch] graphics/mupdf update to 1.7
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
mupdf-1.7,1.diff (text/plain), 4.02 KB, created by
Zsolt Udvari
on 2015-04-21 11:30:38 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Zsolt Udvari
Created:
2015-04-21 11:30:38 UTC
Size:
4.02 KB
patch
obsolete
>diff -urN mupdf.orig/Makefile mupdf/Makefile >--- mupdf.orig/Makefile 2015-04-21 12:50:15.000000000 +0200 >+++ mupdf/Makefile 2015-04-21 12:50:53.000000000 +0200 >@@ -2,7 +2,7 @@ > # $FreeBSD: head/graphics/mupdf/Makefile 370949 2014-10-15 19:48:22Z amdmi3 $ > > PORTNAME= mupdf >-PORTVERSION= 1.6 >+PORTVERSION= 1.7 > PORTEPOCH= 1 > CATEGORIES= graphics > MASTER_SITES= GOOGLE_CODE \ >diff -urN mupdf.orig/distinfo mupdf/distinfo >--- mupdf.orig/distinfo 2015-04-21 12:50:15.000000000 +0200 >+++ mupdf/distinfo 2015-04-21 12:50:53.000000000 +0200 >@@ -1,2 +1,2 @@ >-SHA256 (mupdf-1.6-source.tar.gz) = 9813ee330950a641364181649ebd369c947adbcea9d41ed953ec5365640ea563 >-SIZE (mupdf-1.6-source.tar.gz) = 13975531 >+SHA256 (mupdf-1.7-source.tar.gz) = d0bd5c656c464411cb5788c73d5a7c9a5b89f1e9e84e3c8c7c982ed8b90f5642 >+SIZE (mupdf-1.7-source.tar.gz) = 13301969 >diff -urN mupdf.orig/files/patch-platform__x11__x11_main.c mupdf/files/patch-platform__x11__x11_main.c >--- mupdf.orig/files/patch-platform__x11__x11_main.c 2015-04-21 12:50:15.000000000 +0200 >+++ mupdf/files/patch-platform__x11__x11_main.c 1970-01-01 01:00:00.000000000 +0100 >@@ -1,27 +0,0 @@ >---- ./platform/x11/x11_main.c.orig 2014-06-10 17:09:28.000000000 +0200 >-+++ ./platform/x11/x11_main.c 2014-08-04 18:51:44.000000000 +0200 >-@@ -794,6 +794,24 @@ >- exit(1); >- } >- >-+/* reference: >-+ * http://stackoverflow.com/questions/2621439/how-to-get-screen-dpi-linux-mac-programatically >-+ */ >-+int get_dpi(void) >-+{ >-+ Display *xdpy; >-+ int xscr; >-+ int x = 0; >-+ >-+ if ((xdpy = XOpenDisplay(NULL))) { >-+ xscr = DefaultScreen(xdpy); >-+ x = (int) (DisplayWidth(xdpy, xscr) * 25.4 / >-+ DisplayWidthMM(xdpy, xscr) + 0.5); >-+ XCloseDisplay(xdpy); >-+ } >-+ return x; >-+} >-+ >- int main(int argc, char **argv) >- { >- int c; >diff -urN mupdf.orig/files/scroll_hack-platform__x11__pdfapp.c mupdf/files/scroll_hack-platform__x11__pdfapp.c >--- mupdf.orig/files/scroll_hack-platform__x11__pdfapp.c 2015-04-21 12:50:15.000000000 +0200 >+++ mupdf/files/scroll_hack-platform__x11__pdfapp.c 2015-04-21 12:50:53.000000000 +0200 >@@ -34,16 +34,4 @@ > panto = PAN_TO_TOP; > if (app->numberlen > 0) > app->pageno += atoi(app->number); >-@@ -1585,6 +1591,12 @@ >- int isx = (modifiers & (1<<0)); >- int xstep = isx ? 20 * dir : 0; >- int ystep = !isx ? 20 * dir : 0; >-+ if (!isx && dir < 0 && app->pany + >-+ fz_pixmap_height(app->ctx, app->image) <= app->winh) >-+ pdfapp_onkey(app, 'j'); >-+ else if (!isx && dir > 0 && app->pany >= 0) >-+ pdfapp_onkey(app, 'k'); >-+ else >- pdfapp_panview(app, app->panx + xstep, app->pany + ystep); >- } >- } >+ >diff -urN mupdf.orig/pkg-plist mupdf/pkg-plist >--- mupdf.orig/pkg-plist 2015-04-21 12:50:15.000000000 +0200 >+++ mupdf/pkg-plist 2015-04-21 12:50:53.000000000 +0200 >@@ -3,7 +3,6 @@ > bin/mupdf > bin/mupdf-x11-curl > bin/mutool >-include/mupdf/cbz.h > include/mupdf/fitz.h > include/mupdf/fitz/annotation.h > include/mupdf/fitz/bitmap.h >@@ -25,7 +24,6 @@ > include/mupdf/fitz/image.h > include/mupdf/fitz/link.h > include/mupdf/fitz/math.h >-include/mupdf/fitz/meta.h > include/mupdf/fitz/outline.h > include/mupdf/fitz/output-pcl.h > include/mupdf/fitz/output-png.h >@@ -45,22 +43,26 @@ > include/mupdf/fitz/text.h > include/mupdf/fitz/transition.h > include/mupdf/fitz/tree.h >+include/mupdf/fitz/unzip.h > include/mupdf/fitz/version.h > include/mupdf/fitz/write-document.h > include/mupdf/fitz/xml.h >-include/mupdf/img.h >+include/mupdf/html.h > include/mupdf/memento.h > include/mupdf/pdf.h > include/mupdf/pdf-tools.h > include/mupdf/pdf/annot.h > include/mupdf/pdf/appearance.h >+include/mupdf/pdf/clean.h > include/mupdf/pdf/cmap.h > include/mupdf/pdf/crypt.h > include/mupdf/pdf/document.h > include/mupdf/pdf/event.h > include/mupdf/pdf/field.h > include/mupdf/pdf/font.h >+include/mupdf/pdf/interpret.h > include/mupdf/pdf/javascript.h >+include/mupdf/pdf/name-table.h > include/mupdf/pdf/object.h > include/mupdf/pdf/output-pdf.h > include/mupdf/pdf/page.h >@@ -68,7 +70,6 @@ > include/mupdf/pdf/resource.h > include/mupdf/pdf/widget.h > include/mupdf/pdf/xref.h >-include/mupdf/tiff.h > include/mupdf/xps.h > lib/libmupdf.a > lib/libmupdf_pic.a
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 199576
:
155797
|
155834