Fri Nov 6 13:50:05 2015 UTC ()
Import clang-static-analyzer-3.7.0 as lang/clang-static-analyzer.
The Clang Static Analyzer is a source code analysis tool that finds
bugs in C, C++, and Objective-C programs.
The standalone tool is invoked from the command line, and is intended
to be run in tandem with a build of a codebase.
The analyzer is 100% open source and is part of the Clang project.
Like the rest of Clang, the analyzer is implemented as a C++ library
that can be used by other tools and applications
(wiz)
diff -r0 -r1.1 pkgsrc/lang/clang-static-analyzer/DESCR
diff -r0 -r1.1 pkgsrc/lang/clang-static-analyzer/Makefile
diff -r0 -r1.1 pkgsrc/lang/clang-static-analyzer/PLIST
The Clang Static Analyzer is a source code analysis tool that finds
bugs in C, C++, and Objective-C programs.
The standalone tool is invoked from the command line, and is intended
to be run in tandem with a build of a codebase.
The analyzer is 100% open source and is part of the Clang project.
Like the rest of Clang, the analyzer is implemented as a C++ library
that can be used by other tools and applications
# $NetBSD: Makefile,v 1.1 2015/11/06 13:50:05 wiz Exp $
PKGNAME= ${DISTNAME:S/clang/clang-static-analyzer/}
DEPENDS+= clang>=${PKGVERSION_NOREV}:../../lang/clang
INSTALLATION_DIRS+= bin
INSTALLATION_DIRS+= libexec
INSTALLATION_DIRS+= ${PKGMANDIR}/man1
INSTALLATION_DIRS+= share/llvm/static-analyzer
INSTALLATION_DIRS+= share/llvm/static-analyzer/Resources
USE_TOOLS+= perl:run
REPLACE_PERL+= tools/clang/tools/scan-build/c++-analyzer
REPLACE_PERL+= tools/clang/tools/scan-build/ccc-analyzer
REPLACE_PERL+= tools/clang/tools/scan-build/scan-build
REPLACE_PYTHON+= tools/clang/tools/scan-view/scan-view
PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # not yet ported as of 3.5
.include "../../lang/python/application.mk"
do-build:
${ECHO} '#!/bin/sh' > ${WRKSRC}/scan-view
${ECHO} "${PREFIX}/share/llvm/static-analyzer/scan-view "'"$$@"' >> ${WRKSRC}/scan-view
do-install:
cd ${WRKSRC}/tools/clang/tools/scan-build && \
${INSTALL_SCRIPT} scan-build ${DESTDIR}${PREFIX}/bin; \
${INSTALL_SCRIPT} c++-analyzer ccc-analyzer ${DESTDIR}${PREFIX}/libexec; \
${INSTALL_DATA} scan-build.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1; \
${INSTALL_DATA} scanview.css sorttable.js ${DESTDIR}${PREFIX}/share/llvm/static-analyzer
cd ${WRKSRC}/tools/clang/tools/scan-view && \
${INSTALL_DATA} Resources/* ${DESTDIR}${PREFIX}/share/llvm/static-analyzer/Resources; \
${INSTALL_SCRIPT} scan-view ${DESTDIR}${PREFIX}/share/llvm/static-analyzer; \
${INSTALL_DATA} *.py ${DESTDIR}${PREFIX}/share/llvm/static-analyzer
${INSTALL_SCRIPT} ${WRKSRC}/scan-view ${DESTDIR}${PREFIX}/bin
.include "../../lang/clang/Makefile.common"
@comment $NetBSD: PLIST,v 1.1 2015/11/06 13:50:05 wiz Exp $
bin/scan-build
bin/scan-view
libexec/c++-analyzer
libexec/ccc-analyzer
man/man1/scan-build.1
share/llvm/static-analyzer/Reporter.py
share/llvm/static-analyzer/Resources/FileRadar.scpt
share/llvm/static-analyzer/Resources/GetRadarVersion.scpt
share/llvm/static-analyzer/Resources/bugcatcher.ico
share/llvm/static-analyzer/ScanView.py
share/llvm/static-analyzer/scan-view
share/llvm/static-analyzer/scanview.css
share/llvm/static-analyzer/sorttable.js
share/llvm/static-analyzer/startfile.py