summaryrefslogtreecommitdiff
path: root/eclass/ecm.eclass
AgeCommit message (Collapse)Author
2025-11-16ecm.eclass: Handle ECM_TEST=forceoptional in cmake_prepare-per-cmakelistsAndreas Sturmlechner
- Make ECM_TEST=forceoptional recursive by default - Leave ECM_TEST=forceoptional-recursive for BUILD_TESTING patch creation - Unrelated: Drop obsolete extra-cmake-modules condition, it uses cmake.eclass Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-10-30ecm.eclass: Drop obsolete KF version quirksAndreas Sturmlechner
ECM_PYTHON_BINDINGS was only used since KF6. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-10-28ecm.eclass: fix 2 option conversions to cache varsSam James
Bug: https://bugs.gentoo.org/963981 Fixes: f8c7af1b51019f5101457b35ccdd38d52e4cf1bb Signed-off-by: Sam James <sam@gentoo.org>
2025-10-27ecm.eclass: Use our own initial-cache file on top of cmake.eclass'Andreas Sturmlechner
Define KDEInstallDirs variables to fix ECM >=6.19 warnings. Use the opportunity and cleanup some quirks including ECM_KDEINSTALLDIRS. Bug: https://bugs.gentoo.org/963981 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-10-15ecm.eclass: Set CMAKE_ECM_MODE=true pre-inheriting cmakeAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-07-05ecm.eclass: Restrict _ecm_strip_handbook_translations quirk to <6.16Andreas Sturmlechner
Upstream commit 94e3edb259a4cc74545facd49e78867f6ec809fd Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-07-02ecm.eclass: Move dev-qt/qttools:6[assistant] behind IUSE doc againAndreas Sturmlechner
Bug: https://bugs.gentoo.org/959142 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-12ecm.eclass: Avoid unused cmake arg warnings w/ >=KF-6.15Andreas Sturmlechner
Upstream now only searches for these Python libs inside the BUILD_PYTHON_BINDINGS conditional if enabled. See also: https://invent.kde.org/frameworks/kunitconversion/-/commit/2c1239dd Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-12ecm.eclass: Restrict ECM_QTHELP to <6.15 for KDE FrameworksAndreas Sturmlechner
6.15 changes how API documentation is built, and we haven't implemented it yet. See also: https://mail.kde.org/pipermail/distributions/2025-June/001595.html Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-04-23ecm.eclass: use 'QA Notice:' prefix in eqawarnSam James
This makes life easier for tinderboxes, but we should improve this in some future EAPI. Signed-off-by: Sam James <sam@gentoo.org>
2025-03-04ecm.eclass: ecm_src_install: Pass arguments to cmake_src_installAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-03-04ecm.eclass: Fix missing arguments handover to cmake_src_testAndreas Sturmlechner
This omission impressively goes back to initial kde overlay commit 8265e71f48675ee84f8c745734ee157cc74cea6a on 2008-08-04. Bug: https://bugs.gentoo.org/946863 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-02-26ecm.eclass: Improve _ecm_punt_kdoctools_install(), ecm_punt_po_install()Andreas Sturmlechner
Allow for whitespace padding within kdoctools_install and ki18n_install. Odd that this hasn't come up before. Closes: https://bugs.gentoo.org/950317 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-02-03eclass: Say belated happy new year as wellAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-01-12ecm.eclass: Strip SLOT of sub-slot to sanitise metainfo target pathAndreas Sturmlechner
Amends c715f7a87d835a5d7eb9204475e4e8360c6e8908 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-12-18ecm.eclass: Introduce _ecm_handbook_optional() to support BUILD_DOCAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-12-17ecm.eclass: Replace KDE_GCC_MINIMAL logic with tc-check-min_verAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-12-16ecm.eclass: Add "QA Notice:" to eqawarnAndreas Sturmlechner
Bug: https://bugs.gentoo.org/813330 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-12-14ecm.eclass: Unexport pkg_setup w/ KFMIN >=6.9, drop KDE_GCC_MINIMALAndreas Sturmlechner
Keep inheriting toolchain-funcs.eclass for EAPI-8 only. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-12-14ecm.eclass: Unexporting phase functions run by xdg.eclassAndreas Sturmlechner
Starts with consumers requesting >=KFMIN-6.9.0. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-12-14ecm.eclass: Force ECM_NONGUI=true on CATEGORY=kde-frameworksAndreas Sturmlechner
First step towards deprecating this variable. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-12-06ecm.eclass: Add ECM_PYTHON_BINDINGS to (so far only) disable thoseAndreas Sturmlechner
See also: https://invent.kde.org/teams/goals/streamlined-application-development-experience/-/issues/9 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-11-15ecm.eclass: Drop checks for _FRAMEWORKS_KDE_ORG_ECLASS in global scopeAndreas Sturmlechner
Other eclass' guard variables are not accessible in global scope. This (mostly) reverts commit 5f34bb1bd9f2349f3ab3bfd09522b7fbb12c4042. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-11-15ecm.eclass: CATEGORY=kde-frameworks -> -n _FRAMEWORKS_KDE_ORG_ECLASSAndreas Sturmlechner
Not all Frameworks packages are always in kde-frameworks category - sometimes they are moving - but they all inherit frameworks.kde.org.eclass. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-11-15ecm.eclass: Replace check for CATEGORY with kde.org.eclass testAndreas Sturmlechner
These categories may have sufficed at the creation of ecm.eclass, but not at this point. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-11-15ecm.eclass: Disable appiumtests as wellAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-11-15ecm.eclass: Drop live ebuild warningAndreas Sturmlechner
Closes: https://bugs.gentoo.org/823808 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-11-15ecm.eclass: Switch ECM_PO_DIRS to being an arrayAndreas Sturmlechner
Zero current use in ::kde or ::gentoo and highly unlikely anywhere else, so I think we can get away with it. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-11-15ecm.eclass: Drop KF 5.9999 supportAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-11-15ecm.eclass: Bump to KFMIN=5.116.0 baselineAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-21ecm.eclass: Add ECM_REMOVE_FROM_INSTALL for install image file removalAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-21ecm.eclass: Add ECM_HANDBOOK="forceoff"Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-21ecm.eclass: Add ecm_punt_po_install()Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-08-14ecm.eclass: For kde.org projects, try to rename metainfo file real hardAndreas Sturmlechner
- detect if we are inheriting kde.org.eclass - detect if package name is not the same as upstream name (KDE_ORG_NAME) - iterate through "${ED}"/usr/share/metainfo/ - if file contains KDE_ORG_NAME or similar, rename that to ${PN}${SLOT/0*/} - otherwise, prepend "${PN}${SLOT/0*/}-" after ^org.kde. Notably, this does not (yet?) trigger if a package ${PN} == ${KDE_ORG_NAME} but different SLOTs. Should we just do that all the time? Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-06-17ecm.eclass: Fix _ecm_check_gcc_versionAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-06-14ecm.eclass: For _KFSLOT=6, RDEPEND on >=kde-frameworks/kf-env-6Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-06-12ecm.eclass: Pass -DKDE_INSTALL_LIBEXECDIR="${EPREFIX}/usr/libexec"Andreas Sturmlechner
But only in KF6-based packages as those are still masked, for getting away with changing installed files. Bug: https://bugs.gentoo.org/928345 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-04-21ecm.eclass: Restrict ECM_TEST="optional" and punting dep to _KFSLOT=5Andreas Sturmlechner
In dev-qt/qtbase:6, Qt6Test is always provided so it makes no sense to go through the trouble of ripping out the build dependency. We should still aim to avoid needless building of tests if not requested, either by detecting unconditional use of ecm_add_test or expose existing force* logic to ebuild developers to catch those as errors. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2024-01-13ecm.eclass: app-doc/doxygen -> app-text/doxygenSam James
Signed-off-by: Sam James <sam@gentoo.org>
2024-01-01*/*: Happy new yearAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-12-21ecm.eclass: Drop dev-qt/qtbase:6[test]Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-11-26ecm.eclass: Use _KFSLOT to aptly configure KF5/KF6 based packagesAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-11-26ecm.eclass: Enforce QT_MAJOR_VERSION=6 for packages w/ KFMIN >= 5.240Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-11-26ecm.eclass: Relax kde-frameworks/extra-cmake-modules SLOT dep to :*Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-11-12ecm.eclass: Raise baseline Frameworks version (KFMIN) to 5.106.0Andreas Sturmlechner
In ecm.eclass, this only affects BDEPENDs, and in practise every ebuild making use of KFMIN in RDEPEND will set their own minimum pre-inherit. Many KDE packages already require 5.101 at a minimum for new API and porting away from deprecated. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-09-09ecm.eclass: Drop supposedly obsolete dev-qt/qthelp crutch for PortageAndreas Sturmlechner
Bug: https://bugs.gentoo.org/836726 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-07-24ecm.eclass: Drop Qt 5.15.9 from ECM_QTHELP Portage bug workaroundAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-06-17ecm.eclass: Add Qt 5.15.10 to ECM_QTHELP Portage bug workaroundAndreas Sturmlechner
Bug: https://bugs.gentoo.org/908715 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-05-27ecm.eclass: Use QT_QPA_PLATFORM=offscreen instead of virtualx.eclassAndreas Sturmlechner
Keep inheriting virtualx.eclass since it is expected from ecm.eclass for now. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-05-20ecm.eclass: Need to exclude KDE Frameworks 5.9999 from KFMIN>=5.240 checkAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>