pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang clang-tools-extra: added version 7.0.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ac878d866c20
branches:  trunk
changeset: 393904:ac878d866c20
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Mar 27 06:24:22 2019 +0000

description:
clang-tools-extra: added version 7.0.1

Extra tools built using Clang's tooling APIs.

diffstat:

 lang/Makefile                                                          |   3 +-
 lang/clang-static-analyzer/Makefile                                    |   9 +-
 lang/clang-tools-extra/DESCR                                           |   1 +
 lang/clang-tools-extra/Makefile                                        |  30 ++++++
 lang/clang-tools-extra/PLIST                                           |  46 ++++++++++
 lang/clang-tools-extra/distinfo                                        |  11 ++
 lang/clang-tools-extra/patches/patch-tools_extra_clangd_CMakeLists.txt |  16 +++
 lang/clang/Makefile                                                    |   6 +-
 lang/clang/Makefile.common                                             |   6 +-
 9 files changed, 119 insertions(+), 9 deletions(-)

diffs (211 lines):

diff -r 2c7a8c707c03 -r ac878d866c20 lang/Makefile
--- a/lang/Makefile     Wed Mar 27 04:48:45 2019 +0000
+++ b/lang/Makefile     Wed Mar 27 06:24:22 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.511 2019/03/26 20:50:01 ryoon Exp $
+# $NetBSD: Makefile,v 1.512 2019/03/27 06:24:22 adam Exp $
 #
 
 COMMENT=       Programming languages
@@ -30,6 +30,7 @@
 SUBDIR+=       cint
 SUBDIR+=       clang
 SUBDIR+=       clang-static-analyzer
+SUBDIR+=       clang-tools-extra
 SUBDIR+=       classpath
 SUBDIR+=       classpath-gui
 SUBDIR+=       clisp
diff -r 2c7a8c707c03 -r ac878d866c20 lang/clang-static-analyzer/Makefile
--- a/lang/clang-static-analyzer/Makefile       Wed Mar 27 04:48:45 2019 +0000
+++ b/lang/clang-static-analyzer/Makefile       Wed Mar 27 06:24:22 2019 +0000
@@ -1,4 +1,6 @@
-# $NetBSD: Makefile,v 1.10 2018/12/09 20:04:38 adam Exp $
+# $NetBSD: Makefile,v 1.11 2019/03/27 06:24:22 adam Exp $
+
+.include "../../lang/clang/Makefile.common"
 
 PKGNAME=       ${DISTNAME:S/cfe/clang-static-analyzer/:S/.src//}
 
@@ -6,6 +8,9 @@
 
 USE_TOOLS+=    perl:run
 
+DISTINFO_FILE?=        ${.CURDIR}/../../lang/clang/distinfo
+PATCHDIR?=     ${.CURDIR}/../../lang/clang/patches
+
 BUILD_TARGET=  clang-check scan-build scan-view
 INSTALL_DIRS=  ../build/tools/clang-check ../build/tools/scan-build ../build/tools/scan-view
 
@@ -14,4 +19,4 @@
 PYTHON_VERSIONS_ACCEPTED=      27 # not yet ported as of 5.0.1
 
 .include "../../lang/python/pyversion.mk"
-.include "../../lang/clang/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff -r 2c7a8c707c03 -r ac878d866c20 lang/clang-tools-extra/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/clang-tools-extra/DESCR      Wed Mar 27 06:24:22 2019 +0000
@@ -0,0 +1,1 @@
+Extra tools built using Clang's tooling APIs.
diff -r 2c7a8c707c03 -r ac878d866c20 lang/clang-tools-extra/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/clang-tools-extra/Makefile   Wed Mar 27 06:24:22 2019 +0000
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1 2019/03/27 06:24:22 adam Exp $
+
+.include "../../lang/clang/Makefile.common"
+
+PKGNAME=       ${DISTNAME:S/cfe/clang-tools-extra/:S/.src//}
+
+COMMENT=       Extra Clang tools
+
+DISTFILES+=    ${DEFAULT_DISTFILES}
+DISTFILES+=    ${DISTNAME:S/cfe/clang-tools-extra/}${EXTRACT_SUFX}
+
+DISTINFO_FILE= ${.CURDIR}/distinfo
+
+BUILD_TARGET=  clang-change-namespace clang-apply-replacements clang-doc
+BUILD_TARGET+= clang-include-fixer clang-move clang-query clang-reorder-fields
+BUILD_TARGET+= clang-tidy clangd modularize pp-trace tool-template
+INSTALL_DIRS=  ../build/tools/extra
+
+CMAKE_ARGS+=   -DCLANG_ENABLE_STATIC_ANALYZER=ON
+
+REPLACE_PYTHON+=       tools/extra/clang-tidy/tool/clang-tidy-diff.py
+REPLACE_PYTHON+=       tools/extra/clang-tidy/tool/run-clang-tidy.py
+REPLACE_PYTHON+=       tools/extra/include-fixer/find-all-symbols/tool/run-find-all-symbols.py
+
+.PHONY: inject-clang-tools
+post-extract: inject-clang-tools
+inject-clang-tools:
+       mv ${WRKDIR}/${DISTNAME:S/cfe/clang-tools-extra/} ${WRKSRC}/tools/extra
+
+.include "../../mk/bsd.pkg.mk"
diff -r 2c7a8c707c03 -r ac878d866c20 lang/clang-tools-extra/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/clang-tools-extra/PLIST      Wed Mar 27 06:24:22 2019 +0000
@@ -0,0 +1,46 @@
+@comment $NetBSD: PLIST,v 1.1 2019/03/27 06:24:22 adam Exp $
+bin/clang-apply-replacements
+bin/clang-change-namespace
+bin/clang-include-fixer
+bin/clang-query
+bin/clang-reorder-fields
+bin/clang-tidy
+bin/clangd
+bin/find-all-symbols
+bin/modularize
+lib/libclangApplyReplacements.a
+lib/libclangChangeNamespace.a
+lib/libclangDaemon.a
+lib/libclangDoc.a
+lib/libclangIncludeFixer.a
+lib/libclangIncludeFixerPlugin.a
+lib/libclangMove.a
+lib/libclangQuery.a
+lib/libclangReorderFields.a
+lib/libclangTidy.a
+lib/libclangTidyAbseilModule.a
+lib/libclangTidyAndroidModule.a
+lib/libclangTidyBoostModule.a
+lib/libclangTidyBugproneModule.a
+lib/libclangTidyCERTModule.a
+lib/libclangTidyCppCoreGuidelinesModule.a
+lib/libclangTidyFuchsiaModule.a
+lib/libclangTidyGoogleModule.a
+lib/libclangTidyHICPPModule.a
+lib/libclangTidyLLVMModule.a
+lib/libclangTidyMPIModule.a
+lib/libclangTidyMiscModule.a
+lib/libclangTidyModernizeModule.a
+lib/libclangTidyObjCModule.a
+lib/libclangTidyPerformanceModule.a
+lib/libclangTidyPlugin.a
+lib/libclangTidyPortabilityModule.a
+lib/libclangTidyReadabilityModule.a
+lib/libclangTidyUtils.a
+lib/libclangTidyZirconModule.a
+lib/libfindAllSymbols.a
+share/clang/clang-include-fixer.el
+share/clang/clang-include-fixer.py
+share/clang/clang-tidy-diff.py
+share/clang/run-clang-tidy.py
+share/clang/run-find-all-symbols.py
diff -r 2c7a8c707c03 -r ac878d866c20 lang/clang-tools-extra/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/clang-tools-extra/distinfo   Wed Mar 27 06:24:22 2019 +0000
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.1 2019/03/27 06:24:22 adam Exp $
+
+SHA1 (cfe-7.0.1.src.tar.xz) = 427e12762836d808583fb4149c033d02de0a8db2
+RMD160 (cfe-7.0.1.src.tar.xz) = 914adafed7c97e5ebab15a437670906c404cb8bd
+SHA512 (cfe-7.0.1.src.tar.xz) = df2f38153ebdc261bcfa6a569567f759bbb1a803192882a9d4eca55a47878166ac9057151a94ad341dc1281136547e4faa783a68070dfde2307b48cacd4b9194
+Size (cfe-7.0.1.src.tar.xz) = 12488668 bytes
+SHA1 (clang-tools-extra-7.0.1.src.tar.xz) = 6f4048482c4cf1818133120565c2dcd1d3a62747
+RMD160 (clang-tools-extra-7.0.1.src.tar.xz) = d0ec60e76157a99e7d6d5f04f7b7eda56ba450da
+SHA512 (clang-tools-extra-7.0.1.src.tar.xz) = f0aa73217560f952261201e9049310e4a038bc5d4b4120a4c5d13a42aacfbbfe702f1891745755e1702269751d3df19237271caecba43c810a6f50d35494c798
+Size (clang-tools-extra-7.0.1.src.tar.xz) = 901368 bytes
+SHA1 (patch-tools_extra_clangd_CMakeLists.txt) = f075acff791edd9b05e98c5297c1f8fde06ae9fe
diff -r 2c7a8c707c03 -r ac878d866c20 lang/clang-tools-extra/patches/patch-tools_extra_clangd_CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/clang-tools-extra/patches/patch-tools_extra_clangd_CMakeLists.txt    Wed Mar 27 06:24:22 2019 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-tools_extra_clangd_CMakeLists.txt,v 1.1 2019/03/27 06:24:22 adam Exp $
+
+Do not look for libatomic.
+
+--- tools/extra/clangd/CMakeLists.txt.orig     2019-03-25 08:39:03.000000000 +0000
++++ tools/extra/clangd/CMakeLists.txt
+@@ -3,9 +3,6 @@ set(LLVM_LINK_COMPONENTS
+   )
+ 
+ set(CLANGD_ATOMIC_LIB "")
+-if(NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB)
+-  list(APPEND CLANGD_ATOMIC_LIB "atomic")
+-endif()
+ 
+ add_clang_library(clangDaemon
+   AST.cpp
diff -r 2c7a8c707c03 -r ac878d866c20 lang/clang/Makefile
--- a/lang/clang/Makefile       Wed Mar 27 04:48:45 2019 +0000
+++ b/lang/clang/Makefile       Wed Mar 27 06:24:22 2019 +0000
@@ -1,4 +1,6 @@
-# $NetBSD: Makefile,v 1.47 2019/01/23 15:44:34 jperkin Exp $
+# $NetBSD: Makefile,v 1.48 2019/03/27 06:24:22 adam Exp $
+
+.include "../../lang/clang/Makefile.common"
 
 PKGNAME=               ${DISTNAME:S/.src//:S/cfe/clang/}
 PKGREVISION=           1
@@ -10,4 +12,4 @@
 # We don't want to add a python runtime dependency for that.
 CHECK_INTERPRETER_SKIP+=       share/clang/*
 
-.include "../../lang/clang/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff -r 2c7a8c707c03 -r ac878d866c20 lang/clang/Makefile.common
--- a/lang/clang/Makefile.common        Wed Mar 27 04:48:45 2019 +0000
+++ b/lang/clang/Makefile.common        Wed Mar 27 06:24:22 2019 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile.common,v 1.30 2018/12/23 00:11:39 adam Exp $
+# $NetBSD: Makefile.common,v 1.31 2019/03/27 06:24:22 adam Exp $
 # used by lang/clang/Makefile
 # used by lang/clang-static-analyzer/Makefile
+# used by lang/clang-tools-extra/Makefile
 
 DISTNAME=      cfe-7.0.1.src
 CATEGORIES=    lang devel
@@ -12,8 +13,6 @@
 COMMENT=       C language family frontend for LLVM
 LICENSE=       modified-bsd
 
-DISTINFO_FILE=         ${.CURDIR}/../../lang/clang/distinfo
-PATCHDIR=              ${.CURDIR}/../../lang/clang/patches
 CONFIGURE_DIRS=                ${WRKDIR}/build
 CMAKE_ARG_PATH=                ${WRKSRC}
 
@@ -138,4 +137,3 @@
 .include "../../lang/python/tool.mk"
 DEPENDS+=      llvm-${PKGVERSION_NOREV}{,nb*}:../../lang/llvm
 .include "../../lang/llvm/buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index