diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-30 00:00:01 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-30 00:00:01 +0100 |
commit | 4c2b70adc6484c35ff05e412de08a7b7f50cfb34 (patch) | |
tree | c7557ae36b9b2bfa7134849511e79da938581c5f /dev-util/ccls/ccls-0.20240202.ebuild | |
parent | 5f0030fd1370c4d03dbb2e0d3086f5e618a33749 (diff) |
gentoo auto-resync : 30:04:2024 - 00:00:01
Diffstat (limited to 'dev-util/ccls/ccls-0.20240202.ebuild')
-rw-r--r-- | dev-util/ccls/ccls-0.20240202.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-util/ccls/ccls-0.20240202.ebuild b/dev-util/ccls/ccls-0.20240202.ebuild new file mode 100644 index 000000000000..18afc3fd7cb3 --- /dev/null +++ b/dev-util/ccls/ccls-0.20240202.ebuild @@ -0,0 +1,43 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +EGIT_REPO_URI="https://github.com/MaskRay/${PN}" + +if [[ ${PV} = 9999* ]]; then + GIT_ECLASS="git-r3" + LLVM_MAX_SLOT=18 +else + LLVM_MAX_SLOT=18 +fi + +inherit cmake llvm ${GIT_ECLASS} + +DESCRIPTION="C/C++/ObjC language server" +HOMEPAGE="https://github.com/MaskRay/ccls" + +if [[ ${PV} != *9999 ]] ; then + SRC_URI="https://github.com/MaskRay/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm64 ~riscv" +fi + +LICENSE="Apache-2.0" +SLOT="0" + +# 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-$((${LLVM_MAX_SLOT} + 1)):= +" +RDEPEND="${DEPEND}" + +src_configure() { + local mycmakeargs=( + -DCCLS_VERSION=${PV} + -DUSE_SYSTEM_RAPIDJSON=ON + -DCLANG_LINK_CLANG_DYLIB=1 + ) + cmake_src_configure +} |