Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/ccls/files/, dev-util/ccls/
Date: Wed, 29 Apr 2020 17:44:47
Message-Id: 1588182265.ac5b5ef0678445ba9f4dd8d3c5bf7068fe5079c9.mattst88@gentoo
1 commit: ac5b5ef0678445ba9f4dd8d3c5bf7068fe5079c9
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 29 17:43:26 2020 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 29 17:44:25 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac5b5ef0
7
8 dev-util/ccls: Add patch to provide clang-10 support
9
10 Closes: https://bugs.gentoo.org/719334
11 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
12
13 dev-util/ccls/ccls-0.20190823.6.ebuild | 4 ++
14 ...23.6-cmake-support-CLANG_LINK_CLANG_DYLIB.patch | 57 ++++++++++++++++++++++
15 2 files changed, 61 insertions(+)
16
17 diff --git a/dev-util/ccls/ccls-0.20190823.6.ebuild b/dev-util/ccls/ccls-0.20190823.6.ebuild
18 index ac5830184a3..791e2522eef 100644
19 --- a/dev-util/ccls/ccls-0.20190823.6.ebuild
20 +++ b/dev-util/ccls/ccls-0.20190823.6.ebuild
21 @@ -32,6 +32,10 @@ DEPEND="
22 "
23 RDEPEND="${DEPEND}"
24
25 +PATCHES=(
26 + "${FILESDIR}"/${P}-cmake-support-CLANG_LINK_CLANG_DYLIB.patch
27 +)
28 +
29 src_configure() {
30 local mycmakeargs=(
31 -DUSE_SYSTEM_RAPIDJSON=ON
32
33 diff --git a/dev-util/ccls/files/ccls-0.20190823.6-cmake-support-CLANG_LINK_CLANG_DYLIB.patch b/dev-util/ccls/files/ccls-0.20190823.6-cmake-support-CLANG_LINK_CLANG_DYLIB.patch
34 new file mode 100644
35 index 00000000000..e625ba814d8
36 --- /dev/null
37 +++ b/dev-util/ccls/files/ccls-0.20190823.6-cmake-support-CLANG_LINK_CLANG_DYLIB.patch
38 @@ -0,0 +1,57 @@
39 +From 7e795e9b9ec20f02cab23e63d1e52189aa33ab4e Mon Sep 17 00:00:00 2001
40 +From: Fangrui Song <i@×××××××.me>
41 +Date: Fri, 1 Nov 2019 10:36:38 -0700
42 +Subject: [PATCH] cmake: support CLANG_LINK_CLANG_DYLIB
43 +
44 +---
45 + CMakeLists.txt | 34 +++++++++++++++++++---------------
46 + 1 file changed, 19 insertions(+), 15 deletions(-)
47 +
48 +diff --git a/CMakeLists.txt b/CMakeLists.txt
49 +index 278e0735..092f178f 100644
50 +--- a/CMakeLists.txt
51 ++++ b/CMakeLists.txt
52 +@@ -70,21 +70,25 @@ endif()
53 +
54 + find_package(Clang REQUIRED)
55 +
56 +-target_link_libraries(ccls PRIVATE
57 +- clangIndex
58 +- clangFormat
59 +- clangTooling
60 +- clangToolingInclusions
61 +- clangToolingCore
62 +- clangFrontend
63 +- clangParse
64 +- clangSerialization
65 +- clangSema
66 +- clangAST
67 +- clangLex
68 +- clangDriver
69 +- clangBasic
70 +-)
71 ++if(CLANG_LINK_CLANG_DYLIB)
72 ++ target_link_libraries(ccls PRIVATE clang-cpp)
73 ++else()
74 ++ target_link_libraries(ccls PRIVATE
75 ++ clangIndex
76 ++ clangFormat
77 ++ clangTooling
78 ++ clangToolingInclusions
79 ++ clangToolingCore
80 ++ clangFrontend
81 ++ clangParse
82 ++ clangSerialization
83 ++ clangSema
84 ++ clangAST
85 ++ clangLex
86 ++ clangDriver
87 ++ clangBasic
88 ++ )
89 ++endif()
90 +
91 + if(LLVM_LINK_LLVM_DYLIB)
92 + target_link_libraries(ccls PRIVATE LLVM)
93 +--
94 +2.26.2
95 +