cmake-utils.eclass: use default_src_prepare in EAPI 6 and later
authorMichael Palimaka <kensington@gentoo.org>
Mon, 25 Jan 2016 14:04:14 +0000 (01:04 +1100)
committerMichael Palimaka <kensington@gentoo.org>
Mon, 25 Jan 2016 14:07:07 +0000 (01:07 +1100)
eclass/cmake-utils.eclass

index 7480a1496ce33639b4e44c4cb4c7bd606a74e7ad..26c5201499a2b1bc2d0a0fd5e14288023014f4e8 100644 (file)
@@ -438,13 +438,16 @@ enable_cmake-utils_src_prepare() {
 
        pushd "${S}" > /dev/null || die
 
-       has "${EAPI:-0}" 6 && _cmake_cleanup_cmake
-
-       debug-print "$FUNCNAME: PATCHES=$PATCHES"
-       [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
+       if ! has "${EAPI:-0}" 2 3 4 5 ; then
+               default_src_prepare
+               _cmake_cleanup_cmake
+       else
+               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
 }