diff options
Diffstat (limited to 'app-text/zathura-pdf-mupdf')
-rw-r--r-- | app-text/zathura-pdf-mupdf/Manifest | 5 | ||||
-rw-r--r-- | app-text/zathura-pdf-mupdf/files/0.3.5-fz_location.patch | 44 | ||||
-rw-r--r-- | app-text/zathura-pdf-mupdf/metadata.xml | 5 | ||||
-rw-r--r-- | app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.3.5.ebuild | 6 |
4 files changed, 53 insertions, 7 deletions
diff --git a/app-text/zathura-pdf-mupdf/Manifest b/app-text/zathura-pdf-mupdf/Manifest index 3f40d5c19ccc..26278a7a6776 100644 --- a/app-text/zathura-pdf-mupdf/Manifest +++ b/app-text/zathura-pdf-mupdf/Manifest @@ -1,5 +1,6 @@ AUX 0.3.5-compile-fix.patch 518 BLAKE2B e1e52be08b27459d2125fb44b1767c1f381ce13dfecae02b83afb6bc09db00c145f2b557db0c1515a383ea223eb51c68fdfa32d3effea334c5cddb9af5209ed5 SHA512 7af34317726849aa0eb49b7d7449c23cea1208a72ec1f872bf218b3be9c9b84bb8668523ef8ca0bee9fcdcffa44ba9599ba43f79c88bc3e8811597a91868a1c6 +AUX 0.3.5-fz_location.patch 1710 BLAKE2B fc6a13a495f3121466da5553c044d7de31c9a1c37984cc36b219d32aa2d9cfefb894f9f8225a5d93e96bbe4c25a6a4d76c2e24da24c583273bddf7efd4de4436 SHA512 fbab10cff2bc28da23effa17f05e17ef332b4ace23e7c995e1bfd6126f5dba66bb825ead78e91b70549e41c60ca089c64ba4961f2bc0d509c4e5bd6fa2b169e4 DIST zathura-pdf-mupdf-0.3.5.tar.gz 8901 BLAKE2B 63595d6a4b305d8cd09eced1cfa3840a5ab3d37a61c42738603691621f1f1dbdfc31d5963b14c7af32f8c504f2470bf1cadb708fefbfd49fb25b2848b2564153 SHA512 1f7a748fee74296a008cef42c8f2e443409c77e16caa8441f74136260aaac7dee4d3c03e8a88532c45a0f9972e1b4965d4cffd488a00123d4d8cee9bcec2cf30 -EBUILD zathura-pdf-mupdf-0.3.5.ebuild 1014 BLAKE2B 7c9c4cbba3522ac96b552bdcc0162e333a213ab4de6f38490af6413d215fb6fd5b714ad804aad9f50aa6ed9ac6a8652bb8fb08926798420b521e2f63236ba712 SHA512 e879efacb15818bf3ca0a7bb0423adda5dabdc1f5354b42ed0d594554cf30c0edbe119aa48192ecdb4b673c46177c4f9272396b3cd17589f33d957eade8f71e0 +EBUILD zathura-pdf-mupdf-0.3.5.ebuild 1112 BLAKE2B 12620e265b0ce055f23ce2562faa958dcc9d5796fda2a9614e54e59567281fe8e77d7fb484ae6feae4b5602fa0481d62766c1df4ef0209e9e961ed62c6537ca7 SHA512 98db4e1cc241b331a76d6b357b837f54a5edc0ed2dc7a03afb6668c9ee611888f94e5ac4e0ad3b637dd28886ee9c66b5daaf956b9a1bf0b33650fd3abc3d178f EBUILD zathura-pdf-mupdf-9999.ebuild 809 BLAKE2B 848d3a8bd80d7b253fa42f2fa352946cc4f6d6a3da0568f230ee504c6c46c58470fb228e75142313769ddf86cbeadd674a978d70e56b713aadc9f4aa7873c9dd SHA512 b928e7582cd71e4135bc0967f3eea887e9657b41baf83c5b0995580fbac13ef4bc12583029e346b99a15b9a6de99733232f67954033cc6326c1562af9ca92766 -MISC metadata.xml 672 BLAKE2B 539ab88c5ef3fe3ad7ca25d9856bcf6a7755e09c479631c1cbdd835aeb398d2f6052af0980afc35771312397b6858fca2271f5aa8ee64fa8a57130f05b7594ee SHA512 288bfcdc265543b1d5d364af4fe0c6dbdeec0f30019b683ef0bf32619d87ada509cce47c141aac08cf0942f7ad74d1a453e6b5303175ea591e2f661ba044882a +MISC metadata.xml 592 BLAKE2B 1159f04d19816c03115b8b2fd20ddbee3c420ffbd6276c9c48b80b4e6d43377354ae935d01c0ae7b3d81f8fc1f7b0f0928ee72ddcac6826c2775efd109b33e32 SHA512 449cce725a42bb2f05746e9af3e474547e83b4f7d25357b948ab8f24a9a6182dbd627a8cfa66b4385e396cfe3bc7e9dcadb9a6672eef354b49eb229e89640de8 diff --git a/app-text/zathura-pdf-mupdf/files/0.3.5-fz_location.patch b/app-text/zathura-pdf-mupdf/files/0.3.5-fz_location.patch new file mode 100644 index 000000000000..03c0bf24aab5 --- /dev/null +++ b/app-text/zathura-pdf-mupdf/files/0.3.5-fz_location.patch @@ -0,0 +1,44 @@ +From c2dd7835b63ff68c0edc8a3182b3f994dc6ab4dd Mon Sep 17 00:00:00 2001
+From: a <a@a.com>
+Date: Sun, 16 Aug 2020 19:46:11 +0300
+Subject: [PATCH] fix conversion from 'fz_location' to 'unsigned int'
+
+---
+ zathura-pdf-mupdf/index.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/zathura-pdf-mupdf/index.c b/zathura-pdf-mupdf/index.c
+index c421f5c..996d012 100644
+--- a/zathura-pdf-mupdf/index.c
++++ b/zathura-pdf-mupdf/index.c
+@@ -67,7 +67,7 @@ build_index(fz_context* ctx, fz_document* document, fz_outline* outline, girara_
+
+ 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_resolve_link(ctx, document, outline->uri, &x, &y).page;
+ target.left = x;
+ target.top = y;
+ target.zoom = 0.0;
+--
+
+---
+ zathura-pdf-mupdf/links.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/zathura-pdf-mupdf/links.c b/zathura-pdf-mupdf/links.c
+index 99c5715..2e8e90a 100644
+--- a/zathura-pdf-mupdf/links.c
++++ b/zathura-pdf-mupdf/links.c
+@@ -57,7 +57,7 @@ pdf_page_links_get(zathura_page_t* page, void* data, zathura_error_t* error)
+ 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);
++ mupdf_document->document, link->uri, &x, &y).page;
+ target.left = x;
+ target.top = y;
+ target.zoom = 0.0;
+--
+2.28.0
+
diff --git a/app-text/zathura-pdf-mupdf/metadata.xml b/app-text/zathura-pdf-mupdf/metadata.xml index a4adf124756a..8557cb82e322 100644 --- a/app-text/zathura-pdf-mupdf/metadata.xml +++ b/app-text/zathura-pdf-mupdf/metadata.xml @@ -1,10 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <maintainer type="person"> - <name>Mikle Kolyada</name> - <email>zlogene@gentoo.org</email> - </maintainer> + <!-- maintainer-needed --> <upstream> <maintainer status="active"> <email>mlq@pwmt.org</email> diff --git a/app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.3.5.ebuild b/app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.3.5.ebuild index b1b7975e9616..965f6f84b38a 100644 --- a/app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.3.5.ebuild +++ b/app-text/zathura-pdf-mupdf/zathura-pdf-mupdf-0.3.5.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -40,6 +40,10 @@ src_prepare() { eapply "${FILESDIR}"/${PV}-compile-fix.patch fi + if has_version '=app-text/mupdf-1.17*'; then + eapply "${FILESDIR}"/${PV}-fz_location.patch + fi + default } |