summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2016-01-26 01:04:14 +1100
committerMichael Palimaka <kensington@gentoo.org>2016-01-26 01:07:07 +1100
commita40546f88e5b50c327e767b8e67c04d582cbb843 (patch)
treec4258028164ee85b60a293eb1d533376509fb5f3 /eclass/cmake-utils.eclass
parentcmake-utils.eclass: ban non-array usage of mycmakeargs in EAPI 6 and later (diff)
downloadgentoo-a40546f88e5b50c327e767b8e67c04d582cbb843.tar.gz
gentoo-a40546f88e5b50c327e767b8e67c04d582cbb843.tar.bz2
gentoo-a40546f88e5b50c327e767b8e67c04d582cbb843.zip
cmake-utils.eclass: use default_src_prepare in EAPI 6 and later
Diffstat (limited to 'eclass/cmake-utils.eclass')
-rw-r--r--eclass/cmake-utils.eclass15
1 files changed, 9 insertions, 6 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 7480a1496ce3..26c5201499a2 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -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
}