summaryrefslogtreecommitdiff
path: root/eclass
AgeCommit message (Collapse)Author
2025-10-07cmake.eclass: Raise dev-build/cmake minimum to 3.31.9-r1Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-10-07gear.kde.org.eclass: Mark 25.08.2 unreleasedAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-10-05frameworks.kde.org.eclass: Mark 6.19.0 unreleasedAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-10-05cmake.eclass: Raise minimum dev-build/cmake version to 3.28.5Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-10-05cmake.eclass: Update CMAKE_WARN_UNUSED_CLI default value descriptionPetr Vaněk
This commit updates the CMAKE_WARN_UNUSED_CLI variable description to accurately reflect the default value set to "yes". The CMAKE_WARN_UNUSED_CLI default value was changed to "yes" in cmake-utils.eclass in commit 3600c714eb86 ("cmake-utils.eclass: enable CMAKE_WARN_UNUSED_CLI for EAPI 6"), but the description did not reflect it. This description was later reused in the new cmake.eclass [1] without reflecting the default value either. Fixes: 9053737a4e16 ("cmake.eclass: New eclass, EAPI-7 only cleanup of cmake-utils") [1] Signed-off-by: Petr Vaněk <arkamar@gentoo.org> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-10-05cmake.eclass: disable automagic LTOSam James
Pass -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF to avoid automagically enabling LTO if the compiler supports it. Note that unlike what we do w/ meson.eclass, we can't do some magic with `tc-is-lto` here because CMake doesn't allow refining the parallelism used. But that's fine. This change still allows using LTO via *FLAGS which is what we tell people to do. Bug: https://bugs.gentoo.org/927157 Signed-off-by: Sam James <sam@gentoo.org>
2025-10-02cmake.eclass: Really warn all EAPI-7 consumers that support will be droppedAndreas Sturmlechner
... after 2025-11-01. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-09-30cmake.eclass: fix pms violationPaul Zander
Escape sequences are not allowed for `die`, use eerror instead. Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-09-30cmake.eclass: allow nonfatal cmake_src_testAlfred Wingate
This is already expected in tree via virtx use. $ qgrep 'virtx cmake_src_test' | wc -l 57 Bug: https://bugs.gentoo.org/961929 Closes: https://github.com/gentoo/gentoo/pull/40307 Signed-off-by: Alfred Wingate <parona@protonmail.com> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-09-30cmake.eclass: Provide cmake_prepare() to solve conflicts w/ other eclassAndreas Sturmlechner
Split out what we need from cmake_src_prepare into new cmake_prepare(). cmake_src_prepare henceforth just calls default_src_prepare(), then cmake_prepare(). This change was made for >=EAPI-8 only. Bug: https://bugs.gentoo.org/853805 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-09-27cmake.eclass: Reorder arguments in cmake_src_install cmake_build callAndreas Sturmlechner
Bug: https://bugs.gentoo.org/963428 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-09-12frameworks.kde.org.eclass: Mark 6.18.0 as releasedAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-09-11gear.kde.org.eclass: Mark 25.08.1 as releasedAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-09-09gear.kde.org.eclass: Mark 25.08.1 unreleasedAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-09-08frameworks.kde.org.eclass: Mark 6.18.0 unreleasedAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-08-14gear.kde.org.eclass: Mark 25.08.0 as releasedAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-08-14kde-apps/umbrello: Port to KF6Andreas Sturmlechner
Upstream commit bd0cd90a0ef37e4a2e7fe4eb0602973a58666d04 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-08-14kde-apps/rocs: Port to KF6Andreas Sturmlechner
Upstream commits: 71c9683e5a14f860fb366b2a39b34f3d44737985 91f69fc0e01768170313c30a2d1d9c2d16b8e5cd 26e54e41e6cef825c8cde340ec292016dfd88451 a62993be0710df8260922e20486449d2426464e9 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-08-10frameworks.kde.org.eclass: Mark 6.17.0 as releasedAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-08-08gear.kde.org.eclass: Mark 25.08.0 unreleasedAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-08-04frameworks.kde.org.eclass: Mark 6.17.0 unreleasedAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-07-11frameworks.kde.org.eclass: Mark 6.16 as releasedAndreas 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-05frameworks.kde.org.eclass: Mark 6.16.0 unreleasedAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-07-05gear.kde.org.eclass: Mark 25.04.3 as releasedAndreas Sturmlechner
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-07-01gear.kde.org.eclass: Mark 25.04.3 unreleasedAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-26kde-apps/ktouch: Port to KF6, add upstream metadataAndreas Sturmlechner
See also: https://invent.kde.org/education/ktouch/-/merge_requests/40 https://invent.kde.org/education/ktouch/-/merge_requests/41 Bug: https://bugs.gentoo.org/954003 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-24cmake.eclass: Avoid false positives by ensuring we find a function callAndreas Sturmlechner
Otherwise the regex might pick up a query of the resulting version var, e.g.: > if(CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 2.8.12) Bug: https://bugs.gentoo.org/958923 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-17plasma.kde.org.eclass: Mark 6.4.0 as releasedAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-16kde-apps/kamoso: Port to KF6Andreas Sturmlechner
Upstream commit fb48cbb8bb903b28c9a078d22b27702e350977d5 Bug: https://bugs.gentoo.org/954003 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-15frameworks.kde.org.eclass: Mark 6.15 as releasedAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-14cmake.eclass: Add src_install() check for CMake-4-incompatible modulesAndreas Sturmlechner
See examples: https://bugs.gentoo.org/953075 https://bugs.gentoo.org/957670 https://bugs.gentoo.org/957671 https://bugs.gentoo.org/957803 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-14cmake.eclass: Avoid none-detection by ensuring match starts w/ digitAndreas Sturmlechner
Thanks-to: Ionen Wolkens <ionen@gentoo.org> Closes: https://bugs.gentoo.org/957990 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-14cmake.eclass: mv _CMAKE_MINREQVER_UNSUPPORTED detection to src_prepareAndreas Sturmlechner
- _cmake_minverreq-lt(): New function for reusability of regex - Optimise #1: Reuse existing loop over CMakeLists.txt files - Optimise #2: If _CMAKE_MINREQVER_UNSUPPORTED is already set, then no further run of _cmake_minverreq-lt is necessary since we currently throw away the info on affected files - Relegate "CMake 4 detected; ..." to be a non-QA Notice, it is just an addendum Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-13cmake.eclass: Introduce _CMAKE_MINREQVER_UNSUPPORTEDAndreas Sturmlechner
Allows to split detection/eqawarn and applying cmakearg over different phases. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-12plasma.kde.org.eclass: Mark 6.4.0 unreleasedAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-12frameworks.kde.org.eclass: Mark 6.15 unreleasedAndreas Sturmlechner
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-06-06cmake.eclass: quote "${file}" for sedsSam James
Otherwise sed may fail (as it can't find the files) on directories/files with spaces in the path, as is the case in dev-build/cmake itself where it'll die in src_prepare. Signed-off-by: Sam James <sam@gentoo.org>
2025-06-05gear.kde.org.eclass: Mark 25.04.2 as releasedAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-04cmake.eclass: _cmake_modify-cmakelists(): Consolidate the sedAndreas Sturmlechner
See also: https://github.com/gentoo/kde/pull/1046#pullrequestreview-2897140501 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-04cmake.eclass: Improve _cmake_modify-cmakelists()Andreas Sturmlechner
50% less find 50% less grep 100% less cut Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-04kde-apps/kig: Port to KF6Andreas Sturmlechner
Upstream commit 2589ea350005eb4e665939727cfc72c9c6974579 and following... Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-03gear.kde.org.eclass: Mark 25.04.2 unreleasedAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-03cmake.eclass: Use get_makeopts_{jobs,loadavg}Michał Górny
See also: https://github.com/gentoo/gentoo/pull/39544 Signed-off-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-03cmake.eclass: Permit overriding CTEST_{JOBS,LOADAVG}Michał Górny
Bug: https://bugs.gentoo.org/945081 Signed-off-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-06-02cmake.eclass: CMake 4 QA check: Make sed case-insensitiveAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2025-05-22cmake.eclass: EAPI=7: Extra slap on wristAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>