Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (cf8808817db0f1a2ca872c180d33dbf19e4eb15e)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Pavel Vinogradov <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (cf8808817db0f1a2ca872c180d33dbf19e4eb15e)
  • Date: Wed, 24 Jul 2019 17:41:20 +0000

GIT changes to master grimoire by Pavel Vinogradov <public AT sourcemage.org>:

doc/zathura-pdf-mupdf/HISTORY | 3 +++
doc/zathura-pdf-mupdf/PRE_BUILD | 8 ++++++++
doc/zathura-pdf-mupdf/patches/search.patch | 12 ++++++++++++
3 files changed, 23 insertions(+)

New commits:
commit cf8808817db0f1a2ca872c180d33dbf19e4eb15e
Author: Pavel Vinogradov <public AT sourcemage.org>
Commit: Pavel Vinogradov <public AT sourcemage.org>

doc/zathura-pdf-mupdf: fixed building with mupdf >= 1.16.x

diff --git a/doc/zathura-pdf-mupdf/HISTORY b/doc/zathura-pdf-mupdf/HISTORY
index 9f8119d..45e8a82 100644
--- a/doc/zathura-pdf-mupdf/HISTORY
+++ b/doc/zathura-pdf-mupdf/HISTORY
@@ -1,3 +1,6 @@
+2019-07-24 Pavel Vinogradov <public AT sourcemage.org>
+ * PRE_BUILD, patches/search.patch: added to build with mupdf >= 1.16.x
+
2018-10-07 Pavel Vinogradov <public AT sourcemage.org>
* DETAILS: version 0.3.4
* PRE_BUILD, patches/mupdf-1.14.0.patch: removed, fixed by upstream
diff --git a/doc/zathura-pdf-mupdf/PRE_BUILD b/doc/zathura-pdf-mupdf/PRE_BUILD
new file mode 100755
index 0000000..7afd156
--- /dev/null
+++ b/doc/zathura-pdf-mupdf/PRE_BUILD
@@ -0,0 +1,8 @@
+default_pre_build &&
+cd "${SOURCE_DIRECTORY}" &&
+
+# for MyPDF >= 1.16.x
+local MUPDF_BRANCH="$(installed_version mupdf | cut -d. -f1,2)" &&
+if is_version_less "1.15" "${MUPDF_BRANCH}"; then
+ apply_patch_dir patches
+fi
diff --git a/doc/zathura-pdf-mupdf/patches/search.patch
b/doc/zathura-pdf-mupdf/patches/search.patch
new file mode 100644
index 0000000..1c0f7b5
--- /dev/null
+++ b/doc/zathura-pdf-mupdf/patches/search.patch
@@ -0,0 +1,12 @@
+diff --git a/zathura-pdf-mupdf/search.c b/zathura-pdf-mupdf/search.c
+--- a/zathura-pdf-mupdf/search.c
++++ b/zathura-pdf-mupdf/search.c
+@@ -39,7 +39,7 @@
+ mupdf_page_extract_text(mupdf_document, mupdf_page);
+ }
+
+- fz_quad* hit_bbox = fz_malloc_array(mupdf_page->ctx, N_SEARCH_RESULTS,
sizeof(fz_quad));
++ 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);
+



  • [SM-Commit] GIT changes to master grimoire by Pavel Vinogradov (cf8808817db0f1a2ca872c180d33dbf19e4eb15e), Pavel Vinogradov, 07/24/2019

Archive powered by MHonArc 2.6.24.

Top of Page