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
|
2013-01-25 08:06:53 +00:00
|
|
|
ln -sf /usr/bin/clang ${DESTDIR}/usr/lib/${pkgname}/scan-build
|
2011-02-03 16:32:46 +00:00
|
|
|
}
|