summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2023-09-09 22:07:01 -0400
committerMatt Turner <mattst88@gentoo.org>2023-09-09 22:10:23 -0400
commitb1494d793cb69fd73f444301ac848093d8de1377 (patch)
tree12ddb67181d72ba5bcbd330294e16108afd8f606 /dev-util/ccls
parentnet-analyzer/nagios: add 4.4.14, drop 4.4.13 (diff)
downloadgentoo-b1494d793cb69fd73f444301ac848093d8de1377.tar.gz
gentoo-b1494d793cb69fd73f444301ac848093d8de1377.tar.bz2
gentoo-b1494d793cb69fd73f444301ac848093d8de1377.zip
dev-util/ccls: Version bump to 0.20230717
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'dev-util/ccls')
-rw-r--r--dev-util/ccls/Manifest1
-rw-r--r--dev-util/ccls/ccls-0.20230717.ebuild46
-rw-r--r--dev-util/ccls/ccls-9999.ebuild4
3 files changed, 49 insertions, 2 deletions
diff --git a/dev-util/ccls/Manifest b/dev-util/ccls/Manifest
index ea82616a5736..5d4af000586c 100644
--- a/dev-util/ccls/Manifest
+++ b/dev-util/ccls/Manifest
@@ -1 +1,2 @@
DIST ccls-0.20220729.tar.gz 160861 BLAKE2B db096f0f1e1d56967086e2711af63f4882e77128236b3d1af3cc107a3b320aa29bcacd4b21769904727261b5608bb2c8409dbb0f3b0d9b0907a94f3bb7c966c8 SHA512 63cb4eace1700118f9c8c4d2f4be40aac948f9c658485c8e3f49dcc863ce7bdd8b6de810b95ec8f46c943b65c8aa5fa643b110a6b981a2e43f57569d897d36c1
+DIST ccls-0.20230717.tar.gz 161869 BLAKE2B fea3d484027d6b1493627e1bd3ea8f031b3486db7d41c34b94715a0abee342f0d87f85226ac567736013a71135325b3c9d13f6fe29b73db1b8dbc87586c16e1b SHA512 f0fe31877151b76cabc17aa2ef8d3d87038805fbe43ca807e2e0824e90d952b1f5767f151788480aedf58e2ff569b72978fceeaca6b741b00c643d73f6afb445
diff --git a/dev-util/ccls/ccls-0.20230717.ebuild b/dev-util/ccls/ccls-0.20230717.ebuild
new file mode 100644
index 000000000000..c6b39f910fd1
--- /dev/null
+++ b/dev-util/ccls/ccls-0.20230717.ebuild
@@ -0,0 +1,46 @@
+# Copyright 2020-2023 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=16
+else
+ LLVM_MAX_SLOT=16
+fi
+
+inherit cmake llvm ${GIT_ECLASS}
+
+DESCRIPTION="C/C++/ObjC language server"
+HOMEPAGE="https://github.com/MaskRay/ccls"
+
+if [[ ${PV} == *9999 ]] ; then
+ SRC_URI=""
+else
+ 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"
+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-$((${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
+}
diff --git a/dev-util/ccls/ccls-9999.ebuild b/dev-util/ccls/ccls-9999.ebuild
index 6073146e6b16..c6b39f910fd1 100644
--- a/dev-util/ccls/ccls-9999.ebuild
+++ b/dev-util/ccls/ccls-9999.ebuild
@@ -1,7 +1,7 @@
# Copyright 2020-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
EGIT_REPO_URI="https://github.com/MaskRay/${PN}"
@@ -21,7 +21,7 @@ if [[ ${PV} == *9999 ]] ; then
SRC_URI=""
else
SRC_URI="https://github.com/MaskRay/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~amd64"
+ KEYWORDS="~amd64 ~arm64 ~riscv"
fi
LICENSE="Apache-2.0"