diff options
author | Sam James <sam@gentoo.org> | 2022-03-28 02:29:20 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-03-28 02:29:20 +0100 |
commit | 649e483cce1e297b115e2267540e12e978413098 (patch) | |
tree | 84d3ce0a8231d102d95b57837b44c3371958b3b9 /dev-util/ccls/ccls-9999.ebuild | |
parent | dev-util/ccls: fix CMake configure error (diff) | |
download | gentoo-649e483cce1e297b115e2267540e12e978413098.tar.gz gentoo-649e483cce1e297b115e2267540e12e978413098.tar.bz2 gentoo-649e483cce1e297b115e2267540e12e978413098.zip |
dev-util/ccls: add LLVM 14 patches; use llvm.eclass
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-util/ccls/ccls-9999.ebuild')
-rw-r--r-- | dev-util/ccls/ccls-9999.ebuild | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/dev-util/ccls/ccls-9999.ebuild b/dev-util/ccls/ccls-9999.ebuild index 377cc36c8068..f2069853b3f4 100644 --- a/dev-util/ccls/ccls-9999.ebuild +++ b/dev-util/ccls/ccls-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020 Gentoo Authors +# Copyright 2020-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -7,9 +7,12 @@ EGIT_REPO_URI="https://github.com/MaskRay/${PN}" if [[ ${PV} = 9999* ]]; then GIT_ECLASS="git-r3" + LLVM_MAX_SLOT=9999 +else + LLVM_MAX_SLOT=14 fi -inherit cmake ${GIT_ECLASS} +inherit cmake llvm ${GIT_ECLASS} DESCRIPTION="C/C++/ObjC language server" HOMEPAGE="https://github.com/MaskRay/ccls" @@ -25,13 +28,19 @@ LICENSE="Apache-2.0" SLOT="0" IUSE="" +# We only depend on Clang because of a quirk in how dependencies work +# See comment in llvm.eclass docs DEPEND=" dev-libs/rapidjson - sys-devel/clang:= - sys-devel/llvm:= + <sys-devel/clang-$((${LLVM_MAX_SLOT} + 1)):= " RDEPEND="${DEPEND}" +PATCHES=( + "${FILESDIR}"/${P}-llvm-cmake.patch + "${FILESDIR}"/${P}-llvm14.patch +) + src_configure() { local mycmakeargs=( -DCCLS_VERSION=${PV} |