mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-util/ccls: Drop old versions
Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
@@ -1,3 +1 @@
|
||||
DIST ccls-0.20241108.tar.gz 161114 BLAKE2B 83cb61c92707eb3c08c05f36e644dea00a08e5b12baafb45477f44a806a265825788ff431e4cf115ac70f543462e9ea15500b5e8086d2194285d8101a3e036c5 SHA512 b271b175ea64eb10a052789c5527135b5aff7f9088aa20158895263262c1c93541cc4f987e7d7a73b702db0b85f9366ed57a9b38bf1e245e50f3c4e3eeed7277
|
||||
DIST ccls-0.20250815.1.tar.gz 163675 BLAKE2B cb079c85de1c2487c1c5c736df5a9b352114427ccda8be7067f3434a1665149bc611442d3a9d9ab92ef90dad13e30bc8a5cbce3698323a2787d298dd48d80152 SHA512 2f0bdd62260c65881af55128f7e5008fba8910844173477daf9122f5408f21ac5d297eb0497ea87f1591124b96b9416388bd67894581cbe6bf9469f70d81ffb8
|
||||
DIST ccls-0.20250815.tar.gz 163741 BLAKE2B 72dd8d1ee488b77f6d46b94079094b7de4c85c83ad62950fc22338d744f86e12fa1beb0fcadde072c6cfc7f6be3fd58eb53c8c0478171d5a310ba88035b0e0f2 SHA512 89ebf24eb4f06d02f09f49e0ef5677008f11b944e27fd9c4169ebba1665dc32488b010a81b930978bcc001454b85617501f87993d59307e159587572bb5c2c19
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
# Copyright 2020-2025 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_COMPAT=( {18..20} )
|
||||
else
|
||||
LLVM_COMPAT=( {18..20} )
|
||||
fi
|
||||
|
||||
inherit cmake llvm-r1 ${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"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/rapidjson
|
||||
$(llvm_gen_dep '
|
||||
llvm-core/clang:${LLVM_SLOT}=
|
||||
llvm-core/llvm:${LLVM_SLOT}=
|
||||
')
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PV}-Adapt-llvmorg-20-init-12964-gdf9a14d7bbf1-createDiag.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCCLS_VERSION=${PV}
|
||||
-DUSE_SYSTEM_RAPIDJSON=ON
|
||||
-DCLANG_LINK_CLANG_DYLIB=1
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
# Copyright 2020-2025 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_COMPAT=( {18..21} )
|
||||
else
|
||||
LLVM_COMPAT=( {18..21} )
|
||||
fi
|
||||
|
||||
inherit cmake llvm-r1 ${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"
|
||||
|
||||
DEPEND="
|
||||
dev-libs/rapidjson
|
||||
$(llvm_gen_dep '
|
||||
llvm-core/clang:${LLVM_SLOT}=
|
||||
llvm-core/llvm:${LLVM_SLOT}=
|
||||
')
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DCCLS_VERSION=${PV}
|
||||
-DUSE_SYSTEM_RAPIDJSON=ON
|
||||
-DCLANG_LINK_CLANG_DYLIB=1
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -1,81 +0,0 @@
|
||||
From 4331c8958698d42933bf4e132f8a7d61f3cedb8c Mon Sep 17 00:00:00 2001
|
||||
From: Fangrui Song <i@maskray.me>
|
||||
Date: Sat, 23 Nov 2024 18:25:48 -0800
|
||||
Subject: [PATCH] Adapt llvmorg-20-init-12964-gdf9a14d7bbf1: createDiagnostics
|
||||
|
||||
---
|
||||
src/clang_tu.cc | 8 +++++---
|
||||
src/indexer.cc | 6 +++++-
|
||||
src/sema_manager.cc | 13 ++++++++++---
|
||||
3 files changed, 20 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git ./src/clang_tu.cc ./src/clang_tu.cc
|
||||
index 32be1733..54e04ef0 100644
|
||||
--- ./src/clang_tu.cc
|
||||
+++ ./src/clang_tu.cc
|
||||
@@ -124,9 +124,11 @@ buildCompilerInvocation(const std::string &main, std::vector<const char *> args,
|
||||
args.insert(args.begin() + 1, std::begin(arr), std::end(arr));
|
||||
}
|
||||
|
||||
- IntrusiveRefCntPtr<DiagnosticsEngine> diags(
|
||||
- CompilerInstance::createDiagnostics(new DiagnosticOptions,
|
||||
- new IgnoringDiagConsumer, true));
|
||||
+ IntrusiveRefCntPtr<DiagnosticsEngine> diags(CompilerInstance::createDiagnostics(
|
||||
+#if LLVM_VERSION_MAJOR >= 20
|
||||
+ *vfs,
|
||||
+#endif
|
||||
+ new DiagnosticOptions, new IgnoringDiagConsumer, true));
|
||||
#if LLVM_VERSION_MAJOR < 12 // llvmorg-12-init-5498-g257b29715bb
|
||||
driver::Driver d(args[0], llvm::sys::getDefaultTargetTriple(), *diags, vfs);
|
||||
#else
|
||||
diff --git ./src/indexer.cc ./src/indexer.cc
|
||||
index b81f1d9f..dff4ae2d 100644
|
||||
--- ./src/indexer.cc
|
||||
+++ ./src/indexer.cc
|
||||
@@ -1312,7 +1312,11 @@ index(SemaManager *manager, WorkingFiles *wfiles, VFS *vfs,
|
||||
IndexDiags dc;
|
||||
auto clang = std::make_unique<CompilerInstance>(pch);
|
||||
clang->setInvocation(std::move(ci));
|
||||
- clang->createDiagnostics(&dc, false);
|
||||
+ clang->createDiagnostics(
|
||||
+#if LLVM_VERSION_MAJOR >= 20
|
||||
+ *fs,
|
||||
+#endif
|
||||
+ &dc, false);
|
||||
clang->getDiagnostics().setIgnoreAllWarnings(true);
|
||||
clang->setTarget(TargetInfo::CreateTargetInfo(
|
||||
clang->getDiagnostics(), clang->getInvocation().TargetOpts));
|
||||
diff --git ./src/sema_manager.cc ./src/sema_manager.cc
|
||||
index bf806e47..59aaed02 100644
|
||||
--- ./src/sema_manager.cc
|
||||
+++ ./src/sema_manager.cc
|
||||
@@ -288,7 +288,11 @@ buildCompilerInstance(Session &session, std::unique_ptr<CompilerInvocation> ci,
|
||||
|
||||
auto clang = std::make_unique<CompilerInstance>(session.pch);
|
||||
clang->setInvocation(std::move(ci));
|
||||
- clang->createDiagnostics(&dc, false);
|
||||
+ clang->createDiagnostics(
|
||||
+#if LLVM_VERSION_MAJOR >= 20
|
||||
+ *fs,
|
||||
+#endif
|
||||
+ &dc, false);
|
||||
clang->setTarget(TargetInfo::CreateTargetInfo(
|
||||
clang->getDiagnostics(), clang->getInvocation().TargetOpts));
|
||||
if (!clang->hasTarget())
|
||||
@@ -368,8 +372,11 @@ void buildPreamble(Session &session, CompilerInvocation &ci,
|
||||
#endif
|
||||
|
||||
StoreDiags dc(task.path);
|
||||
- IntrusiveRefCntPtr<DiagnosticsEngine> de =
|
||||
- CompilerInstance::createDiagnostics(&ci.getDiagnosticOpts(), &dc, false);
|
||||
+ IntrusiveRefCntPtr<DiagnosticsEngine> de = CompilerInstance::createDiagnostics(
|
||||
+#if LLVM_VERSION_MAJOR >= 20
|
||||
+ *fs,
|
||||
+#endif
|
||||
+ &ci.getDiagnosticOpts(), &dc, false);
|
||||
if (oldP) {
|
||||
std::lock_guard lock(session.wfiles->mutex);
|
||||
for (auto &include : oldP->includes)
|
||||
--
|
||||
2.49.1
|
||||
|
||||
Reference in New Issue
Block a user