llvm10: separate libclang and libclang-cpp into their own packages

This allows things to depend on libclang without carrying in the
entire toolchain. Also, allows for libclang-32bit and libclang-cpp-32bit
to exist, which will prevent runtime dependency issues with e.g.
mesa-opencl.

Also, disable lldb-devel and clang-tools-extra on 32bit multilib,
as they don't really make sense there.
This commit is contained in:
q66 2020-06-15 18:09:14 +02:00
parent c1a017181f
commit 81c5dec485
4 changed files with 26 additions and 6 deletions

View file

@ -1031,8 +1031,8 @@ libgtksourceviewmm-3.0.so.0 gtksourceviewmm-3.2.0_1
libyajl.so.2 yajl-2.0.1_1
libconfuse.so.2 confuse-3.2.1_1
liblldb.so.10 lldb-10.0.0_1
libclang.so.10 clang-10.0.0_1
libclang-cpp.so.10 clang-10.0.0_1
libclang.so.10 libclang-10.0.0_3
libclang-cpp.so.10 libclang-cpp-10.0.0_3
libLLVM-10.so libllvm10-10.0.0_1
libLLVM-9.so libllvm9-9.0.0_1
libisofs.so.6 libisofs-0.6.24_1

1
srcpkgs/libclang Symbolic link
View file

@ -0,0 +1 @@
llvm10

1
srcpkgs/libclang-cpp Symbolic link
View file

@ -0,0 +1 @@
llvm10

View file

@ -1,7 +1,7 @@
# Template file for 'llvm10'
pkgname=llvm10
version=10.0.0
revision=2
revision=3
wrksrc="llvm-${version}.src"
build_style=cmake
configure_args="
@ -48,7 +48,7 @@ case "$XBPS_TARGET_MACHINE" in
ppc*) _lldb_enable=no ;;
esac
subpackages="clang-tools-extra clang clang-analyzer libllvm10"
subpackages="clang-tools-extra clang clang-analyzer libclang libclang-cpp libllvm10"
if [ "$_lldb_enable" = "yes" ]; then
# XXX fails to cross compile due to python
subpackages+=" lldb lldb-devel"
@ -198,6 +198,7 @@ clang-analyzer_package() {
}
clang-tools-extra_package() {
lib32disabled=yes
depends="clang-${version}_${revision} python3"
short_desc+=" - Extra Clang tools"
homepage="https://clang.llvm.org/extra/"
@ -221,7 +222,8 @@ clang-tools-extra_package() {
clang_package() {
lib32disabled=yes
depends="libstdc++-devel libgcc-devel binutils ${XBPS_TARGET_LIBC}-devel"
depends="libstdc++-devel libgcc-devel binutils ${XBPS_TARGET_LIBC}-devel
libclang-${version}_${revision}"
short_desc+=" - C language family frontend"
homepage="https://clang.llvm.org/"
pkg_install() {
@ -231,11 +233,26 @@ clang_package() {
vmove usr/bin/c-index-test
vmove usr/lib/clang
vmove usr/lib/cmake/clang
vmove "usr/lib/libclang*"
vmove "usr/lib/libclang*.a"
vmove "usr/lib/libclang*.so"
vmove "usr/share/clang"
}
}
libclang_package() {
short_desc+=" - C frontend runtime library"
pkg_install() {
vmove "usr/lib/libclang.so.*"
}
}
libclang-cpp_package() {
short_desc+=" - C frontend runtime library (C++ interface)"
pkg_install() {
vmove "usr/lib/libclang-cpp.so.*"
}
}
lld_package() {
lib32disabled=yes
short_desc+=" - linker"
@ -272,6 +289,7 @@ lldb_package() {
}
lldb-devel_package() {
lib32disabled=yes
depends="lldb>=${version}_${revision}"
short_desc+=" - LLDB debugger - development files"
pkg_install() {