86a80b2f12
24 KF6 recipes had inline `sed -i` chains in their [build].script that targeted `ecm_install_po_files_as_qm(poqm)` in CMakeLists.txt. Upstream KDE Frameworks 6.26.0 has dropped the call entirely for packages that no longer ship translations — the sed chains were no-ops. Per the v6.0 zero-tolerance policy for sed hacks and dead code, this commit removes the chains rather than leaving them as workaround cruft. Recipes cleaned (24): kf6-attica, kf6-kcolorscheme, kf6-kconfigwidgets, kf6-kcrash, kf6-kguiaddons, kf6-ki18n, kf6-kiconthemes, kf6-kidletime, kf6-kimageformats, kf6-kio, kf6-kitemmodels, kf6-knewstuff, kf6-kpackage, kf6-kservice, kf6-ksvg, kf6-ktexteditor, kf6-ktextwidgets, kf6-kwallet, kf6-kxmlgui, kf6-parts, kf6-plasma-activities, kf6-prison, kf6-pty, plasma-framework Each recipe lost 1-17 sed lines (5-line multi-line `sed -i ... \ file` continuations correctly consumed). All 24 recipes still parse as valid TOML. Helper: `local/scripts/cleanup-kf6-noop-seds.sh` (new). Walks the NO-OP list, makes a timestamped backup, removes the sed chain + any orphan `\\` continuation + any orphan `&& cd` continuation, verifies zero sed lines remain. Idempotent. The 15 HAS-LINE recipes (kf6-kauth, kf6-kbookmarks, kf6-kcodecs, kf6-kcompletion, kf6-kconfig, kf6-kcoreaddons, kf6-kdbusaddons, kf6-kglobalaccel, kf6-kitemviews, kf6-kjobwidgets, kf6-knotifications, kf6-kwidgetsaddons, kf6-solid, kf6-sonnet, kf6-syntaxhighlighting) still have their sed chains in place and will be migrated to external patches via `migrate-kf6-seds-to-patches.sh` in a follow-up. The 2 git-sourced recipes (breeze, kirigami, …) will be handled once their source is fetched and the line-presence check can run.
55 lines
1.6 KiB
TOML
55 lines
1.6 KiB
TOML
#TODO: Prison — barcode/QR code framework. Build the core KF6 library now; Data Matrix, scanner, and QML paths stay disabled on Redox.
|
|
[source]
|
|
tar = "https://download.kde.org/stable/frameworks/6.26/prison-6.26.0.tar.xz"
|
|
blake3 = "2ce0fae697ab529dbb52881a5c78bcd5ccbc0cdf98d0b359ce8d943ec020af10"
|
|
|
|
[build]
|
|
template = "custom"
|
|
dependencies = [
|
|
"qtbase",
|
|
"qtdeclarative",
|
|
"kf6-extra-cmake-modules",
|
|
"kf6-kcoreaddons",
|
|
"kf6-ki18n",
|
|
"libqrencode",
|
|
]
|
|
script = """
|
|
DYNAMIC_INIT
|
|
|
|
HOST_BUILD="${COOKBOOK_ROOT}/build/qt-host-build"
|
|
|
|
for qtdir in plugins mkspecs metatypes modules; do
|
|
if [ -d "${COOKBOOK_SYSROOT}/usr/${qtdir}" ] && [ ! -e "${COOKBOOK_SYSROOT}/${qtdir}" ]; then
|
|
ln -s "usr/${qtdir}" "${COOKBOOK_SYSROOT}/${qtdir}"
|
|
fi
|
|
done
|
|
|
|
|
|
rm -f CMakeCache.txt
|
|
rm -rf CMakeFiles
|
|
|
|
cmake "${COOKBOOK_SOURCE}" \
|
|
-DCMAKE_TOOLCHAIN_FILE="${COOKBOOK_ROOT}/local/recipes/qt/redox-toolchain.cmake" \
|
|
-DQT_HOST_PATH="${HOST_BUILD}" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}:${COOKBOOK_STAGE}/usr/lib/cmake" \
|
|
-DBUILD_TESTING=OFF \
|
|
-DBUILD_QCH=OFF \
|
|
-DUSE_DBUS=OFF \
|
|
-DWITH_QUICK=OFF \
|
|
-DBUILD_WITH_QML=OFF \
|
|
-DWITH_MULTIMEDIA=OFF \
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Dmtx=ON \
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_ZXing=ON \
|
|
-Wno-dev
|
|
|
|
cmake --build . -j${COOKBOOK_MAKE_JOBS}
|
|
cmake --install . --prefix "${COOKBOOK_STAGE}/usr"
|
|
|
|
for lib in "${COOKBOOK_STAGE}/usr/lib/"libKF6*.so.*; do
|
|
[ -f "${lib}" ] || continue
|
|
patchelf --remove-rpath "${lib}" 2>/dev/null || true
|
|
done
|
|
"""
|