commit:     8ff8ef49e0509d89d2b0ae078ae29e458aa9e4c7
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 10 17:08:12 2016 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat Sep 10 17:08:29 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ff8ef49

sys-devel/llvm: make 3.4.2 work post-Prefix bootstrap too

Package-Manager: portage-2.2.28

 sys-devel/llvm/llvm-3.4.2-r100.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sys-devel/llvm/llvm-3.4.2-r100.ebuild 
b/sys-devel/llvm/llvm-3.4.2-r100.ebuild
index 0f5e951..cd3155f 100644
--- a/sys-devel/llvm/llvm-3.4.2-r100.ebuild
+++ b/sys-devel/llvm/llvm-3.4.2-r100.ebuild
@@ -190,6 +190,10 @@ src_install() {
 
        if ! use clang; then
                rm "${WORKDIR}"/${PN}-3.4-manpages/clang.1 || die
+       else
+               for tool in clang{,++}{,-${PV}} ; do
+                       dosym /usr/bin/${tool} /usr/bin/${CHOST}-${tool}
+               done
        fi
        doman "${WORKDIR}"/${PN}-3.4-manpages/*.1
 
@@ -200,7 +204,7 @@ src_install() {
                eval $(grep PACKAGE_VERSION= configure)
                [[ -n ${PACKAGE_VERSION} ]] && libpv=${PACKAGE_VERSION}
                libpvminor=${libpv%.[0-9]*}
-               for lib in 
lib{EnhancedDisassembly,LLVM-${libpv},LTO,profile_rt,clang}.dylib 
LLVMHello.dylib 
clang/${libpv}/lib/darwin/libclang_rt.asan_{osx,iossim}_dynamic.dylib; do
+               for lib in 
lib{EnhancedDisassembly,LLVM-${libpv},LTO,profile_rt,clang}.dylib 
LLVMHello.dylib BugpointPasses.dylib 
clang/${libpv}/lib/darwin/libclang_rt.asan_{osx,iossim}_dynamic.dylib; do
                        # libEnhancedDisassembly is Darwin10 only, so non-fatal
                        # + omit clang libs if not enabled
                        [[ -f ${ED}/usr/lib/${lib} ]] || continue

Reply via email to