summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-04-07 23:04:52 +0200
committerMichał Górny <mgorny@gentoo.org>2018-04-07 23:29:48 +0200
commitc5a58952083aa9392b1944ec73942494a2440198 (patch)
tree039ac06e0b4497e897c55dee51d28a12121ab37b /sys-devel
parentsys-devel/clang: Include LLVMTestingSupport lib in -9999 checkout (diff)
downloadgentoo-c5a58952083aa9392b1944ec73942494a2440198.tar.gz
gentoo-c5a58952083aa9392b1944ec73942494a2440198.tar.bz2
gentoo-c5a58952083aa9392b1944ec73942494a2440198.zip
sys-devel/clang: Update for clang-X naming in -9999
Upstream has removed the minor version from clang symlink in git. Update our code accordingly.
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/clang/clang-9999.ebuild12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys-devel/clang/clang-9999.ebuild b/sys-devel/clang/clang-9999.ebuild
index 8bc9b08cc459..0ece5c802161 100644
--- a/sys-devel/clang/clang-9999.ebuild
+++ b/sys-devel/clang/clang-9999.ebuild
@@ -219,19 +219,19 @@ src_install() {
# Apply CHOST and version suffix to clang tools
# note: we use two version components here (vs 3 in runtime path)
local llvm_version=$(llvm-config --version) || die
- local clang_version=$(ver_cut 1-2 "${llvm_version}")
+ local clang_version=$(ver_cut 1 "${llvm_version}")
local clang_full_version=$(ver_cut 1-3 "${llvm_version}")
local clang_tools=( clang clang++ clang-cl clang-cpp )
local abi i
# cmake gives us:
- # - clang-X.Y
- # - clang -> clang-X.Y
+ # - clang-X
+ # - clang -> clang-X
# - clang++, clang-cl, clang-cpp -> clang
# we want to have:
- # - 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
+ # - clang-X
+ # - clang++-X, clang-cl-X, clang-cpp-X -> clang-X
+ # - clang, clang++, clang-cl, clang-cpp -> clang*-X
# also in CHOST variant
for i in "${clang_tools[@]:1}"; do
rm "${ED%/}/usr/lib/llvm/${SLOT}/bin/${i}" || die