aboutsummaryrefslogtreecommitdiffstats
path: root/main/llvm/APKBUILD
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2013-05-21 16:02:24 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2013-05-21 16:02:24 -0500
commit024b6a2c6c42c10aff04a713a7516091435386c7 (patch)
treed823a44462dd23bfd320f9f309c7da1cdacfb3f8 /main/llvm/APKBUILD
parentabec8b2dbf4aef435379d5a17dac2cf8f1bbd757 (diff)
downloadaports-024b6a2c6c42c10aff04a713a7516091435386c7.tar.bz2
aports-024b6a2c6c42c10aff04a713a7516091435386c7.tar.xz
main/llvm: include clang static analyzer tools
Diffstat (limited to 'main/llvm/APKBUILD')
-rw-r--r--main/llvm/APKBUILD13
1 files changed, 9 insertions, 4 deletions
diff --git a/main/llvm/APKBUILD b/main/llvm/APKBUILD
index 77f9a2742c..da56c5085a 100644
--- a/main/llvm/APKBUILD
+++ b/main/llvm/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=llvm
pkgver=3.2
-pkgrel=3
+pkgrel=4
pkgdesc="low level virtual machine compiler system"
arch="x86 x86_64"
url="http://llvm.org/"
@@ -21,6 +21,7 @@ source="http://llvm.org/releases/$pkgver/llvm-$pkgver.src.tar.gz
# uClibc ABI version (as of uClibc 0.9.33.2, this is 0.9.32) increases.
_builddir="$srcdir"/build
+_srcdir="$srcdir"/"$pkgname-$pkgver.src"
prepare() {
mkdir "$_builddir"
@@ -54,7 +55,7 @@ build() {
../$pkgname-$pkgver.src/projects/sample/autoconf/config.guess \
|| return 1
- ../$pkgname-$pkgver.src/configure \
+ $_srcdir/configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
@@ -85,13 +86,17 @@ package() {
clang() {
pkgdesc="A C language family front-end for LLVM"
mkdir -p "$subpkgdir"/usr/bin \
- "$subpkgdir"/usr/lib
+ "$subpkgdir"/usr/lib "$subpkgdir"/usr/share/clang
mv "$pkgdir"/usr/bin/clang* "$pkgdir"/usr/bin/c-index-test \
"$subpkgdir"/usr/bin/ || return 1
mv "$pkgdir"/usr/lib/clang \
"$pkgdir"/usr/lib/libclang.so \
"$subpkgdir"/usr/lib/ || return 1
-
+ cp -r "$_srcdir"/tools/clang/tools/scan-build "$subpkgdir"/usr/share/clang/scan-build
+ cp -r "$_srcdir"/tools/clang/tools/scan-view "$subpkgdir"/usr/share/clang/scan-view
+
+ ln -s /usr/share/clang/scan-build/scan-build "$subpkgdir"/usr/bin/scan-build
+ ln -s /usr/share/clang/scan-view/scan-view "$subpkgdir"/usr/bin/scan-view
}
libs() {