From 8b4349b75818953123e2d4b80963181a9640c8e3 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 11 Mar 2024 12:45:52 +0000 Subject: gentoo auto-resync : 11:03:2024 - 12:45:51 --- media-gfx/Manifest.gz | Bin 37664 -> 37836 bytes media-gfx/okularpart/Manifest | 6 ++ .../files/okularpart-23.08.5-crashfix.patch | 86 +++++++++++++++++++ .../okularpart/files/okularpart-23.08.5-only.patch | 35 ++++++++ .../files/okularpart-23.08.5-tests.patch | 48 +++++++++++ media-gfx/okularpart/metadata.xml | 17 ++++ media-gfx/okularpart/okularpart-23.08.5.ebuild | 94 +++++++++++++++++++++ 7 files changed, 286 insertions(+) create mode 100644 media-gfx/okularpart/Manifest create mode 100644 media-gfx/okularpart/files/okularpart-23.08.5-crashfix.patch create mode 100644 media-gfx/okularpart/files/okularpart-23.08.5-only.patch create mode 100644 media-gfx/okularpart/files/okularpart-23.08.5-tests.patch create mode 100644 media-gfx/okularpart/metadata.xml create mode 100644 media-gfx/okularpart/okularpart-23.08.5.ebuild (limited to 'media-gfx') diff --git a/media-gfx/Manifest.gz b/media-gfx/Manifest.gz index 8aa0f5eb11e5..6e82a1412f82 100644 Binary files a/media-gfx/Manifest.gz and b/media-gfx/Manifest.gz differ diff --git a/media-gfx/okularpart/Manifest b/media-gfx/okularpart/Manifest new file mode 100644 index 000000000000..18ee762ec7a6 --- /dev/null +++ b/media-gfx/okularpart/Manifest @@ -0,0 +1,6 @@ +AUX okularpart-23.08.5-crashfix.patch 2502 BLAKE2B 129eee695e49d37684ab7d4383b5fe9c4032f208f7bbbff7c3cc643df6fb8e201cf79e30719f2f0af301f4893efdda7ec19057f768f8de599fe353803f0eb070 SHA512 13a8a1c12ccf84e83b69afe38a3da6ea5f13955a6f3f88d22929db8215ab6610608ab3656d84d659a7cf169973dd417c90146fdaf467bdc73c83b762326b2bcd +AUX okularpart-23.08.5-only.patch 966 BLAKE2B 2a8cb3cd4519f732d7d4dcecc781ddb574e7c21c27bf6a2c7b5d626fd41b6dca53f4003c140691cf7bf7122ada6385f2822f5a1c6b2240cae0c50cefb7e02b7b SHA512 346d0850dc7ee300eeaa0028bba6c2bcb9ecc7a0026cd828de7b13182842ed6c3b7b0b79aa52180c02990a5b09a48d5b2bc3d8142d91e14b6f71964751051ea0 +AUX okularpart-23.08.5-tests.patch 1778 BLAKE2B f81b025f77c37bed98a08e535a6c268e5c2c88011eec43d54b5b83626765a265be1a9e81460f09c356772c9277dd711599ac5547f8e6ad4223cccbcedb9f6d0b SHA512 643ff225db377e1492faec818249c13eb2b0ed4ef88c4074ab8da51b5e096fdd69852201cda5ac7e1fb636c996d48d7c1d9815b51bdb95d5e259f765366a1710 +DIST okular-23.08.5.tar.xz 8515760 BLAKE2B ec8ddf33917cc092e23934cc184280bf69fd92e184f05a14a3b0ec3636f00a90e35ab7c5b05e6b4083a4a94fb3d8725aa7b71686d5fe1d8962c4678690670f29 SHA512 c9e8b430fa4a5486cee0587f9beb077b4e8b5476f00ed42c9369fbb195ad9733ed310e01ebefc3c08cf78a53a3e72eab44c42a236b3dcad7e02421a864331dd6 +EBUILD okularpart-23.08.5.ebuild 2885 BLAKE2B 46fdf60940662f6ebe7ce9367f579cf57ad8b2c8584daefbe1e17860413b4270a10f5d413ee2a6c95e53dbfe2c58b1132311ef0688d188c6e6380e83d2fbad2d SHA512 fb1d0e5d893d1ba097e01f6ecfe82fe3518f3b7880fa6f36e929e28f9e24a0442e2bde8a0976835421d172b6f8e0ffa5416b7ca398c89251e861413eaf7bc5e0 +MISC metadata.xml 631 BLAKE2B 49deaf149de36abe44a15d36251cefe25e6f92529dfc1e97e2a3102497f699d99d8a4323165c40012fae8e2465e782333323cfe0f520756e8faef9d41fb45eda SHA512 3f583b6db0b9cefed471681df6f9f7b346120a7de5d2e3688930f04c454b3515d297f2eaee50bf859931b0255679e00a732e1a3d27266e18f51419b950bae867 diff --git a/media-gfx/okularpart/files/okularpart-23.08.5-crashfix.patch b/media-gfx/okularpart/files/okularpart-23.08.5-crashfix.patch new file mode 100644 index 000000000000..f05906668cae --- /dev/null +++ b/media-gfx/okularpart/files/okularpart-23.08.5-crashfix.patch @@ -0,0 +1,86 @@ +From 7f639c28262455226da4db9d9630a48fea99e0f4 Mon Sep 17 00:00:00 2001 +From: Carl Schwan +Date: Tue, 5 Mar 2024 16:08:58 +0100 +Subject: [PATCH] Fix crash when in embedded dummy mode + +This is an issue for Kile as they use Okular in the "dummy mode" which +doesn't include the annotation tool. + +BUG: 476207 +--- + part/pageview.cpp | 24 ++++++++++++++++++------ + 1 file changed, 18 insertions(+), 6 deletions(-) + +diff --git a/part/pageview.cpp b/part/pageview.cpp +index c5c1d3e55c..c01c5488c6 100644 +--- a/part/pageview.cpp ++++ b/part/pageview.cpp +@@ -5084,7 +5084,9 @@ void PageView::slotSetMouseNormal() + // force an update of the cursor + updateCursor(); + Okular::Settings::self()->save(); +- d->annotator->detachAnnotation(); ++ if (d->annotator) { ++ d->annotator->detachAnnotation(); ++ } + } + + void PageView::slotSetMouseZoom() +@@ -5096,7 +5098,9 @@ void PageView::slotSetMouseZoom() + // force an update of the cursor + updateCursor(); + Okular::Settings::self()->save(); +- d->annotator->detachAnnotation(); ++ if (d->annotator) { ++ d->annotator->detachAnnotation(); ++ } + } + + void PageView::slotSetMouseMagnifier() +@@ -5108,7 +5112,9 @@ void PageView::slotSetMouseMagnifier() + // force an update of the cursor + updateCursor(); + Okular::Settings::self()->save(); +- d->annotator->detachAnnotation(); ++ if (d->annotator) { ++ d->annotator->detachAnnotation(); ++ } + } + + void PageView::slotSetMouseSelect() +@@ -5120,7 +5126,9 @@ void PageView::slotSetMouseSelect() + // force an update of the cursor + updateCursor(); + Okular::Settings::self()->save(); +- d->annotator->detachAnnotation(); ++ if (d->annotator) { ++ d->annotator->detachAnnotation(); ++ } + } + + void PageView::slotSetMouseTextSelect() +@@ -5132,7 +5140,9 @@ void PageView::slotSetMouseTextSelect() + // force an update of the cursor + updateCursor(); + Okular::Settings::self()->save(); +- d->annotator->detachAnnotation(); ++ if (d->annotator) { ++ d->annotator->detachAnnotation(); ++ } + } + + void PageView::slotSetMouseTableSelect() +@@ -5144,7 +5154,9 @@ void PageView::slotSetMouseTableSelect() + // force an update of the cursor + updateCursor(); + Okular::Settings::self()->save(); +- d->annotator->detachAnnotation(); ++ if (d->annotator) { ++ d->annotator->detachAnnotation(); ++ } + } + + void PageView::showNoSigningCertificatesDialog(bool nonDateValidCerts) +-- +GitLab + diff --git a/media-gfx/okularpart/files/okularpart-23.08.5-only.patch b/media-gfx/okularpart/files/okularpart-23.08.5-only.patch new file mode 100644 index 000000000000..7b62867610bf --- /dev/null +++ b/media-gfx/okularpart/files/okularpart-23.08.5-only.patch @@ -0,0 +1,35 @@ +From e3baad173b95ad75afe9d339c4a86d030b67f4be Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner +Date: Sun, 10 Mar 2024 21:37:44 +0100 +Subject: [PATCH] Disable bits we don't need for okularpart only + +Signed-off-by: Andreas Sturmlechner +--- + CMakeLists.txt | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c47d6ab0f..91f25c62e 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -184,7 +184,7 @@ if (BUILD_MOBILE) + ) + endif() + +-if(NOT WIN32 AND NOT ANDROID AND NOT APPLE) ++if(0) + find_package(KF5 ${KF5_REQUIRED_VERSION} REQUIRED COMPONENTS + Activities + ) +@@ -303,7 +303,7 @@ endif() + add_subdirectory( icons ) # an own directory for multi-size icons retrieved by KIconThemeLoader + add_subdirectory( part ) + if(BUILD_DESKTOP) +- add_subdirectory( shell ) ++# add_subdirectory( shell ) + endif() + add_subdirectory( generators ) + +-- +2.44.0 + diff --git a/media-gfx/okularpart/files/okularpart-23.08.5-tests.patch b/media-gfx/okularpart/files/okularpart-23.08.5-tests.patch new file mode 100644 index 000000000000..8fc477be875a --- /dev/null +++ b/media-gfx/okularpart/files/okularpart-23.08.5-tests.patch @@ -0,0 +1,48 @@ +From 323fed918995fe2e01036c74c1498446b4d2f122 Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner +Date: Thu, 12 Oct 2017 14:09:09 +0200 +Subject: [PATCH] Move tests into existing (auto)tests subdirectories + +--- + generators/comicbook/CMakeLists.txt | 10 +++------- + generators/comicbook/autotests/CMakeLists.txt | 6 ++++++ + 8 files changed, 27 insertions(+), 18 deletions(-) + create mode 100644 generators/chm/autotests/CMakeLists.txt + create mode 100644 generators/comicbook/autotests/CMakeLists.txt + +diff --git a/generators/comicbook/CMakeLists.txt b/generators/comicbook/CMakeLists.txt +index a0e7569a2..91bcc6ec7 100644 +--- a/generators/comicbook/CMakeLists.txt ++++ b/generators/comicbook/CMakeLists.txt +@@ -25,13 +25,9 @@ if (KArchive_HAVE_LZMA) + target_compile_definitions(okular_comicbook PRIVATE -DWITH_K7ZIP=1) + endif() + +-########### autotests ############### +- +-add_definitions( -DKDESRCDIR="${CMAKE_CURRENT_SOURCE_DIR}/" ) +-ecm_add_test(autotests/comicbooktest.cpp +- TEST_NAME "comicbooktest" +- LINK_LIBRARIES Qt5::Test KF5::CoreAddons okularcore okular_comicbook +-) ++if(BUILD_TESTING) ++ add_subdirectory(autotests) ++endif() + + ########### install files ############### + install( FILES okularComicbook.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR} ) +diff --git a/generators/comicbook/autotests/CMakeLists.txt b/generators/comicbook/autotests/CMakeLists.txt +new file mode 100644 +index 000000000..aaacb341a +--- /dev/null ++++ b/generators/comicbook/autotests/CMakeLists.txt +@@ -0,0 +1,6 @@ ++add_definitions( -DKDESRCDIR="${CMAKE_CURRENT_SOURCE_DIR}/../" ) ++ ++ecm_add_test(comicbooktest.cpp ++ TEST_NAME "comicbooktest" ++ LINK_LIBRARIES Qt5::Test KF5::CoreAddons okularcore okular_comicbook ++) +-- +2.33.0 + diff --git a/media-gfx/okularpart/metadata.xml b/media-gfx/okularpart/metadata.xml new file mode 100644 index 000000000000..4035d9145745 --- /dev/null +++ b/media-gfx/okularpart/metadata.xml @@ -0,0 +1,17 @@ + + + + + kde@gentoo.org + Gentoo KDE Project + + + https://bugs.kde.org/ + cpe:/a:kde:okular + graphics/okular + + + Enable E-Book support via app-text/ebook-tools + Enable mobipocket support via kde-apps/kdegraphics-mobipocket + + diff --git a/media-gfx/okularpart/okularpart-23.08.5.ebuild b/media-gfx/okularpart/okularpart-23.08.5.ebuild new file mode 100644 index 000000000000..67b16aac3538 --- /dev/null +++ b/media-gfx/okularpart/okularpart-23.08.5.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ECM_HANDBOOK="false" +ECM_TEST="forceoptional" +KDE_ORG_NAME="okular" +PVCUT=$(ver_cut 1-3) +KFMIN=5.106.0 +QTMIN=5.15.9 +inherit ecm gear.kde.org + +DESCRIPTION="Universal document viewer kpart based on KDE Frameworks" +HOMEPAGE="https://okular.kde.org https://apps.kde.org/okular/" + +LICENSE="GPL-2" # TODO: CHECK +SLOT="5" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +IUSE="djvu epub mobi +pdf +postscript +tiff" + +# slot op: Uses Qt5::CorePrivate +DEPEND=" + >=dev-qt/qtcore-${QTMIN}:5= + >=dev-qt/qtdbus-${QTMIN}:5 + >=dev-qt/qtdeclarative-${QTMIN}:5 + >=dev-qt/qtgui-${QTMIN}:5[gif(+),jpeg,png] + >=dev-qt/qtprintsupport-${QTMIN}:5 + >=dev-qt/qtsvg-${QTMIN}:5 + >=dev-qt/qtwidgets-${QTMIN}:5 + >=dev-qt/qtxml-${QTMIN}:5 + >=kde-apps/libkexiv2-${PVCUT}:5 + >=kde-frameworks/karchive-${KFMIN}:5 + >=kde-frameworks/kbookmarks-${KFMIN}:5 + >=kde-frameworks/kcompletion-${KFMIN}:5 + >=kde-frameworks/kconfig-${KFMIN}:5 + >=kde-frameworks/kconfigwidgets-${KFMIN}:5 + >=kde-frameworks/kcoreaddons-${KFMIN}:5 + >=kde-frameworks/kcrash-${KFMIN}:5 + >=kde-frameworks/ki18n-${KFMIN}:5 + >=kde-frameworks/kio-${KFMIN}:5 + >=kde-frameworks/kparts-${KFMIN}:5 + >=kde-frameworks/kpty-${KFMIN}:5 + >=kde-frameworks/ktextwidgets-${KFMIN}:5 + >=kde-frameworks/threadweaver-${KFMIN}:5 + media-libs/freetype + sys-libs/zlib + djvu? ( app-text/djvu ) + epub? ( app-text/ebook-tools ) + mobi? ( >=kde-apps/kdegraphics-mobipocket-${PVCUT}:5 ) + pdf? ( >=app-text/poppler-21.10.0[nss,qt5] ) + postscript? ( app-text/libspectre ) + tiff? ( media-libs/tiff:= ) +" +RDEPEND="${DEPEND} + !kde-apps/okular:5 + >=kde-frameworks/kimageformats-${KFMIN}:5 +" + +PATCHES=( + "${FILESDIR}/${P}-tests.patch" # bug 734138 + "${FILESDIR}/${P}-only.patch" + "${FILESDIR}/${P}-crashfix.patch" # KDE-bug 476207 +) + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=OFF # tests are executed for okular:5 + -DCMAKE_DISABLE_FIND_PACKAGE_CHM=ON + -DCMAKE_DISABLE_FIND_PACKAGE_Discount=ON + -DCMAKE_DISABLE_FIND_PACKAGE_JPEG=ON + -DCMAKE_DISABLE_FIND_PACKAGE_KF5KHtml=ON + -DCMAKE_DISABLE_FIND_PACKAGE_KF5Purpose=ON + -DCMAKE_DISABLE_FIND_PACKAGE_KF5Wallet=ON + -DCMAKE_DISABLE_FIND_PACKAGE_Phonon4Qt5=ON + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5TextToSpeech=ON + -DCMAKE_DISABLE_FIND_PACKAGE_LibZip=ON + -DFORCE_NOT_REQUIRED_DEPENDENCIES="KF5DocTools;CHM;KF5KHtml;LibZip;KF5Wallet;DjVuLibre;EPub;KF5KExiv2;Discount;QMobipocket;Poppler;JPEG;LibSpectre;KF5Purpose;Qt5TextToSpeech;TIFF;" + -DOKULAR_UI="desktop" + $(cmake_use_find_package djvu DjVuLibre) + $(cmake_use_find_package epub EPub) + $(cmake_use_find_package mobi QMobipocket) + $(cmake_use_find_package pdf Poppler) + $(cmake_use_find_package postscript LibSpectre) + $(cmake_use_find_package tiff TIFF) + ) + ecm_src_configure +} + +src_install() { + ecm_src_install + + rm -r "${ED}"/usr/{include,share} || die +} -- cgit v1.2.3