diff options
author | 2024-07-12 20:23:34 +0200 | |
---|---|---|
committer | 2024-07-12 20:33:26 +0200 | |
commit | 95d8cf16652994a8258108f24d1d3c5b739fc9f1 (patch) | |
tree | a558c15ee238246c4d0e6da5f3c3b3eb3700eb47 | |
parent | kde-apps/lokalize: Port to KF6 (diff) | |
download | kde-95d8cf16652994a8258108f24d1d3c5b739fc9f1.tar.gz kde-95d8cf16652994a8258108f24d1d3c5b739fc9f1.tar.bz2 kde-95d8cf16652994a8258108f24d1d3c5b739fc9f1.zip |
app-office/calligra: Port to KF6
Upstream commits:
b521108c75668d43e2f6d23c4a5cad0ab4ff6d0c (!)
afb2049d785e7db374d574e675e8ceaad1b1d606
0b68f0629446562d65778993aec127b424d926a3
3073d00995f3fe74edd4f0f3f87bd2c8b58ed4ca
/9dfa7b059e45884eb248c5fc0630b5a7fe43fd92
38f04b4ce76a6420568d1be6cac7776f247f4390
def2ca6a362701dd25a7950cb00ada669ddd1d9c
9197e4b3a43b8d614772f43a31f92729f598e72a
2821efdb5ad1f9aca8036636f7aff197de8a6da7
ff32b06dfbbbadae5de3695de6f6914a62c2b62f
adee19863d5b5a65a1ae8cccdb2d526d2a989e37
Bug: https://bugs.gentoo.org/903532
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
-rw-r--r-- | app-office/calligra/calligra-9999.ebuild | 118 | ||||
-rw-r--r-- | app-office/calligra/files/calligra-3.2.1-okularpart.patch | 78 | ||||
-rw-r--r-- | app-office/calligra/metadata.xml | 1 |
3 files changed, 46 insertions, 151 deletions
diff --git a/app-office/calligra/calligra-9999.ebuild b/app-office/calligra/calligra-9999.ebuild index d8b22023a0..e07d50bb97 100644 --- a/app-office/calligra/calligra-9999.ebuild +++ b/app-office/calligra/calligra-9999.ebuild @@ -6,8 +6,8 @@ EAPI=8 CHECKREQS_DISK_BUILD="4G" ECM_HANDBOOK="forceoptional" ECM_TEST="forceoptional" -KFMIN=5.115.0 -QTMIN=5.15.12 +KFMIN=6.3.0 +QTMIN=6.6.2 inherit check-reqs ecm kde.org DESCRIPTION="KDE Office Suite" @@ -24,8 +24,8 @@ SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}.tar.xz" CAL_FTS=( karbon sheets stage words ) LICENSE="GPL-2" -SLOT="5" -IUSE="activities +charts +crypt +fontconfig gemini gsl +import-filter +lcms +SLOT="0" +IUSE="+charts +crypt +fontconfig gemini gsl +import-filter +lcms okular +pdf phonon spacenav +truetype X $(printf 'calligra_features_%s ' ${CAL_FTS[@]})" @@ -35,48 +35,39 @@ RESTRICT="test" # Required for the matlab/octave formula tool COMMON_DEPEND=" dev-lang/perl - >=dev-qt/designer-${QTMIN}:5 - >=dev-qt/qtdbus-${QTMIN}:5 - >=dev-qt/qtdeclarative-${QTMIN}:5 - >=dev-qt/qtgui-${QTMIN}:5 - >=dev-qt/qtnetwork-${QTMIN}:5 - >=dev-qt/qtprintsupport-${QTMIN}:5 - >=dev-qt/qtsvg-${QTMIN}:5 - >=dev-qt/qtwidgets-${QTMIN}:5 - >=dev-qt/qtxml-${QTMIN}:5 - >=kde-frameworks/karchive-${KFMIN}:5 - >=kde-frameworks/kcmutils-${KFMIN}:5 - >=kde-frameworks/kcodecs-${KFMIN}:5 - >=kde-frameworks/kcompletion-${KFMIN}:5 - >=kde-frameworks/kconfig-${KFMIN}:5 - >=kde-frameworks/kconfigwidgets-${KFMIN}:5 - >=kde-frameworks/kcoreaddons-${KFMIN}:5 - >=kde-frameworks/kdelibs4support-${KFMIN}:5 - >=kde-frameworks/kemoticons-${KFMIN}:5 - >=kde-frameworks/kglobalaccel-${KFMIN}:5 - >=kde-frameworks/kguiaddons-${KFMIN}:5 - >=kde-frameworks/ki18n-${KFMIN}:5 - >=kde-frameworks/kiconthemes-${KFMIN}:5 - >=kde-frameworks/kio-${KFMIN}:5 - >=kde-frameworks/kitemmodels-${KFMIN}:5 - >=kde-frameworks/kitemviews-${KFMIN}:5 - >=kde-frameworks/kjobwidgets-${KFMIN}:5 - >=kde-frameworks/knotifications-${KFMIN}:5 - >=kde-frameworks/knotifyconfig-${KFMIN}:5 - >=kde-frameworks/kparts-${KFMIN}:5 - >=kde-frameworks/ktextwidgets-${KFMIN}:5 - >=kde-frameworks/kwallet-${KFMIN}:5 - >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 - >=kde-frameworks/kwindowsystem-${KFMIN}:5 - >=kde-frameworks/kxmlgui-${KFMIN}:5 - >=kde-frameworks/sonnet-${KFMIN}:5 + >=dev-libs/qtkeychain-0.14.2:=[qt6(+)] + >=dev-qt/qtbase-${QTMIN}:6[dbus,gui,network,widgets,xml] + >=dev-qt/qtdeclarative-${QTMIN}:6 + >=dev-qt/qtsvg-${QTMIN}:6 + >=dev-qt/qttools-${QTMIN}:6[designer] + >=kde-frameworks/karchive-${KFMIN}:6 + >=kde-frameworks/kcmutils-${KFMIN}:6 + >=kde-frameworks/kcompletion-${KFMIN}:6 + >=kde-frameworks/kconfig-${KFMIN}:6 + >=kde-frameworks/kconfigwidgets-${KFMIN}:6 + >=kde-frameworks/kcoreaddons-${KFMIN}:6 + >=kde-frameworks/kcrash-${KFMIN}:6 + >=kde-frameworks/kdbusaddons-${KFMIN}:6 + >=kde-frameworks/kguiaddons-${KFMIN}:6 + >=kde-frameworks/ki18n-${KFMIN}:6 + >=kde-frameworks/kiconthemes-${KFMIN}:6 + >=kde-frameworks/kio-${KFMIN}:6 + >=kde-frameworks/kitemviews-${KFMIN}:6 + >=kde-frameworks/kjobwidgets-${KFMIN}:6 + >=kde-frameworks/knotifications-${KFMIN}:6 + >=kde-frameworks/knotifyconfig-${KFMIN}:6 + >=kde-frameworks/kparts-${KFMIN}:6 + >=kde-frameworks/ktextwidgets-${KFMIN}:6 + >=kde-frameworks/kwidgetsaddons-${KFMIN}:6 + >=kde-frameworks/kwindowsystem-${KFMIN}:6 + >=kde-frameworks/kxmlgui-${KFMIN}:6 + >=kde-frameworks/sonnet-${KFMIN}:6 sys-libs/zlib virtual/libiconv - activities? ( >=kde-plasma/plasma-activities-${KFMIN}:5 ) - charts? ( dev-libs/kdiagram:5 ) - crypt? ( >=app-crypt/qca-2.3.0:2[qt5(+)] ) + charts? ( dev-libs/kdiagram:6 ) + crypt? ( dev-libs/openssl:= ) fontconfig? ( media-libs/fontconfig ) - gemini? ( >=dev-qt/qtdeclarative-${QTMIN}:5[widgets] ) + gemini? ( >=dev-qt/qtdeclarative-${QTMIN}:6[widgets] ) gsl? ( sci-libs/gsl:= ) import-filter? ( app-text/libetonyek @@ -88,33 +79,23 @@ COMMON_DEPEND=" media-libs/libvisio ) lcms? ( media-libs/lcms:2 ) - okular? ( || ( - media-gfx/okularpart:5 - kde-apps/okular:5 - ) ) - pdf? ( app-text/poppler:=[qt5] ) - phonon? ( >=media-libs/phonon-4.11.0[qt5(+)] ) + okular? ( kde-apps/okular:6 ) + pdf? ( app-text/poppler:=[qt6] ) + phonon? ( >=media-libs/phonon-4.12.0[qt6(+)] ) spacenav? ( dev-libs/libspnav ) truetype? ( media-libs/freetype:2 ) - X? ( - >=dev-qt/qtx11extras-${QTMIN}:5 - x11-libs/libX11 - ) calligra_features_sheets? ( dev-cpp/eigen:3 ) calligra_features_words? ( dev-libs/libxslt ) " DEPEND="${COMMON_DEPEND} dev-libs/boost lcms? ( dev-libs/imath:3 ) - test? ( >=kde-frameworks/threadweaver-${KFMIN}:5 ) + test? ( >=kde-frameworks/threadweaver-${KFMIN}:6 ) " RDEPEND="${COMMON_DEPEND} + !${CATEGORY}/${PN}:5 calligra_features_karbon? ( media-gfx/pstoedit[plotutils] ) - gemini? ( - >=dev-qt/qtquickcontrols-${QTMIN}:5 - >=dev-qt/qtquickcontrols2-${QTMIN}:5 - >=kde-frameworks/kirigami-${KFMIN}:5 - ) + gemini? ( >=kde-frameworks/kirigami-${KFMIN}:6 ) " BDEPEND="sys-devel/gettext" @@ -130,10 +111,6 @@ pkg_setup() { } src_prepare() { - if has_version "media-gfx/okularpart:5"; then - eapply "${FILESDIR}/${PN}-3.2.1-okularpart.patch" - fi - ecm_src_prepare # Unconditionally disable deprecated deps (required by QtQuick1) @@ -159,15 +136,12 @@ src_configure() { -DWITH_Iconv=ON -DWITH_Imath=ON # w/ LCMS: 16 bit floating point Grayscale colorspace -DCMAKE_DISABLE_FIND_PACKAGE_Cauchy=ON - -DCMAKE_DISABLE_FIND_PACKAGE_KF5CalendarCore=ON - -DCMAKE_DISABLE_FIND_PACKAGE_KF5Kross=ON + -DCMAKE_DISABLE_FIND_PACKAGE_KF6CalendarCore=ON -DPRODUCTSET="${myproducts[*]}" - $(cmake_use_find_package activities KF5Activities) - $(cmake_use_find_package charts KChart) - -DWITH_Qca-qt5=$(usex crypt) + $(cmake_use_find_package charts KChartQt6) + $(cmake_use_find_package crypt OpenSSL) -DWITH_Fontconfig=$(usex fontconfig) - $(cmake_use_find_package gemini Libgit2) - $(cmake_use_find_package gemini Qt5QuickWidgets) + $(cmake_use_find_package gemini LibGit2) -DWITH_GSL=$(usex gsl) -DWITH_LibEtonyek=$(usex import-filter) -DWITH_LibOdfGen=$(usex import-filter) @@ -176,9 +150,9 @@ src_configure() { -DWITH_LibWpd=$(usex import-filter) -DWITH_LibWpg=$(usex import-filter) -DWITH_LibWps=$(usex import-filter) - $(cmake_use_find_package phonon Phonon4Qt5) + $(cmake_use_find_package phonon Phonon4Qt6) -DWITH_LCMS2=$(usex lcms) - -DWITH_Okular5=$(usex okular) + -DWITH_Okular6=$(usex okular) -DWITH_Poppler=$(usex pdf) -DWITH_Eigen3=$(usex calligra_features_sheets) -DBUILD_UNMAINTAINED=$(usex calligra_features_stage) diff --git a/app-office/calligra/files/calligra-3.2.1-okularpart.patch b/app-office/calligra/files/calligra-3.2.1-okularpart.patch deleted file mode 100644 index 75a3b0d054..0000000000 --- a/app-office/calligra/files/calligra-3.2.1-okularpart.patch +++ /dev/null @@ -1,78 +0,0 @@ -From e3b1fe06a2593edcaf33f106b2f77679cd1ea9c8 Mon Sep 17 00:00:00 2001 -From: Andreas Sturmlechner <asturm@gentoo.org> -Date: Fri, 15 Mar 2024 12:39:45 +0100 -Subject: [PATCH] Switch okular headers to okular5 - -Otherwise it will be using okular6's. - -Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> ---- - extras/okularodpgenerator/OkularOdpGenerator.cpp | 2 +- - extras/okularodpgenerator/OkularOdpGenerator.h | 6 +++--- - extras/okularodtgenerator/OkularOdtGenerator.cpp | 2 +- - extras/okularodtgenerator/OkularOdtGenerator.h | 6 +++--- - 4 files changed, 8 insertions(+), 8 deletions(-) - -diff --git a/extras/okularodpgenerator/OkularOdpGenerator.cpp b/extras/okularodpgenerator/OkularOdpGenerator.cpp -index 823d039b3b0..a4614f38f6b 100644 ---- a/extras/okularodpgenerator/OkularOdpGenerator.cpp -+++ b/extras/okularodpgenerator/OkularOdpGenerator.cpp -@@ -33,7 +33,7 @@ - #include <KoDocumentInfo.h> - #include <KoGlobal.h> - --#include <okular/core/page.h> -+#include <okular5/core/page.h> - - #include <KLocalizedString> - -diff --git a/extras/okularodpgenerator/OkularOdpGenerator.h b/extras/okularodpgenerator/OkularOdpGenerator.h -index 9107c52c52b..5564ec7f881 100644 ---- a/extras/okularodpgenerator/OkularOdpGenerator.h -+++ b/extras/okularodpgenerator/OkularOdpGenerator.h -@@ -22,9 +22,9 @@ - - #include "kookulargenerator_odp_export.h" - --#include <okular/core/generator.h> --#include <okular/core/document.h> --#include <okular/core/version.h> -+#include <okular5/core/generator.h> -+#include <okular5/core/document.h> -+#include <okular5/core/version.h> - - class KoPADocument; - -diff --git a/extras/okularodtgenerator/OkularOdtGenerator.cpp b/extras/okularodtgenerator/OkularOdtGenerator.cpp -index 9ba114d6080..bccfb11a068 100644 ---- a/extras/okularodtgenerator/OkularOdtGenerator.cpp -+++ b/extras/okularodtgenerator/OkularOdtGenerator.cpp -@@ -41,7 +41,7 @@ - #include <KoTextLayoutRootArea.h> - #include <KoCharAreaInfo.h> - --#include <okular/core/page.h> -+#include <okular5/core/page.h> - - - OkularOdtGenerator::OkularOdtGenerator( QObject *parent, const QVariantList &args ) -diff --git a/extras/okularodtgenerator/OkularOdtGenerator.h b/extras/okularodtgenerator/OkularOdtGenerator.h -index d3e9692b385..994a81aae2c 100644 ---- a/extras/okularodtgenerator/OkularOdtGenerator.h -+++ b/extras/okularodtgenerator/OkularOdtGenerator.h -@@ -22,9 +22,9 @@ - - #include "kookulargenerator_odt_export.h" - --#include <okular/core/generator.h> --#include <okular/core/document.h> --#include <okular/core/version.h> -+#include <okular5/core/generator.h> -+#include <okular5/core/document.h> -+#include <okular5/core/version.h> - - class KWDocument; - --- -2.44.0 - diff --git a/app-office/calligra/metadata.xml b/app-office/calligra/metadata.xml index b581a8d539..c18f607fe5 100644 --- a/app-office/calligra/metadata.xml +++ b/app-office/calligra/metadata.xml @@ -14,7 +14,6 @@ <remote-id type="cpe">cpe:/a:calligra:calligra</remote-id> </upstream> <use> - <flag name="activities">Enable kactivities support</flag> <flag name="charts">Build chartshape plugin for creating business charts with <pkg>dev-libs/kdiagram</pkg></flag> <flag name="gemini">Enable tablet and 2:1 devices support</flag> <flag name="import-filter">Enable support for various import filter file formats like WordPerfect, Visio and Apple Keynote</flag> |