pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel Import devel/ccls as ccls version 0.20220729



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8c74f79e8330
branches:  trunk
changeset: 391180:8c74f79e8330
user:      nikita <nikita%pkgsrc.org@localhost>
date:      Wed Jan 04 17:25:07 2023 +0000

description:
Import devel/ccls as ccls version 0.20220729

ccls, which originates from cquery, is a C/C++/Objective-C language server.

Its features include:
- code completion (with both signature help and snippets)
- definition/references, and other cross references
- cross reference extensions: $ccls/call $ccls/inheritance
  $ccls/member $ccls/vars ...
- formatting
- hierarchies: call (caller/callee) hierarchy, inheritance
  (base/derived) hierarchy, member hierarchy
- symbol rename
- document symbols and approximate search of workspace symbol
- hover information
- diagnostics and code actions (clang FixIts)
- semantic highlighting and preprocessor skipped regions
- semantic navigation: $ccls/navigate

It has a global view of the code base and support a lot of cross reference
features, see https://github.com/MaskRay/ccls/wiki/FAQ.
It starts indexing the whole project (including subprojects if exist)
parallelly when you open the first file, while the main thread can serve
requests before the indexing is complete. Saving files will incrementally
update the index.

diffstat:

 devel/Makefile      |   3 ++-
 devel/ccls/DESCR    |  23 +++++++++++++++++++++++
 devel/ccls/Makefile |  35 +++++++++++++++++++++++++++++++++++
 devel/ccls/PLIST    |   2 ++
 devel/ccls/distinfo |   5 +++++
 5 files changed, 67 insertions(+), 1 deletions(-)

diffs (98 lines):

diff -r 15451db15709 -r 8c74f79e8330 devel/Makefile
--- a/devel/Makefile    Wed Jan 04 16:01:20 2023 +0000
+++ b/devel/Makefile    Wed Jan 04 17:25:07 2023 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3865 2023/01/02 22:45:41 vins Exp $
+# $NetBSD: Makefile,v 1.3866 2023/01/04 17:25:07 nikita Exp $
 #
 
 COMMENT=       Development utilities
@@ -232,6 +232,7 @@
 SUBDIR+=       clisp-wildcard
 SUBDIR+=       clisp-zlib
 SUBDIR+=       cloc
+SUBDIR+=       ccls
 SUBDIR+=       cmake
 SUBDIR+=       cmake-fedora
 SUBDIR+=       cmake-gui
diff -r 15451db15709 -r 8c74f79e8330 devel/ccls/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ccls/DESCR  Wed Jan 04 17:25:07 2023 +0000
@@ -0,0 +1,23 @@
+ccls, which originates from cquery, is a C/C++/Objective-C language server.
+
+Its features include:
+- code completion (with both signature help and snippets)
+- definition/references, and other cross references
+- cross reference extensions: $ccls/call $ccls/inheritance
+  $ccls/member $ccls/vars ...
+- formatting
+- hierarchies: call (caller/callee) hierarchy, inheritance
+  (base/derived) hierarchy, member hierarchy
+- symbol rename
+- document symbols and approximate search of workspace symbol
+- hover information
+- diagnostics and code actions (clang FixIts)
+- semantic highlighting and preprocessor skipped regions
+- semantic navigation: $ccls/navigate
+
+It has a global view of the code base and support a lot of cross reference
+features, see https://github.com/MaskRay/ccls/wiki/FAQ.
+It starts indexing the whole project (including subprojects if exist)
+parallelly when you open the first file, while the main thread can serve
+requests before the indexing is complete. Saving files will incrementally
+update the index.
diff -r 15451db15709 -r 8c74f79e8330 devel/ccls/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ccls/Makefile       Wed Jan 04 17:25:07 2023 +0000
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1 2023/01/04 17:25:07 nikita Exp $
+
+DISTNAME=      ccls-0.20220729
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=MaskRay/}
+CATEGORIES=    devel
+GITHUB_TAG=    ${PKGVERSION_NOREV}
+GITHUB_PROJECT=        ccls
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/MaskRay/ccls
+COMMENT=       C/C++/ObjC language server
+LICENSE=       apache-2.0
+
+USE_LANGUAGES= c c++17
+USE_CMAKE=     yes
+CMAKE_ARGS+=   -DCCLS_VERSION:STRING="${PKGVERSION_NOREV}"
+CXXFLAGS+=     -DNDEBUG
+
+PTHREAD_OPTS+= require
+.include "../../mk/pthread.buildlink3.mk"
+
+# Package builds with clang specific switches
+PKGSRC_COMPILER=       clang
+PKG_CC=                        clang
+PKG_CXX=               clang++
+
+DEPENDS+=      llvm-[0-9]*:../../lang/llvm
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../archivers/zstd/buildlink3.mk"
+.include "../../lang/clang/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../mk/terminfo.buildlink3.mk"
+.include "../../textproc/rapidjson/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 15451db15709 -r 8c74f79e8330 devel/ccls/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ccls/PLIST  Wed Jan 04 17:25:07 2023 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2023/01/04 17:25:07 nikita Exp $
+bin/ccls
diff -r 15451db15709 -r 8c74f79e8330 devel/ccls/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ccls/distinfo       Wed Jan 04 17:25:07 2023 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2023/01/04 17:25:07 nikita Exp $
+
+BLAKE2s (ccls-0.20220729.tar.gz) = 51306948f0df4f1ba93e114ad69d0fc064de01b42ec470e1366e7aa0accaec7b
+SHA512 (ccls-0.20220729.tar.gz) = 63cb4eace1700118f9c8c4d2f4be40aac948f9c658485c8e3f49dcc863ce7bdd8b6de810b95ec8f46c943b65c8aa5fa643b110a6b981a2e43f57569d897d36c1
+Size (ccls-0.20220729.tar.gz) = 160861 bytes



Home | Main Index | Thread Index | Old Index