summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/cmake-utils.eclass15
1 files changed, 10 insertions, 5 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 82e2f19300c..f6bb9dd555c 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -426,13 +426,18 @@ enable_cmake-utils_src_prepare() {
pushd "${S}" > /dev/null || die
- has "${EAPI:-0}" 6 && _cleanup_cmake
+ if has "${EAPI:-0}" 6 ; then
+ _cleanup_cmake
+ default_src_prepare
+ fi
- debug-print "$FUNCNAME: PATCHES=$PATCHES"
- [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
+ if has "${EAPI:-0}" 2 3 4 5 ; then
+ debug-print "$FUNCNAME: PATCHES=$PATCHES"
+ [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
- debug-print "$FUNCNAME: applying user patches"
- epatch_user
+ debug-print "$FUNCNAME: applying user patches"
+ epatch_user
+ fi
popd > /dev/null || die
}