summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2025-10-24 22:12:23 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2025-10-30 10:26:33 +0100
commitd43843594b9d8d67e349f7cc54a6911a9bd2067a (patch)
tree608fc6aac9273276d64f2618eb3fde74cfcf18f6 /eclass
parent1c0bae1f9233fed3ee39ac3004a23f0adec56dad (diff)
downloadkde-d43843594b9d8d67e349f7cc54a6911a9bd2067a.tar.gz
kde-d43843594b9d8d67e349f7cc54a6911a9bd2067a.tar.bz2
kde-d43843594b9d8d67e349f7cc54a6911a9bd2067a.zip
ecm.eclass: Drop obsolete KF version quirks
ECM_PYTHON_BINDINGS was only used since KF6. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ecm.eclass14
1 files changed, 6 insertions, 8 deletions
diff --git a/eclass/ecm.eclass b/eclass/ecm.eclass
index 45ebb114c7f..298a06bdd2c 100644
--- a/eclass/ecm.eclass
+++ b/eclass/ecm.eclass
@@ -113,8 +113,7 @@ fi
# @ECLASS_VARIABLE: ECM_PYTHON_BINDINGS
# @DESCRIPTION:
# Default value is "false", which means do nothing.
-# If set to "off", pass -DBUILD_PYTHON_BINDINGS=OFF to mycmakeargs, and also
-# disable cmake finding Python3, PySide6 and Shiboken6 to make it quiet.
+# If set to "off", pass -DBUILD_PYTHON_BINDINGS=OFF to mycmakeargs.
# No other value is implemented as python bindings are not supported in Gentoo.
: "${ECM_PYTHON_BINDINGS:=false}"
@@ -125,7 +124,9 @@ fi
# If set to "true", add "doc" to IUSE, add the appropriate dependency, let
# -DBUILD_QCH=ON generate and install Qt compressed help files when USE=doc.
# If set to "false", do nothing.
-if [[ ${CATEGORY} = kde-frameworks ]] && ver_test -lt 6.15; then
+if [[ ${CATEGORY} = kde-frameworks && ${_KFSLOT} == 5 ]]; then
+# TODO: Implement KF 6.15 changes how API documentation is built. See also:
+# https://mail.kde.org/pipermail/distributions/2025-June/001595.html
: "${ECM_QTHELP:=true}"
fi
: "${ECM_QTHELP:=false}"
@@ -562,12 +563,12 @@ ecm_src_prepare() {
# limit playing field of locale stripping to kde-*/ categories
if [[ ${CATEGORY} = kde-* ]] ; then
- # TODO: cleanup after KF5 removal and pre-KF-6.16 cleanup:
+ # TODO: cleanup after KF5 removal:
# always install unconditionally for <kconfigwidgets-6.16 - if you use
# language X as system language, and there is a combobox with language
# names, the translated language name for language Y is taken from
# /usr/share/locale/Y/kf${_KFSLOT}_entry.desktop
- if ! { [[ ${PN} == kconfigwidgets ]] && ver_test -lt 6.16; } ; then
+ if ! [[ ${PN} == kconfigwidgets && ${_KFSLOT} == 5 ]]; then
_ecm_strip_handbook_translations
fi
fi
@@ -644,9 +645,6 @@ ecm_src_configure() {
if [[ ${ECM_PYTHON_BINDINGS} == off ]]; then
cmakeargs+=( -DBUILD_PYTHON_BINDINGS=OFF )
- if ver_test -lt 6.15; then
- cmakeargs+=( -DCMAKE_DISABLE_FIND_PACKAGE_{Python3,PySide6,Shiboken6}=ON )
- fi
fi
if [[ ${ECM_QTHELP} = true ]]; then