From 989f351fd6462a265eb28d6fdd68a7e884efefc6 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 11 Feb 2015 14:32:52 +0100 Subject: [PATCH] llvm: add lldb-3.5.1. --- common/shlibs | 1 + srcpkgs/lldb | 1 + srcpkgs/lldb-devel | 1 + srcpkgs/llvm/template | 39 +++++++++++++++++++++++++++++++++------ 4 files changed, 36 insertions(+), 6 deletions(-) create mode 120000 srcpkgs/lldb create mode 120000 srcpkgs/lldb-devel diff --git a/common/shlibs b/common/shlibs index 8ff8909568f..a235ea6b9b6 100644 --- a/common/shlibs +++ b/common/shlibs @@ -905,6 +905,7 @@ libgtksourceviewmm-3.0.so.0 gtksourceviewmm-3.2.0_1 libyajl.so.2 yajl-2.0.1_1 libconfuse.so.0 confuse-2.7_1 libclang.so clang-3.4.2_1 +liblldb.so lldb-3.5.1_1 libLLVM-3.5.so libllvm-3.5.0_1 libisofs.so.6 libisofs-0.6.24_1 libbfd-2.22.so binutils-2.22_1<2.23_1 diff --git a/srcpkgs/lldb b/srcpkgs/lldb new file mode 120000 index 00000000000..0d68131b9b3 --- /dev/null +++ b/srcpkgs/lldb @@ -0,0 +1 @@ +llvm \ No newline at end of file diff --git a/srcpkgs/lldb-devel b/srcpkgs/lldb-devel new file mode 120000 index 00000000000..0d68131b9b3 --- /dev/null +++ b/srcpkgs/lldb-devel @@ -0,0 +1 @@ +llvm \ No newline at end of file diff --git a/srcpkgs/llvm/template b/srcpkgs/llvm/template index 06cfaa35860..c2c06b42b87 100644 --- a/srcpkgs/llvm/template +++ b/srcpkgs/llvm/template @@ -2,7 +2,7 @@ pkgname=llvm version=3.5.1 wrksrc="llvm-${version}.src" -revision=1 +revision=2 lib32disabled=yes configure_args="--disable-expensive-checks --disable-debug-runtime --enable-bindings=none --enable-optimized --enable-shared --enable-libffi @@ -15,22 +15,27 @@ homepage="http://www.llvm.org" license="BSD" distfiles=" http://www.llvm.org/releases/${version}/llvm-${version}.src.tar.xz + http://www.llvm.org/releases/${version}/lldb-${version}.src.tar.xz http://www.llvm.org/releases/${version}/cfe-${version}.src.tar.xz http://www.llvm.org/releases/${version}/compiler-rt-${version}.src.tar.xz" -checksum=" - bf3275d2d7890015c8d8f5e6f4f882f8cf3bf51967297ebe74111d6d8b53be15 +checksum="bf3275d2d7890015c8d8f5e6f4f882f8cf3bf51967297ebe74111d6d8b53be15 + e8b948c6c85cd61bd9a48361959401b9c631fa257c0118db26697c5d57460e13 6773f3f9cf815631cc7e779ec134ddd228dc8e9a250e1ea3a910610c59eb8f5c adf4b526f33e681aff5961f0821f5b514d3fc375410008842640b56a2e6a837a" # XXX Investigate ocaml bindings. -hostmakedepends="groff perl python zlib-devel libffi-devel" -makedepends="zlib-devel libffi-devel" +hostmakedepends="groff perl python zlib-devel libffi-devel swig" +makedepends="python-devel zlib-devel libffi-devel libedit-devel" post_extract() { # Move clang files into the llvm source. if [ -d ${XBPS_BUILDDIR}/cfe-${version}.src ]; then mv ${XBPS_BUILDDIR}/cfe-${version}.src ${wrksrc}/tools/clang fi + # Move lldb files into the llvm source. + if [ -d ${XBPS_BUILDDIR}/lldb-${version}.src ]; then + mv ${XBPS_BUILDDIR}/lldb-${version}.src ${wrksrc}/tools/lldb + fi # Move compiler-rt files into the llvm source. if [ -d ${XBPS_BUILDDIR}/compiler-rt-${version%.*} ]; then mv ${XBPS_BUILDDIR}/compiler-rt-${version%.*} ${wrksrc}/projects/compiler-rt @@ -63,7 +68,7 @@ do_install() { # Fix permissions of static libs chmod -x ${DESTDIR}/usr/lib/*.a - + # Get rid of example Hello transformation rm ${DESTDIR}/usr/lib/*LLVMHello.* @@ -117,6 +122,28 @@ clang_package() { } } +lldb_package() { + lib32disabled=yes + depends="libstdc++-devel binutils gcc" + short_desc+=" - LLDB debugger" + homepage="http://lldb.llvm.org/" + pkg_install() { + vmove "usr/bin/*lldb*" + vmove "usr/lib/liblldb*so" + vman tools/lldb/docs/lldb.1 + vmove "/usr/lib/python*" + } +} + +lldb-devel_package() { + depends="lldb>=${version}_${revision}" + short_desc+=" - LLDB debugger - development files" + pkg_install() { + vmove usr/include/lldb + vmove "usr/lib/liblldb*.a" + } +} + llvm-docs_package() { noarch=yes short_desc+=" - documentation files"