commit: 00f67b1579de819d36bd728a1af6e1fa4fca9f4c Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun Oct 2 21:32:01 2016 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Oct 2 21:51:49 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=00f67b15
sys-devel/llvm: Backport clang-cpp symlink, #478810 sys-devel/llvm/llvm-3.9.0.ebuild | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys-devel/llvm/llvm-3.9.0.ebuild b/sys-devel/llvm/llvm-3.9.0.ebuild index 4514dd0..3f694d1 100644 --- a/sys-devel/llvm/llvm-3.9.0.ebuild +++ b/sys-devel/llvm/llvm-3.9.0.ebuild @@ -436,20 +436,20 @@ src_install() { if use clang; then # Apply CHOST and version suffix to clang tools local clang_version=${PV%.*} - local clang_tools=( clang clang++ clang-cl ) + local clang_tools=( clang clang++ clang-cl clang-cpp ) local abi i # cmake gives us: # - clang-X.Y # - clang -> clang-X.Y - # - clang++, clang-cl -> clang + # - clang++, clang-cl, clang-cpp -> clang # we want to have: # - clang-X.Y - # - clang++-X.Y, clang-cl-X.Y -> clang-X.Y - # - clang, clang++, clang-cl -> clang*-X.Y + # - clang++-X.Y, clang-cl-X.Y, clang-cpp-X.Y -> clang-X.Y + # - clang, clang++, clang-cl, clang-cpp -> clang*-X.Y # also in CHOST variant for i in "${clang_tools[@]:1}"; do - rm "${ED%/}/usr/bin/${i}" || die + rm -f "${ED%/}/usr/bin/${i}" || die dosym "clang-${clang_version}" "/usr/bin/${i}-${clang_version}" dosym "${i}-${clang_version}" "/usr/bin/${i}" done