331.9. calligra-26.08.2
Office suite — Words, Sheets, Stage and Karbon on OpenDocument, with import filters
| Version | 26.08.2, release 1 |
| Shelf | office — Office suites, word processors, spreadsheets, presentations, accounting and finance, and office-format import libraries |
| Phase | 44_apps (Applications), 318 of 422 in build order |
| Licence | LGPL-2.0-or-later AND LGPL-2.1-or-later AND GPL-2.0-or-later AND LGPL-2.0-only AND LGPL-2.1-only AND (GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL) AND GPL-3.0-or-later AND BSD-3-Clause AND BSD-2-Clause |
| Homepage | https://calligra.org/ |
| Build time | 38.7 SBU |
| Installed size | 108.8 MiB in 4912 files |
| Recipe | ports/core/office/calligra/kpkgbuild |
About
Calligra is KDE’s office suite: Words for text documents, Sheets for spreadsheets, Stage for presentations and Karbon for vector drawing, all on OpenDocument, with a launcher window, the plain Calligra menu entry, that starts any of the four. One source tree builds the four applications, the shared office libraries under them, import and export filters for Microsoft Office, WordPerfect, Works, Visio, Keynote, RTF, PDF and others, thumbnailers, and Okular generators through which Okular shows OpenDocument and Office files. libreoffice is the office suite the desktop opens by default; Calligra is installed beside it.
Sources
calligra-26.08.2.tar.xz(55.5 MiB)
sha256f4b9c11f5957798face6cf29834695d76506c5e28049e21abcb62884ce9cc96c
upstream: https://download.kde.org/stable/release-service/26.08.2/src/calligra-26.08.2.tar.xz
archive copy: sources-3/office--calligra-26.08.2.tar.xz
Dependencies
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtsvg, qt6-qtwebengine, karchive, kcompletion, kconfig, kconfigwidgets, kcoreaddons, kcrash, kguiaddons, ki18n, kiconthemes, kitemviews, kjobwidgets, kcmutils, kio, knotifications, knotifyconfig, sonnet, ktextwidgets, kwidgetsaddons, kwindowsystem, kxmlgui, kdbusaddons, kdoctools, kirigami, kirigami-addons, openssl, perl, zlib, qtkeychain, boost, imath, gsl, phonon, phonon-backend-vlc, kdiagram, eigen, qca, lcms2, fontconfig, freetype2, shared-mime-info, okular, librevenge, libodfgen, libwpd, libwpg, libwps, libvisio, libetonyek, poppler.
Required by (1): kde-gear-utilities.
Installation
From the repository root, inside the build container, this is the line kdosbuild runs for the port:
script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install calligra'
What kpkg does
kpkg runs these steps, in this order, as root inside the chroot. The port directory is /ports/core/office/calligra.
1. Verify every declared source. Each file a sha256 = line names, found in the port directory or in /var/cache/kpkg/sources, must hash to its line; a mismatch stops the build before anything is unpacked.
cd /ports/core/office/calligra
echo 'f4b9c11f5957798face6cf29834695d76506c5e28049e21abcb62884ce9cc96c calligra-26.08.2.tar.xz' | sha256sum -c -
2. Unpack. The work directory is emptied and the first source is unpacked into $SRC with its top directory stripped; any later tarball lands unstripped beside it in $SRC_ROOT, and a file that is not a tarball is copied into $SRC.
SRC_ROOT=/var/cache/kpkg/work/calligra
SRC=$SRC_ROOT/calligra-26.08.2
PKG=$SRC_ROOT/pkg
rm -rf "$SRC_ROOT"
mkdir -p "$SRC" "$PKG"
tar --no-same-permissions --warning=no-unknown-keyword -xf calligra-26.08.2.tar.xz -C "$SRC" --strip-components=1
Every config.guess and config.sub older than automake’s is then replaced with automake’s, so a configure script recognises the musl target.
3. Build. build.sh is sourced in a subshell under set -e, from $SRC, with name, version, release and the five paths PKGNAME, PORT_SRC, SRC_ROOT, SRC and PKG set as shell variables. Its body, verbatim:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D BUILD_TESTING=OFF \
-D KF_SKIP_PO_PROCESSING=ON \
-D RELEASE_BUILD=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6OpenGL=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6Sql=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6WebEngineWidgets=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Imath=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_GSL=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Phonon4Qt6=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_KChart6=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Eigen3=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Qca-qt6=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_LCMS2=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Fontconfig=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Freetype=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_SharedMimeInfo=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Okular6=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_LibRevenge=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_LibRevengeStream=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_LibOdfGen=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_LibWpd=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_LibWpg=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_LibWps=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_LibVisio=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_LibEtonyek=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Poppler=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_PopplerXPDFHeaders=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_Iconv=ON \
-D CMAKE_DISABLE_FIND_PACKAGE_Cauchy=ON \
-D CMAKE_DISABLE_FIND_PACKAGE_OOoSDK=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
The switches, and why each is set:
-D RELEASE_BUILD=ON— Build the release configuration. Unset, upstream builds as a development tree: the products it marks unmaintained are compiled, among them the Braindump note-mapping application, and the text shape gains a document inspector, a debugging aid. With it those are left out and the products marked staging, such as the 3D shape, stay.-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6OpenGL=ON— With-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6Sql=ONand-D CMAKE_REQUIRE_FIND_PACKAGE_Qt6WebEngineWidgets=ON: make three of the four Qt modules upstream looks for quietly requirements. OpenGL draws Stage’s slide transitions and the Qt Quick document view, Sql gives Sheets its database connection, and WebEngine is the web shape that embeds a page in a document; each is dropped without it. The fourth, Quick Widgets, serves only the Gemini shell, which is not built (see Notes).-D CMAKE_REQUIRE_FIND_PACKAGE_Imath=ON— Make imath a requirement, for the half-float colour channels of the pigment colour library. Every switch from here toCMAKE_REQUIRE_FIND_PACKAGE_Iconvturns one of upstream’s optional searches into a requirement, each of which would otherwise drop its feature with a line in the summary.-D CMAKE_REQUIRE_FIND_PACKAGE_GSL=ON— gsl, for the Sheets solver.-D CMAKE_REQUIRE_FIND_PACKAGE_Phonon4Qt6=ON— phonon, for Stage’s sound event actions and the video shape; playback runs through phonon-backend-vlc, independsfor run time.-D CMAKE_REQUIRE_FIND_PACKAGE_KChart6=ON— KChart from kdiagram, for the chart shape.-D CMAKE_REQUIRE_FIND_PACKAGE_Eigen3=ON— eigen. Without it the whole of Sheets is dropped.-D CMAKE_REQUIRE_FIND_PACKAGE_Qca-qt6=ON— qca, for opening encrypted OpenDocument files and encrypted Excel workbooks.-D CMAKE_REQUIRE_FIND_PACKAGE_LCMS2=ON— lcms2, for colour management.-D CMAKE_REQUIRE_FIND_PACKAGE_Fontconfig=ON— With-D CMAKE_REQUIRE_FIND_PACKAGE_Freetype=ON: fontconfig and freetype2, which together give exact font sizes in layout; both must be found or neither is used.-D CMAKE_REQUIRE_FIND_PACKAGE_SharedMimeInfo=ON— shared-mime-info, through which the filters tell SVM and the OOXML formats apart.-D CMAKE_REQUIRE_FIND_PACKAGE_Okular6=ON— okular, against which the Okular generators for ODT, ODP, DOC, DOCX, PPT, PPTX, RTF and WordPerfect files are built.-D CMAKE_REQUIRE_FIND_PACKAGE_LibRevenge=ON— With-D CMAKE_REQUIRE_FIND_PACKAGE_LibRevengeStream=ON,-D CMAKE_REQUIRE_FIND_PACKAGE_LibOdfGen=ON,-D CMAKE_REQUIRE_FIND_PACKAGE_LibWpd=ON,-D CMAKE_REQUIRE_FIND_PACKAGE_LibWpg=ON,-D CMAKE_REQUIRE_FIND_PACKAGE_LibWps=ON,-D CMAKE_REQUIRE_FIND_PACKAGE_LibVisio=ONand-D CMAKE_REQUIRE_FIND_PACKAGE_LibEtonyek=ON: the Document Liberation libraries behind the legacy import filters, librevenge, libodfgen, libwpd, libwpg, libwps, libvisio and libetonyek. Each filter is dropped when any library it names is missing: WordPerfect to ODT, Works to ODT, WPG to SVG and ODG, Visio to ODG and Keynote to ODP.-D CMAKE_REQUIRE_FIND_PACKAGE_Poppler=ON— With-D CMAKE_REQUIRE_FIND_PACKAGE_PopplerXPDFHeaders=ON: poppler’s Qt 6 interface and its XPDF headers, for Karbon’s PDF import. The XPDF headers are Poppler’s unstable internal API, which the poppler port installs withENABLE_UNSTABLE_API_ABI_HEADERS.-D CMAKE_REQUIRE_FIND_PACKAGE_Iconv=ON— iconv, for the Word.docfilter’s text conversion. musl provides it in the C library, which CMake’sFindIconvrecognises.-D CMAKE_DISABLE_FIND_PACKAGE_Cauchy=ON— Never look for Cauchy’s M2MML, the Matlab and Octave to MathML compiler behind one formula tool. It is not a port, and refused, a stray copy in the build root cannot be picked up.-D CMAKE_DISABLE_FIND_PACKAGE_OOoSDK=ON— Never look for the OpenOffice SDK, which only theslidecomparedeveloper tool uses. It is not a port either.-D KF_SKIP_PO_PROCESSING=ON— Skips building the interface translations, which the package-wide English-only rule would remove anyway (see Size and language policy).
The common switches of each build system are explained in the Flag glossary.
4. Package. kpkg removes libtool archives, the info directory index, mimeinfo.cache and every fonts.dir from $PKG, copies the source’s licence files into /usr/share/licenses/calligra, prunes what the image does not ship, lints the tree and rolls it reproducibly:
tar --sort=name --format=gnu --numeric-owner --owner=0 --group=0 \
--mtime=@$SOURCE_DATE_EPOCH \
--use-compress-program='xz -9 -T0 --block-size=32MiB --no-adjust' \
-cf calligra-26.08.2-1.tar.xz -C "$PKG" .
5. Adopt. kpkgadd installs the package’s files over the root, refusing a path another package owns, records the file list in /var/lib/kpkg/db/calligra, and runs the triggers its paths call for.
Contents
Installed programs: calligraconverter, calligralauncher, calligrasheets, calligrastage, calligrawords, cstester, cstrunner, karbon, visualimagecompare.
Installed libraries: libRtfReader.so, libautocorrection.so, libbasicflakes.so, libcalligrasheetscore.so, libcalligrasheetsengine.so, libcalligrasheetspartlib.so, libcalligrasheetsui.so, libcalligrastageprivate.so, libflake.so, libkarboncommon.so, libkarbonui.so, libkoformula.so, libkomain.so, libkomsooxml.so, libkoodf.so, libkoodf2.so, libkoodfreader.so, libkookularGenerator_odp.so, libkookularGenerator_odt.so, libkopageapp.so, libkoplugin.so, libkostore.so, libkotext.so, libkotextlayout.so, libkovectorimage.so, libkowidgets.so, libkowidgetutils.so, libkowv2.so, libkundo2.so, libpigmentcms.so, libwordsprivate.so.
Installed directories: /usr/lib/qt6/plugins/calligra, /usr/lib/qt6/plugins/calligrasheets, /usr/lib/qt6/plugins/calligrastage, /usr/lib/qt6/plugins/karbon, /usr/lib/qt6/qml/org/kde/calligra, /usr/share/calligra, /usr/share/calligra_shape_music, /usr/share/calligrasheets, /usr/share/calligrastage, /usr/share/calligrawords, /usr/share/color/icc/calligra, /usr/share/doc/HTML/en/calligra, /usr/share/doc/HTML/en/sheets, /usr/share/doc/HTML/en/stage, /usr/share/karbon, /usr/share/kxmlgui5/calligrasheets, /usr/share/kxmlgui5/calligrastage, /usr/share/kxmlgui5/calligrawords, /usr/share/kxmlgui5/karbon, /usr/share/licenses/calligra, /usr/share/templates.
Notes
Building against Okular makes okular a build dependency of this port, so Okular is listed in 43_toolkits rather than 44_apps, as any application another port builds against is.
Gemini, the touch shell over Words and Stage, is not built: upstream’s top-level CMakeLists.txt carries its add_subdirectory(gemini) commented out, and RELEASE_BUILD turns its product off as well. Quick Widgets and libgit2, which only Gemini and its Git plugin use, are therefore neither required nor in depends; whether the configure finds them changes nothing that is built. kirigami and kirigami-addons are in depends for run time: the launcher, calligralauncher, imports their QML modules.
The EPS import filter is built and runs pstoedit at run time, which upstream only reports as a TYPE RUNTIME package; pstoedit is not a port, so importing an EPS file fails with a missing program. Vc stays off: upstream builds it only with BUILD_VC, which this recipe never sets, and its SIMD kernels would be compiled per CPU level.
The PDF import filter follows Poppler’s internal API, which changes without notice between releases; a Poppler bump can break this port’s build while every other Poppler consumer still builds.
The source tarball, about 58 MB, is the largest of the KDE Gear sources in the tree; expect its build to take correspondingly long.