void-packages/srcpkgs/llvm/clang-analyzer.template

22 lines
587 B
Text
Raw Normal View History

2011-02-03 16:32:46 +00:00
# Template file for 'clang-analyzer'.
#
2012-05-23 18:56:57 +00:00
noarch=yes
pycompile_dirs="usr/lib/clang-analyzer"
2013-01-04 09:17:21 +00:00
depends="clang>=${version} python"
2011-02-03 16:32:46 +00:00
short_desc="Low-Level Virtual Machine (LLVM) - A source code analysis framework"
2013-01-04 09:17:21 +00:00
homepage="http://clang-analyzer.llvm.org/"
2011-02-03 16:32:46 +00:00
2012-05-23 18:56:57 +00:00
do_install() {
2013-01-04 09:17:21 +00:00
vmkdir usr/bin
vmkdir usr/lib/clang-analyzer
2011-02-03 16:32:46 +00:00
for f in build view; do
cp -r ${wrksrc}/tools/clang/tools/scan-${f} \
${DESTDIR}/usr/lib/clang-analyzer
cd ${DESTDIR}/usr/bin && \
ln -s ../lib/${pkgname}/scan-${f}/scan-${f} \
scan-${f}
done
ln -sf /usr/bin/clang ${DESTDIR}/usr/lib/${pkgname}/scan-build
2011-02-03 16:32:46 +00:00
}