commit: dc5edd5d4ea11ea4e87c0d5388460633a51fb696
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 15 20:30:07 2016 +0000
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Fri Apr 15 20:30:07 2016 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=dc5edd5d
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.
eclass/kde5.eclass | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/eclass/kde5.eclass b/eclass/kde5.eclass
index 5d2dc14..953a640 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 pkg_nofetch 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 pkg_nofetch src_unpack src_prepare src_configure
src_compile src_test src_install pkg_preinst pkg_postinst pkg_postrm
# @ECLASS-VARIABLE: QT_MINIMAL
# @DESCRIPTION: