kde5.eclass: In kde5_src_prepare, place cmake-utils_src_prepare on top
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Sat, 2 Jan 2016 01:36:11 +0000 (02:36 +0100)
committerMichael Palimaka <kensington@gentoo.org>
Mon, 4 Jan 2016 17:00:00 +0000 (04:00 +1100)
This change makes PATCHES handling less error prone, as epatch will find
a pristine directory before there is punting and commenting.

eclass/kde5.eclass

index 6ed2bd7759b2f3a68bce80dc1223b1ab415eb719..9aede6d6f79bf92cdcefc5a31e4a996b4e29c037 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -396,6 +396,8 @@ kde5_src_unpack() {
 kde5_src_prepare() {
        debug-print-function ${FUNCNAME} "$@"
 
+       cmake-utils_src_prepare
+
        # only build examples when required
        if ! use_if_iuse examples || ! use examples ; then
                comment_add_subdirectory examples
@@ -472,8 +474,6 @@ kde5_src_prepare() {
                        comment_add_subdirectory tests
                fi
        fi
-
-       cmake-utils_src_prepare
 }
 
 # @FUNCTION: kde5_src_configure