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

22 lines
587 B
Plaintext
Raw Normal View History

2011-02-03 17:32:46 +01:00
# Template file for 'clang-analyzer'.
#
2012-05-23 20:56:57 +02:00
noarch=yes
pycompile_dirs="usr/lib/clang-analyzer"
2013-01-04 10:17:21 +01:00
depends="clang>=${version} python"
2011-02-03 17:32:46 +01:00
short_desc="Low-Level Virtual Machine (LLVM) - A source code analysis framework"
2013-01-04 10:17:21 +01:00
homepage="http://clang-analyzer.llvm.org/"
2011-02-03 17:32:46 +01:00
2012-05-23 20:56:57 +02:00
do_install() {
2013-01-04 10:17:21 +01:00
vmkdir usr/bin
vmkdir usr/lib/clang-analyzer
2011-02-03 17:32:46 +01: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 17:32:46 +01:00
}