summaryrefslogtreecommitdiff
path: root/eclass/ecm.eclass
AgeCommit message (Collapse)Author
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>
2022-07-09ecm.eclass: Support single dependency ecm_punt_bogus_dep callAndreas Sturmlechner
Bringing back usefulness outside of KF5/Qt5 calls with multiple components. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-03-26ecm.eclass: provides virtualx.eclassSam James
As discussed with asturm. Signed-off-by: Sam James <sam@gentoo.org>
2022-03-25*.eclass: @ECLASS-VARIABLE renamed to @ECLASS_VARIABLEUlrich Müller
Bug: https://bugs.gentoo.org/835396 Signed-off-by: Ulrich Müller <ulm@gentoo.org> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-01-08ecm.eclass: Fix sed typo in _ecm_punt_kfqt_module()Andreas Sturmlechner
But also add '${dep}' info to 'removed by ecm.eclass' output. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2022-01-04*/*: Happy new year!Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-12-29ecm.eclass: Use new ecm_punt_kf_module/ecm_punt_qt_module internallyAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-12-29ecm.eclass: Introduce ecm_punt_kf_module and ecm_punt_qt_moduleAndreas Sturmlechner
Upstream has begun replacing find_package(Qt5 ...) with find_package(Qt${QT_MAJOR_VERSION}) ...) for optional build with Qt6 - this breaks existing ecm_punt_bogus_dep() regexps. There is no known usage of ecm_punt_bogus_dep with anything else than Qt5 or KF5, so simply replace it with two public functions fixed on Qt* and KF* module removal. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-12-26ecm.eclass: Case-insensitivity for grep and sedAndreas Sturmlechner
Reported-by: Milos Popovic <gpopac@gmail.com> Bug: https://bugs.gentoo.org/829998 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-11-19ecm.eclass: set KDE_DEBUG=1 for ecm_src_testJames Beddek
The KDE_DEBUG variable [1] prevents crash handlers such as DrKonqi from launching if a test were to segfault. This prevents a hanging test phase where DrKonqi has launched and is waiting for input on the virtx display. [sam: We already try to disable apport/similar crash reporters because they slow down tests, don't always play well in sandbox, and confuse users, so this seems like a natural change.] [1]: https://userbase.kde.org/KDE_System_Administration/Environment_Variables#KDE_DEBUG Signed-off-by: James Beddek <telans@posteo.de> Closes: https://github.com/gentoo/gentoo/pull/22643 Signed-off-by: Sam James <sam@gentoo.org>
2021-09-02ecm.eclass: Sync with Gentoo ebuild repositoryAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-08-21ecm.eclass: Drop exec. bit from .desktop files in xdg standard dirAndreas Sturmlechner
Bug: https://bugs.gentoo.org/621970 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-08-21ecm.eclass: Support EAPI-8Andreas Sturmlechner
Raise baseline Frameworks version to 5.82.0. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-04-17ecm.eclass: EAPI whitelist and EXPORT_FUNCTIONS ahead of inherit guardAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-04-11ecm.eclass: KDE Applications -> KDE GearAndreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
2021-01-01*/*: Happy new Year!Andreas Sturmlechner
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>