commit:     dc1a919a5fbdfdcd44bbd968d951d52792292a72
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 16 03:16:14 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Oct 16 03:16:14 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc1a919a

sys-devel/clang: [QA] Add cmake-utils_src_prepare

Package-Manager: Portage-2.3.11, Repoman-2.3.3

 sys-devel/clang/clang-4.0.1.ebuild    |  2 +-
 sys-devel/clang/clang-5.0.0.ebuild    |  2 +-
 sys-devel/clang/clang-5.0.9999.ebuild | 13 +++++--------
 3 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/sys-devel/clang/clang-4.0.1.ebuild 
b/sys-devel/clang/clang-4.0.1.ebuild
index 00c6e7371ae..1c7814d237e 100644
--- a/sys-devel/clang/clang-4.0.1.ebuild
+++ b/sys-devel/clang/clang-4.0.1.ebuild
@@ -106,7 +106,7 @@ src_prepare() {
        cd - >/dev/null || die
 
        # User patches
-       eapply_user
+       cmake-utils_src_prepare
 }
 
 multilib_src_configure() {

diff --git a/sys-devel/clang/clang-5.0.0.ebuild 
b/sys-devel/clang/clang-5.0.0.ebuild
index 9761120460e..966aaf7df53 100644
--- a/sys-devel/clang/clang-5.0.0.ebuild
+++ b/sys-devel/clang/clang-5.0.0.ebuild
@@ -101,7 +101,7 @@ src_prepare() {
        cd - >/dev/null || die
 
        # User patches
-       eapply_user
+       cmake-utils_src_prepare
 }
 
 multilib_src_configure() {

diff --git a/sys-devel/clang/clang-5.0.9999.ebuild 
b/sys-devel/clang/clang-5.0.9999.ebuild
index 82f086b4918..b8bfe4b8916 100644
--- a/sys-devel/clang/clang-5.0.9999.ebuild
+++ b/sys-devel/clang/clang-5.0.9999.ebuild
@@ -62,6 +62,11 @@ S=${WORKDIR}/x/y/${P}
 # least intrusive of all
 CMAKE_BUILD_TYPE=RelWithDebInfo
 
+PATCHES=(
+       # fix finding compiler-rt libs
+       
"${FILESDIR}"/5.0.0/0001-Driver-Use-arch-type-to-find-compiler-rt-libraries-o.patch
+)
+
 # Multilib notes:
 # 1. ABI_* flags control ABIs libclang* is built for only.
 # 2. clang is always capable of compiling code for all ABIs for enabled
@@ -101,14 +106,6 @@ src_unpack() {
        git-r3_checkout "${EGIT_REPO_URI}" "${S}"
 }
 
-src_prepare() {
-       # fix finding compiler-rt libs
-       eapply 
"${FILESDIR}"/5.0.0/0001-Driver-Use-arch-type-to-find-compiler-rt-libraries-o.patch
-
-       # User patches
-       eapply_user
-}
-
 multilib_src_configure() {
        local llvm_version=$(llvm-config --version) || die
        local clang_version=$(ver_cut 1-3 "${llvm_version}")

Reply via email to