diff options
Diffstat (limited to 'kde-apps/kitinerary')
-rw-r--r-- | kde-apps/kitinerary/Manifest | 3 | ||||
-rw-r--r-- | kde-apps/kitinerary/files/kitinerary-18.08.3-poppler-0.72.patch | 68 | ||||
-rw-r--r-- | kde-apps/kitinerary/kitinerary-18.08.3.ebuild | 4 |
3 files changed, 73 insertions, 2 deletions
diff --git a/kde-apps/kitinerary/Manifest b/kde-apps/kitinerary/Manifest index 407bc6dda983..b3e7972beb7b 100644 --- a/kde-apps/kitinerary/Manifest +++ b/kde-apps/kitinerary/Manifest @@ -1,5 +1,6 @@ +AUX kitinerary-18.08.3-poppler-0.72.patch 2495 BLAKE2B 30c9cd8492f05a1dfc00b0179914bc714049e6ea87bdf684a91d076fd150aa75db509d5157f4b41c776afea44eb13988eff1e00ee172cf22c329decd00dcde0e SHA512 55e7de7b24960a6fc74ddfad205ab69a4bd124d5eca926a6c301686da0f57eec25f15ff4be31e9c133d1bcd981077864630bff0222aded33591518e0ca985db1 DIST kitinerary-18.08.3.tar.xz 622380 BLAKE2B 55213b5897abd8a8cbe763116cfddb3a498e8cbe1edc4a50fe073da193d97fe6a872c3dc5843e3b15e0d23cba5aa57be4118c2ec554a1b2f43c2bb3b8b121bc1 SHA512 d2fec91f292a143f96096a6642764599198a6055c44f63b3706bbb6428bab919c507ab6a4a2211faf6e57480ed8d6e6ff3643b612d295ff32d415a79509d25fa DIST kitinerary-18.12.2.tar.xz 653388 BLAKE2B d45bb8060953baf1000839fdbeaaa81dac6f704cb68097ce5fe7e3e889e8275e1ae9b7604be01e75afe4e213af2ae328005f4f9e3907905eaa51f926cdb6a456 SHA512 5512a5287536454e82eff3308ceba828216167d3b6728ba7bc720c8e89403205e03226c16f0b80d033d5711999767634c8c36290a5cb4f6ec4f307d37e50b1a7 -EBUILD kitinerary-18.08.3.ebuild 824 BLAKE2B 1477b3096da1f8fdbf85cdf369ed4fc6ef2ba3ba7f616e62d0a951ca8fe95dc16927c3ada407442a7c41b02c73ca87a3f248f6158eec3cafb830b11139c3a13b SHA512 90121f44de95a067acea09b8308074da55417fc6e9a791d32b49c4189662f834fee3e0431ef5272ced65e324968575b0ed07a45f2b61721e23c80ee2da60af63 +EBUILD kitinerary-18.08.3.ebuild 875 BLAKE2B 6409c9925645d29076d7b9c122becebdcaeb0ef53ae20c49557495236de448870b554621f3a281ecf773d6aded4a60356baca4e6cd34e07c8cf7c17a87835db7 SHA512 93017332530687b2b84edee7a754195c56c17085ca1b8f09e533ef2aa732c78ed9f64a0672908eb8a14b242fa49ad9349cc7e1ffdd78f261c0162cd178481d76 EBUILD kitinerary-18.12.2.ebuild 826 BLAKE2B d4be3985019e32b373bd1b6e61a8135e986a55d1204957b4ac295806b202515bd409eca33ddd7630c7c0e701e18e0e8f65845feee62aa16b9e557f67edaca2fe SHA512 907b93f61f2fb54ca071d7a4a0314e5dc89ce1939386d45a5b01a7c965b79523904719770057453e1226195288f7e92e5f540e0ab09469595690054e7647a422 MISC metadata.xml 249 BLAKE2B ad415db89e5dee1627aa77f44ded9d4e1e5b8217d06c7ca25bbaa3fe92ce67c2b1090957c45a821b407d7927e5af798498aa6a5b903895ee1af8ee20a446c7f7 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 diff --git a/kde-apps/kitinerary/files/kitinerary-18.08.3-poppler-0.72.patch b/kde-apps/kitinerary/files/kitinerary-18.08.3-poppler-0.72.patch new file mode 100644 index 000000000000..904e7b231914 --- /dev/null +++ b/kde-apps/kitinerary/files/kitinerary-18.08.3-poppler-0.72.patch @@ -0,0 +1,68 @@ +From f2dee911572a6ec93c63b9b4e376f841bb91e306 Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com> +Date: Fri, 22 Feb 2019 19:13:11 +0100 +Subject: [PATCH] Fix build against poppler-0.72 + +--- + CMakeLists.txt | 3 +++ + src/config-kitinerary.h.cmake | 1 + + src/pdfdocument.cpp | 8 ++++++++ + 3 files changed, 12 insertions(+) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index bdc2e2b..b970de7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -42,6 +42,9 @@ if(TARGET Poppler::Core) + if (${Poppler_VERSION} VERSION_GREATER 0.57) + set(HAVE_POPPLER_0_58 ON) + endif() ++ if (${Poppler_VERSION} VERSION_GREATER 0.71) ++ set(HAVE_POPPLER_0_72 ON) ++ endif() + endif() + if (TARGET zxing::libzxing) + set(HAVE_ZXING ON) +diff --git a/src/config-kitinerary.h.cmake b/src/config-kitinerary.h.cmake +index 4576266..0dc8969 100644 +--- a/src/config-kitinerary.h.cmake ++++ b/src/config-kitinerary.h.cmake +@@ -22,6 +22,7 @@ + + #cmakedefine HAVE_POPPLER + #cmakedefine HAVE_POPPLER_0_58 ++#cmakedefine HAVE_POPPLER_0_72 + #cmakedefine HAVE_ZXING + #cmakedefine HAVE_KCAL + #cmakedefine HAVE_KCONTACTS +diff --git a/src/pdfdocument.cpp b/src/pdfdocument.cpp +index fb4b98b..9f23645 100644 +--- a/src/pdfdocument.cpp ++++ b/src/pdfdocument.cpp +@@ -306,7 +306,11 @@ QString PdfPage::textInRect(double left, double top, double right, double bottom + const auto pageRect = d->m_doc->m_popplerDoc->getPage(d->m_pageNum + 1)->getCropBox(); + std::unique_ptr<GooString> s(device->getText(ratio(pageRect->x1, pageRect->x2, left), ratio(pageRect->y1, pageRect->y2, top), + ratio(pageRect->x1, pageRect->x2, right), ratio(pageRect->y1, pageRect->y2, bottom))); ++#ifdef HAVE_POPPLER_0_58 ++ return QString::fromUtf8(s->c_str()); ++#else + return QString::fromUtf8(s->getCString()); ++#endif + #else + Q_UNUSED(left); + Q_UNUSED(top); +@@ -440,7 +444,11 @@ PdfDocument* PdfDocument::fromData(const QByteArray &data, QObject *parent) + PdfPage page; + page.d->m_pageNum = i; + page.d->m_doc = doc->d.get(); ++#ifdef HAVE_POPPLER_0_72 ++ page.d->m_text = QString::fromUtf8(s->c_str()); ++#else + page.d->m_text = QString::fromUtf8(s->getCString()); ++#endif + page.d->m_images = std::move(device->m_images); + for (auto it = page.d->m_images.begin(); it != page.d->m_images.end(); ++it) { + (*it).d->m_page = page.d.data(); +-- +2.19.2 + diff --git a/kde-apps/kitinerary/kitinerary-18.08.3.ebuild b/kde-apps/kitinerary/kitinerary-18.08.3.ebuild index d76e3c54a6e7..bcf656b17131 100644 --- a/kde-apps/kitinerary/kitinerary-18.08.3.ebuild +++ b/kde-apps/kitinerary/kitinerary-18.08.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -30,6 +30,8 @@ RDEPEND="${DEPEND} !<kde-apps/kdepim-addons-18.07.80 " +PATCHES=( "${FILESDIR}/${P}-poppler-0.72.patch" ) + src_configure() { local mycmakeargs=( $(cmake-utils_use_find_package pdf Poppler) |