commit: e11028263c08c98642570765cb256bf99271962c
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 19 13:08:13 2016 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Sun Jun 19 13:18:57 2016 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=e1102826
kde5.eclass: only export pkg_pretend if KDE_GCC_MINIMAL is defined
Exporting pkg_pretend is expensive, even if the exported function is a noop.
As kde5_pkg_pretend is currently only used to check if the active GCC version
is recent enough, only export that phase if it will have something to do.
The number of situations in which KDE_GCC_MINIMAL is exported will be
substantially reduced in a future commit. This will result in a large time
saving at the beginning of the emerge process as we will no longer see hundreds
of lines of:
>>> Running pre-merge checks for kde-foo/bar-123
>>> Running pre-merge checks for kde-foo/baz-123
eclass/kde5.eclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 7616deb..7c0ce36 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -27,7 +27,7 @@ if [[ ${KDE_BUILD_TYPE} = live ]]; then
esac
fi
-if [[ ${CATEGORY} != kde-frameworks ]]; then
+if [[ -v KDE_GCC_MINIMAL ]]; then
EXPORT_FUNCTIONS pkg_pretend
fi