summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2016-06-19 23:08:13 +1000
committerMichael Palimaka <kensington@gentoo.org>2016-07-07 04:49:45 +1000
commit2b399d66100724cf7eb03d2a2f98c3d552feea12 (patch)
tree2770a3ab10bdd0de608437364ad3a33fda9d9b0e /eclass/kde5.eclass
parentkde5-functions: die if too many arguments are passed to add_*_dep (diff)
downloadgentoo-2b399d66100724cf7eb03d2a2f98c3d552feea12.tar.gz
gentoo-2b399d66100724cf7eb03d2a2f98c3d552feea12.tar.bz2
gentoo-2b399d66100724cf7eb03d2a2f98c3d552feea12.zip
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
Diffstat (limited to 'eclass/kde5.eclass')
-rw-r--r--eclass/kde5.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 4da810b5023c..5c4bbba8e4ad 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