summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTyler Port2017-07-12 20:41:52 -0700
committerTyler Port2017-07-12 20:41:52 -0700
commit02726764a4929b1fd14a5c61f682a9865ec3dbfe (patch)
tree94f1563826aba7794215846c0073f1f293c196c9
parente228d17958141ab4b2a691f0226cbc32b62363fa (diff)
downloadaur-02726764a4929b1fd14a5c61f682a9865ec3dbfe.tar.gz
finally it builds
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD146
2 files changed, 63 insertions, 101 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c7510e9e35e..6ea58ed586e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Thu Jul 13 02:13:14 UTC 2017
+# Thu Jul 13 03:41:39 UTC 2017
pkgbase = llvm-polly-svn
pkgver = 5.0.0svn_r307868
pkgrel = 1
@@ -85,25 +85,13 @@ pkgname = clang-polly-svn
url = http://clang.llvm.org/
groups = llvm-toolchain-polly-svn
depends = llvm-polly-svn=5.0.0svn_r307868-1
- optdepends = clang-analyzer-svn: source code analysis for Clang, supporting C, C++, and Objective-C
- optdepends = clang-compiler-rt-svn: sanitizer runtimes, builtins, profile library and BlocksRuntime
- optdepends = clang-tools-extra-svn: standalone tools: syntax checking, formatting, refactoring, etc.
+ optdepends = clang-compiler-rt-polly-svn: sanitizer runtimes, builtins, profile library and BlocksRuntime with polly
+ optdepends = clang-tools-extra-polly-svn: standalone tools: syntax checking, formatting, refactoring, etc. with polly
optdepends = python2: git-clang-format and clang-format-diff.py support
provides = clang
conflicts = clang,
conflicts = clang-svn
-pkgname = clang-analyzer-polly-svn
- pkgdesc = Source code analysis tool for Clang, supporting C, C++, and Objective-C
- url = http://clang-analyzer.llvm.org/
- groups = llvm-toolchain-polly-svn
- depends = clang-polly-svn=5.0.0svn_r307868-1
- depends = perl
- depends = python2
- provides = clang-analyzer
- conflicts = clang-analyzer,
- conflicts = clang-analyzer-svn
-
pkgname = clang-compiler-rt-polly-svn
pkgdesc = The "compiler-rt" set of runtime libraries for Clang and LLVM
url = http://compiler-rt.llvm.org/
diff --git a/PKGBUILD b/PKGBUILD
index 25eb80419dc..a336321bb01 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,7 +19,6 @@ pkgname=(
'lld-polly-svn'
'lldb-polly-svn'
'clang-polly-svn'
- 'clang-analyzer-polly-svn'
'clang-compiler-rt-polly-svn'
'clang-tools-extra-polly-svn'
)
@@ -251,11 +250,12 @@ check() {
# Also, disable the LLVM tests on i686 as they seem to fail too often there.
#[[ "${CARCH}" == "i686" ]] || LD_LIBRARY_PATH="${srcdir}/build/lib" make check
- [[ "${CARCH}" == "i686" ]] || LD_LIBRARY_PATH="${srcdir}/build/lib" ninja check
+ [[ "${CARCH}" == "i686" ]] || LD_LIBRARY_PATH="${srcdir}/build/lib" ninja check-llvm
- ninja check-all
- #ninja check-lld
- #ninja check-polly
+ ninja check-clang
+ ninja check-lld
+ ninja check-lldb
+ ninja check-polly
#make check-clang
#make check-polly
}
@@ -320,11 +320,11 @@ package_lldb-polly-svn() {
DESTDIR="${pkgdir}" ninja install-lldb
- cd "${srcdir}/build/tools/lldb"
- _fix_python_exec_path \
- "${pkgdir}${_py_sitepkg_dir}/lldb/utils/symbolication.py"
+ #cd "${srcdir}/build/tools/lldb"
+ #_fix_python_exec_path \
+ # "${pkgdir}${_py_sitepkg_dir}/lldb/utils/symbolication.py"
- _compile_python_files "${pkgdir}${_py_sitepkg_dir}/lldb"
+ #_compile_python_files "${pkgdir}${_py_sitepkg_dir}/lldb"
_install_licenses "${srcdir}/lldb"
}
@@ -412,9 +412,8 @@ package_clang-polly-svn() {
"llvm-polly-svn=${pkgver}-${pkgrel}"
)
optdepends=(
- 'clang-analyzer-svn: source code analysis for Clang, supporting C, C++, and Objective-C'
- 'clang-compiler-rt-svn: sanitizer runtimes, builtins, profile library and BlocksRuntime'
- 'clang-tools-extra-svn: standalone tools: syntax checking, formatting, refactoring, etc.'
+ 'clang-compiler-rt-polly-svn: sanitizer runtimes, builtins, profile library and BlocksRuntime with polly'
+ 'clang-tools-extra-polly-svn: standalone tools: syntax checking, formatting, refactoring, etc. with polly'
'python2: git-clang-format and clang-format-diff.py support'
)
groups=('llvm-toolchain-polly-svn')
@@ -433,87 +432,61 @@ package_clang-polly-svn() {
# The Clang Static Analyzer is installed in a separate package
# TODO: Probably there's more elegant way to achieve this.
- rm -rf "${srcdir}/clang-analyzer.tmp"
-
- install -m 0755 -d \
- "${srcdir}/clang-analyzer.tmp/usr/bin" \
- "${srcdir}/clang-analyzer.tmp/usr/share/man/man1" \
- "${srcdir}/clang-analyzer.tmp/usr/share/scan-build" \
- "${srcdir}/clang-analyzer.tmp/usr/share/scan-view"
-
- mv \
- "${pkgdir}/usr/bin/scan-build" \
- "${pkgdir}/usr/bin/scan-view" \
- "${pkgdir}/usr/libexec/c++-analyzer" \
- "${pkgdir}/usr/libexec/ccc-analyzer" \
- \
- "${srcdir}/clang-analyzer.tmp/usr/bin/"
-
- mv \
- "${pkgdir}/usr/share/man/man1/scan-build.1" \
- \
- "${srcdir}/clang-analyzer.tmp/usr/share/man/man1/"
-
- mv \
- "${pkgdir}/usr/share/scan-build/scanview.css" \
- "${pkgdir}/usr/share/scan-build/sorttable.js" \
- \
- "${srcdir}/clang-analyzer.tmp/usr/share/scan-build/"
-
- mv \
- "${pkgdir}/usr/share/scan-view/FileRadar.scpt" \
- "${pkgdir}/usr/share/scan-view/GetRadarVersion.scpt" \
- "${pkgdir}/usr/share/scan-view/Reporter.py" \
- "${pkgdir}/usr/share/scan-view/ScanView.py" \
- "${pkgdir}/usr/share/scan-view/bugcatcher.ico" \
- "${pkgdir}/usr/share/scan-view/startfile.py" \
- \
- "${srcdir}/clang-analyzer.tmp/usr/share/scan-view/"
-
- rmdir \
- "${pkgdir}/usr/libexec" \
- "${pkgdir}/usr/share/scan-build" \
- "${pkgdir}/usr/share/scan-view"
+ #rm -rf "${srcdir}/clang-analyzer.tmp"
+
+ #install -m 0755 -d \
+ # "${srcdir}/clang-analyzer.tmp/usr/bin" \
+ # "${srcdir}/clang-analyzer.tmp/usr/share/man/man1" \
+ # "${srcdir}/clang-analyzer.tmp/usr/share/scan-build" \
+ # "${srcdir}/clang-analyzer.tmp/usr/share/scan-view"
+
+ #mv \
+ # "${pkgdir}/usr/bin/scan-build" \
+ # "${pkgdir}/usr/bin/scan-view" \
+ # "${pkgdir}/usr/libexec/c++-analyzer" \
+ # "${pkgdir}/usr/libexec/ccc-analyzer" \
+ # \
+ # "${srcdir}/clang-analyzer.tmp/usr/bin/"
+
+ #mv \
+ # "${pkgdir}/usr/share/man/man1/scan-build.1" \
+ # \
+ # "${srcdir}/clang-analyzer.tmp/usr/share/man/man1/"
+
+ #mv \
+ # "${pkgdir}/usr/share/scan-build/scanview.css" \
+ # "${pkgdir}/usr/share/scan-build/sorttable.js" \
+ # \
+ # "${srcdir}/clang-analyzer.tmp/usr/share/scan-build/"
+
+ #mv \
+ # "${pkgdir}/usr/share/scan-view/FileRadar.scpt" \
+ # "${pkgdir}/usr/share/scan-view/GetRadarVersion.scpt" \
+ # "${pkgdir}/usr/share/scan-view/Reporter.py" \
+ # "${pkgdir}/usr/share/scan-view/ScanView.py" \
+ # "${pkgdir}/usr/share/scan-view/bugcatcher.ico" \
+ # "${pkgdir}/usr/share/scan-view/startfile.py" \
+ # \
+ # "${srcdir}/clang-analyzer.tmp/usr/share/scan-view/"
+
+ #rmdir \
+ # "${pkgdir}/usr/libexec" \
+ # "${pkgdir}/usr/share/scan-build" \
+ # "${pkgdir}/usr/share/scan-view"
# Clean up documentation
# TODO: This may not be needed any more.
rm -rf "${pkgdir}/usr/share/doc/clang/html/_sources"
- _fix_python_exec_path \
- "${pkgdir}/usr/bin/git-clang-format" \
- "${pkgdir}/usr/share/clang/clang-format-diff.py"
+ #_fix_python_exec_path \
+ # "${pkgdir}/usr/bin/git-clang-format" \
+ # "${pkgdir}/usr/share/clang/clang-format-diff.py"
_install_python_bindings "${srcdir}/llvm/tools/clang/bindings/python/clang"
_install_licenses "${srcdir}/clang"
}
-package_clang-analyzer-polly-svn() {
- pkgdesc='Source code analysis tool for Clang, supporting C, C++, and Objective-C'
- url='http://clang-analyzer.llvm.org/'
- depends=(
- "clang-polly-svn=${pkgver}-${pkgrel}"
- 'perl'
- 'python2'
- )
- groups=('llvm-toolchain-polly-svn')
- provides=('clang-analyzer')
- conflicts=('clang-analyzer', 'clang-analyzer-svn')
-
- cd "${srcdir}"
-
- mv "${srcdir}/clang-analyzer.tmp"/* "${pkgdir}"/
-
- sed -i 's|/libexec/|/bin/|' "${pkgdir}/usr/bin/scan-build"
-
- _fix_python_exec_path \
- "${pkgdir}/usr/bin/scan-view"
-
- _compile_python_files "${pkgdir}/usr/share/scan-view"
-
- _install_licenses "${srcdir}/clang"
-}
-
package_clang-compiler-rt-polly-svn() {
pkgdesc='The "compiler-rt" set of runtime libraries for Clang and LLVM'
url='http://compiler-rt.llvm.org/'
@@ -524,9 +497,9 @@ package_clang-compiler-rt-polly-svn() {
provides=('clang-compiler-rt')
conflicts=('clang-compiler-rt', 'clang-compiler-rt-svn')
- cd "${srcdir}/build/projects/compiler-rt"
+ cd "${srcdir}/build"
- DESTDIR="${pkgdir}" ninja install
+ DESTDIR="${pkgdir}" ninja install-compiler-rt
_install_licenses "${srcdir}/compiler-rt"
}
@@ -541,9 +514,10 @@ package_clang-tools-extra-polly-svn() {
provides=('clang-tools-extra')
conflicts=('clang-tools-extra', 'clang-tools-extra-svn')
- cd "${srcdir}/build/tools/clang/tools/extra"
+ cd "${srcdir}/build"
- DESTDIR="${pkgdir}" ninja install
+ DESTDIR="${pkgdir}" ninja install-clang-tidy
+ DESTDIR="${pkgdir}" ninja install-clang-format
_install_licenses "${srcdir}/clang-tools-extra"
}