commit:     ed99fa624d7f39a7055358dd2663b8b3f6b6c48b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 17 21:51:00 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Feb 17 22:05:54 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed99fa62

sys-devel/llvm: Extend the FreeBSD fix fix to remaining ebuilds

 sys-devel/llvm/llvm-3.8.0_rc2.ebuild | 4 +++-
 sys-devel/llvm/llvm-9999.ebuild      | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/sys-devel/llvm/llvm-3.8.0_rc2.ebuild 
b/sys-devel/llvm/llvm-3.8.0_rc2.ebuild
index b3b7e4e..5fcf094 100644
--- a/sys-devel/llvm/llvm-3.8.0_rc2.ebuild
+++ b/sys-devel/llvm/llvm-3.8.0_rc2.ebuild
@@ -418,7 +418,9 @@ src_install() {
        multilib-minimal_src_install
 
        # Remove unnecessary headers on FreeBSD, bug #417171
-       use kernel_FreeBSD && use clang && rm 
"${ED}"usr/lib/clang/${PV}/include/{std,float,iso,limits,tgmath,varargs}*.h
+       if use kernel_FreeBSD && use clang; then
+               rm 
"${ED}"usr/lib/clang/${PV}/include/{std,float,iso,limits,tgmath,varargs}*.h || 
die
+       fi
 }
 
 multilib_src_install() {

diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild
index 4cef57b..97ed7fd 100644
--- a/sys-devel/llvm/llvm-9999.ebuild
+++ b/sys-devel/llvm/llvm-9999.ebuild
@@ -395,7 +395,9 @@ src_install() {
        multilib-minimal_src_install
 
        # Remove unnecessary headers on FreeBSD, bug #417171
-       use kernel_FreeBSD && use clang && rm 
"${ED}"usr/lib/clang/${PV}/include/{std,float,iso,limits,tgmath,varargs}*.h
+       if use kernel_FreeBSD && use clang; then
+               rm 
"${ED}"usr/lib/clang/${PV}/include/{std,float,iso,limits,tgmath,varargs}*.h || 
die
+       fi
 }
 
 multilib_src_install() {

Reply via email to