FreeBSD Bugzilla – Attachment 234980 Details for
Bug 264938
graphics/zathura-pdf-mupdf: Update to 0.3.8
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Update to 0.3.8
zathura-0.3.8.diff.txt (text/plain), 4.10 KB, created by
Wen Heping
on 2022-06-28 10:01:30 UTC
(
hide
)
Description:
Update to 0.3.8
Filename:
MIME Type:
Creator:
Wen Heping
Created:
2022-06-28 10:01:30 UTC
Size:
4.10 KB
patch
obsolete
>diff --git a/graphics/zathura-pdf-mupdf/Makefile b/graphics/zathura-pdf-mupdf/Makefile >index 88c4c81fc9..0d041f1727 100644 >--- a/graphics/zathura-pdf-mupdf/Makefile >+++ b/graphics/zathura-pdf-mupdf/Makefile >@@ -1,8 +1,7 @@ > # Created by: Zsolt Udvari <udvzsolt@gmail.com> > > PORTNAME= zathura-pdf-mupdf >-DISTVERSION= 0.3.5 >-PORTREVISION= 12 >+DISTVERSION= 0.3.8 > CATEGORIES= graphics > MASTER_SITES= https://git.pwmt.org/pwmt/${PORTNAME}/-/archive/${DISTVERSION}/ \ > http://freebsd.uzsolt.hu/src/ >@@ -23,10 +22,10 @@ LIB_DEPENDS= libjbig2dec.so:graphics/jbig2dec \ > libopenjp2.so:graphics/openjpeg > > USES= compiler:c11 desktop-file-utils gnome jpeg \ >- meson pkgconfig tar:xz >+ meson pkgconfig > USE_GNOME= cairo gdkpixbuf2 glib20 gtk30 > >-MESON_ARGS= -Dlink-external=true >+#MESON_ARGS= -Dlink-external=true > > PLIST_FILES= lib/zathura/libpdf-mupdf.so \ > share/applications/org.pwmt.zathura-pdf-mupdf.desktop \ >diff --git a/graphics/zathura-pdf-mupdf/distinfo b/graphics/zathura-pdf-mupdf/distinfo >index 512b914812..c608298189 100644 >--- a/graphics/zathura-pdf-mupdf/distinfo >+++ b/graphics/zathura-pdf-mupdf/distinfo >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1565696783 >-SHA256 (zathura-pdf-mupdf-0.3.5.tar.xz) = 18a63f7abaf9751c37f26a6ceee2d83738a5853fd42521fed69d32fecfd25cde >-SIZE (zathura-pdf-mupdf-0.3.5.tar.xz) = 8088 >+TIMESTAMP = 1656384859 >+SHA256 (zathura-pdf-mupdf-0.3.8.tar.gz) = ba19c187fc8a441dcfb4d793624eadaea99e0d320b1e33ca25dd62be2b68bcea >+SIZE (zathura-pdf-mupdf-0.3.8.tar.gz) = 9198 >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 >deleted file mode 100644 >index 576e4ea1af..0000000000 >--- a/graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_index.c >+++ /dev/null >@@ -1,11 +0,0 @@ >---- 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 >deleted file mode 100644 >index 9f95b56ab1..0000000000 >--- a/graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_links.c >+++ /dev/null >@@ -1,15 +0,0 @@ >---- 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; >diff --git a/graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_search.c b/graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_search.c >new file mode 100644 >index 0000000000..6f57bf56ab >--- /dev/null >+++ b/graphics/zathura-pdf-mupdf/files/patch-zathura-pdf-mupdf_search.c >@@ -0,0 +1,11 @@ >+--- zathura-pdf-mupdf/search.c.orig 2022-06-28 02:59:03 UTC >++++ zathura-pdf-mupdf/search.c >+@@ -41,7 +41,7 @@ pdf_page_search_text(zathura_page_t* page, void* data, >+ >+ 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); >++ text, NULL, hit_bbox, N_SEARCH_RESULTS); >+ >+ fz_rect r; >+ for (int i = 0; i < num_results; i++) {
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 Raw
Actions:
View
Attachments on
bug 264938
: 234980