summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2016-04-16 06:30:07 +1000
committerMichael Palimaka <kensington@gentoo.org>2016-04-21 03:15:33 +1000
commit2f5c34d9ceeca534181c42fa04ecd0dd04e15f53 (patch)
treec879693ae72312bf15a81ea708d856354c6158d5
parentkde5.eclass: merge type is already checked in _check_gcc_version (diff)
downloadgentoo-2f5c34d9ceeca534181c42fa04ecd0dd04e15f53.tar.gz
gentoo-2f5c34d9ceeca534181c42fa04ecd0dd04e15f53.tar.bz2
gentoo-2f5c34d9ceeca534181c42fa04ecd0dd04e15f53.zip
kde5.eclass: don't run pkg_pretend for kde-frameworks
Merely exporting the phase function is very expensive, even if nothing useful is done inside it. Frameworks are supposed to support GCC 4.5 at a minimum which is old enough to make it safe enough to omit the check.
-rw-r--r--eclass/kde5.eclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index fce7d129102a..675023b6e515 100644
--- a/eclass/kde5.eclass
+++ b/eclass/kde5.eclass
@@ -27,7 +27,11 @@ if [[ ${KDE_BUILD_TYPE} = live ]]; then
esac
fi
-EXPORT_FUNCTIONS pkg_pretend pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_preinst pkg_postinst pkg_postrm
+if [[ ${CATEGORY} != kde-frameworks ]]; then
+ EXPORT_FUNCTIONS pkg_pretend
+fi
+
+EXPORT_FUNCTIONS pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_preinst pkg_postinst pkg_postrm
# @ECLASS-VARIABLE: QT_MINIMAL
# @DESCRIPTION: