Skip to content

Commit

Permalink
cmake-utils.eclass: use default_src_prepare in EAPI 6 and later
Browse files Browse the repository at this point in the history
  • Loading branch information
kensington committed Jan 25, 2016
1 parent fc25e35 commit a40546f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions eclass/cmake-utils.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a40546f

Please sign in to comment.