kde5.eclass: don't run pkg_pretend for kde-frameworks
authorMichael Palimaka <kensington@gentoo.org>
Fri, 15 Apr 2016 20:30:07 +0000 (06:30 +1000)
committerMichael Palimaka <kensington@gentoo.org>
Wed, 20 Apr 2016 17:15:33 +0000 (03:15 +1000)
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

index fce7d129102a2bb8d559186ef6005c9e93363315..675023b6e515de1e21602d9a6a3729f2251cccf2 100644 (file)
@@ -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: