commit: 67c2f755af7c664acc558cb5e730d38d5056361d
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 6 20:31:24 2025 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Mar 6 21:03:29 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67c2f755
app-office/calligra: add 24.12.3
Useful for:
Antonio Rojas (2):
No need for cmake policy CMP0063
Fix build with cmake 4
Nicolas Fella (1):
Fix build with Qt 6.9
Pino Toscano (3):
appstream: fix <launchable>s of Sheets and Stage
Ignore calligra.desktop for AppStream
sheets: fix conflict of Value(int) and Value(qsizetype)
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
app-office/calligra/Manifest | 1 +
app-office/calligra/calligra-24.12.3.ebuild | 139 ++++++++++++++++++++++++++++
2 files changed, 140 insertions(+)
diff --git a/app-office/calligra/Manifest b/app-office/calligra/Manifest
index 33b04bd87dba..33db66a50c61 100644
--- a/app-office/calligra/Manifest
+++ b/app-office/calligra/Manifest
@@ -1,2 +1,3 @@
DIST calligra-24.12.2.tar.xz 57908508 BLAKE2B
a3ec522b4ecfbc93bca2b147bc4302c64c3132c1d01916a8501ddac8df2972ef8688f42afe57eaf86cd6fde64841b3c22ba05dca98fef5a3a9dcd7f327d10e23
SHA512
54a59d4cbd3d22e3834a50a53693211689234158ff1a95732820c4b939a214e295bf7b51e07494f3d3df1defb5e6789ab70801717d578d54fa2fa71efd65b9e9
+DIST calligra-24.12.3.tar.xz 57905564 BLAKE2B
cb9b2cb05d002e62e86cc6a41f4bd69f72fb265bba06e8e33aeb85a6ae9d0dcfd93fc49f3dddb6e4921cd9119e0afa57e36dea3779bb368ec11847cd817f38df
SHA512
f453ad0a3853fd13f253fe9ec240d7314523d74f53858542816572d85d85d47893cfa381059bf28924f78d5629a447248d13ac63342a1e39a0903529d5150fea
DIST calligra-3.2.1-patchset-1.tar.xz 11924 BLAKE2B
5a71a7960a6d2a4d5e55129f4812fb13a2fb56613283d4582266e1836f107b711be43cb158e29c440fbda6992c03a3f4907f0600d21522fd9ab07c66354234a9
SHA512
26ec818f2415c43b116b716557710361621e1e4446087fe123e29107f82400ec82f19ab3a76dde9b749ed4b9f15da9c05c3fa6137fc814241c48ffc12f5628fc
diff --git a/app-office/calligra/calligra-24.12.3.ebuild
b/app-office/calligra/calligra-24.12.3.ebuild
new file mode 100644
index 000000000000..2ec028ffebd9
--- /dev/null
+++ b/app-office/calligra/calligra-24.12.3.ebuild
@@ -0,0 +1,139 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CHECKREQS_DISK_BUILD="4G"
+ECM_HANDBOOK="forceoptional"
+ECM_TEST="forceoptional"
+KFMIN=6.9.0
+QTMIN=6.8.0
+inherit check-reqs ecm gear.kde.org xdg
+
+DESCRIPTION="KDE Office Suite"
+HOMEPAGE="https://calligra.org/"
+PATCHSET="${PN}-3.2.1-patchset-1"
+SRC_URI+=" https://dev.gentoo.org/~asturm/distfiles/${PATCHSET}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+if [[ ${KDE_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64 ~ppc64 ~x86"
+fi
+CAL_FTS=( karbon sheets stage words )
+IUSE="+charts +fontconfig gsl +import-filter +lcms okular +pdf phonon
+ +truetype webengine X $(printf 'calligra_features_%s ' ${CAL_FTS[@]})"
+
+RESTRICT="test"
+
+# TODO: Not packaged: Cauchy (https://bitbucket.org/cyrille/cauchy)
+# Required for the matlab/octave formula tool
+COMMON_DEPEND="
+ dev-lang/perl
+ dev-libs/openssl:=
+ >=dev-libs/qtkeychain-0.14.2:=[qt6(+)]
+ >=dev-qt/qtbase-${QTMIN}:6[dbus,gui,network,widgets,xml]
+ >=dev-qt/qtdeclarative-${QTMIN}:6[widgets]
+ >=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/kirigami-${KFMIN}:6
+ >=kde-frameworks/kitemviews-${KFMIN}:6
+ >=kde-frameworks/kjobwidgets-${KFMIN}:6
+ >=kde-frameworks/knotifications-${KFMIN}:6
+ >=kde-frameworks/knotifyconfig-${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
+ charts? ( dev-libs/kdiagram:6 )
+ fontconfig? ( media-libs/fontconfig )
+ gsl? ( sci-libs/gsl:= )
+ import-filter? (
+ app-text/libetonyek
+ app-text/libodfgen
+ app-text/libwpd:*
+ app-text/libwpg:*
+ >=app-text/libwps-0.4
+ dev-libs/librevenge
+ media-libs/libvisio
+ )
+ lcms? ( media-libs/lcms:2 )
+ okular? ( kde-apps/okular:6 )
+ pdf? ( app-text/poppler:=[qt6] )
+ phonon? ( >=media-libs/phonon-4.12.0[qt6(+)] )
+ truetype? ( media-libs/freetype:2 )
+ webengine? ( >=dev-qt/qtwebengine-${QTMIN}:6[widgets] )
+ 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}:6 )
+"
+RDEPEND="${COMMON_DEPEND}
+ !${CATEGORY}/${PN}:5
+ calligra_features_karbon? ( media-gfx/pstoedit[plotutils] )
+"
+BDEPEND="
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+PATCHES=( "${WORKDIR}"/${PATCHSET}/${PN}-3.1.89-no-arch-detection.patch ) #
downstream
+
+src_configure() {
+ local cal_ft myproducts
+
+ # applications
+ for cal_ft in ${CAL_FTS[@]}; do
+ use calligra_features_${cal_ft} && myproducts+=( "${cal_ft^^}" )
+ done
+
+ use lcms && myproducts+=( PLUGIN_COLORENGINES )
+ use okular && myproducts+=( OKULAR )
+
+ local mycmakeargs=(
+ -DPACKAGERS_BUILD=OFF
+ -DRELEASE_BUILD=ON
+ -DWITH_Iconv=ON
+ -DWITH_Imath=ON # w/ LCMS: 16 bit floating point Grayscale
colorspace
+ -DCMAKE_DISABLE_FIND_PACKAGE_Cauchy=ON
+ -DPRODUCTSET="${myproducts[*]}"
+ $(cmake_use_find_package charts KChart6)
+ -DWITH_Fontconfig=$(usex fontconfig)
+ -DWITH_GSL=$(usex gsl)
+ -DWITH_LibEtonyek=$(usex import-filter)
+ -DWITH_LibOdfGen=$(usex import-filter)
+ -DWITH_LibRevenge=$(usex import-filter)
+ -DWITH_LibVisio=$(usex import-filter)
+ -DWITH_LibWpd=$(usex import-filter)
+ -DWITH_LibWpg=$(usex import-filter)
+ -DWITH_LibWps=$(usex import-filter)
+ $(cmake_use_find_package phonon Phonon4Qt6)
+ -DWITH_LCMS2=$(usex lcms)
+ -DWITH_Okular6=$(usex okular)
+ -DWITH_Poppler=$(usex pdf)
+ -DWITH_Eigen3=$(usex calligra_features_sheets)
+ -DBUILD_UNMAINTAINED=$(usex calligra_features_stage)
+ -DWITH_Freetype=$(usex truetype)
+ $(cmake_use_find_package webengine Qt6WebEngineWidgets)
+ )
+
+ ecm_src_configure
+}