229.1. libkomparediff2-26.08.2
Diff parsing and models, for KDevelop's patch review
26.08.2-1 · GPL-2.0-or-later · 0.5 SBU · 418.7 KiB, 34 files · 43_toolkits, 115 of 344 · ports/core/vcs/libkomparediff2
Homepage: https://invent.kde.org/sdk/libkomparediff2
libkomparediff2 parses unified, context and normal diffs and the output of diff, cvs diff and perforce, into a model of files and hunks that can be applied and reverted hunk by hunk. kdevelop’s patch review and kompare are built on it.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kcoreaddons, kconfig, kxmlgui, ki18n, kio.
Required by (2): kdevelop, kompare.
Sources: libkomparediff2-26.08.2.tar.xz (181.2 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install libkomparediff2'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_TESTING=OFF \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D KF_SKIP_PO_PROCESSING=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D KF_SKIP_PO_PROCESSING=ON— Builds none of the interface translations inpo/; the image is English only (see Size and language policy).
Libraries: libkomparediff2.so.
Directories: /usr/include/KompareDiff2, /usr/lib/cmake/KompareDiff2, /usr/share/licenses/libkomparediff2.