summaryrefslogtreecommitdiff
path: root/eclass/ecm.eclass
AgeCommit message (Collapse)Author
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>
2023-05-18ecm.eclass: ECM_QTHELP needs qhelpgenerator, provided by qttools[assistant]:6Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-05-18ecm.eclass: Add SLOT=6 dependencies if KFMIN is >=5.240Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-05-09ecm.eclass: Drop Qt 5.15.8 from ECM_QTHELP Portage bug workaroundAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-04-08ecm.eclass: Add Qt 5.15.9 to ECM_QTHELP Portage bug workaroundAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-03-26ecm.eclass: Quote argument of ":" commandUlrich Müller
This avoids globbing, see: https://www.shellcheck.net/wiki/SC2223 Signed-off-by: Ulrich Müller <ulm@gentoo.org> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-03-23eclass: standardize prologue/epilogueDavid Seifert
Closes: https://github.com/gentoo/gentoo/pull/30061 Signed-off-by: David Seifert <soap@gentoo.org> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-01-29ecm.eclass: Drop Qt 5.15.7 from ECM_QTHELP Portage bug workaroundAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-01-09ecm.eclass: Add Qt 5.15.8 to ECM_QTHELP Portage bug workaroundAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2023-01-02*/*: Happy new yearAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-12-26ecm.eclass: Drop EAPI-7 supportAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-12-11ecm.eclass: Initial support for Qt6-based consumersAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-12-09ecm.eclass: Drop obsolete Qt 5.15.5Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-11-06ecm.eclass: Raise ECM_QTHELP Portage bug workaround Qt block to 5.15.7Andreas Sturmlechner
5.15.6 never ended up in ::gentoo after all. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-09-24ecm.eclass: Switch to pcre2grep, add dev-libs/libpcre2 to BDEPENDAndreas Sturmlechner
The dependency is basically free since dev-qt/qtcore:5 or dev-qt/qtbase:6 already depend on dev-libs/libpcre2. Bug: https://bugs.gentoo.org/872068 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-09-14ecm.eclass: Workaround Portage depgraph shortcomings from revdeps' sideAndreas Sturmlechner
Bug: https://bugs.gentoo.org/836726 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>