llvm: update to 2.8.

This commit is contained in:
Juan RP 2010-10-25 11:36:54 +02:00
parent 674ed95f86
commit 34d6ea0c35
11 changed files with 99 additions and 14 deletions

1
srcpkgs/libclang Symbolic link
View file

@ -0,0 +1 @@
llvm

1
srcpkgs/libllvm Symbolic link
View file

@ -0,0 +1 @@
llvm

1
srcpkgs/llvm-devel Symbolic link
View file

@ -0,0 +1 @@
llvm

View file

@ -28,10 +28,11 @@ long_desc="
This package includes development files for the LLVM clang." This package includes development files for the LLVM clang."
noarch=yes Add_dependency run clang
do_install() do_install()
{ {
mkdir -p ${DESTDIR}/usr/include install -d ${DESTDIR}/usr/{include,lib}
mv ${SRCPKGDESTDIR}/usr/include/clang* ${DESTDIR}/usr/include mv ${SRCPKGDESTDIR}/usr/include/clang* ${DESTDIR}/usr/include
mv ${SRCPKGDESTDIR}/usr/lib/libclang*.a ${DESTDIR}/usr/lib
} }

View file

@ -30,12 +30,13 @@ Add_dependency run libgcc
Add_dependency run glibc Add_dependency run glibc
Add_dependency run libffi Add_dependency run libffi
Add_dependency run libstdc++ Add_dependency run libstdc++
Add_dependency run libllvm
Add_dependency run llvm Add_dependency run llvm
do_install() do_install()
{ {
mkdir -p ${DESTDIR}/usr/{bin,lib} ${DESTDIR}/usr/share/man/man1 mkdir -p ${DESTDIR}/usr/{bin,lib} ${DESTDIR}/usr/share/man/man1
mv ${SRCPKGDESTDIR}/usr/bin/*clang ${DESTDIR}/usr/bin mv ${SRCPKGDESTDIR}/usr/bin/*clang* ${DESTDIR}/usr/bin
mv ${SRCPKGDESTDIR}/usr/lib/clang ${DESTDIR}/usr/lib mv ${SRCPKGDESTDIR}/usr/lib/clang ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/share/man/man1/*clang* \ mv ${SRCPKGDESTDIR}/usr/share/man/man1/*clang* \
${DESTDIR}/usr/share/man/man1 ${DESTDIR}/usr/share/man/man1

View file

@ -1,2 +1,3 @@
abi_depends=">=2.7" # Only accept the same ABI version.
abi_depends="==2.8"
api_depends="${abi_depends}" api_depends="${abi_depends}"

View file

@ -0,0 +1,41 @@
# Template file for 'libclang'.
#
short_desc="Low-Level Virtual Machine (LLVM), C language family frontend library"
long_desc="
Clang project is a new C, C++, Objective C and Objective C++ front-end for
the LLVM compiler. Some of its goals include the following:
End-User Features:
* Fast compiles and low memory use
* Expressive diagnostics (examples)
* GCC compatibility
Utility and Applications:
* Modular library based architecture
* Support diverse clients (refactoring, static analysis, code
generation, etc)
* Allow tight integration with IDEs
* Use the LLVM 'BSD' License
Internal Design and Implementation:
* A real-world, production quality compiler
* A simple and hackable code base
* A single unified parser for C, Objective C, C++, and Objective C++
* Conformance with C/C++/ObjC and their variants
This package includes the shared library used by the Clang frontend."
Add_dependency run libgcc
Add_dependency run glibc
Add_dependency run libffi
Add_dependency run libstdc++
Add_dependency run libllvm
do_install()
{
install -d ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/libclang.so* ${DESTDIR}/usr/lib
}

View file

@ -0,0 +1,18 @@
# Template file for 'libllvm'.
#
short_desc="Low-Level Virtual Machine (LLVM) - shared libraries"
long_desc="
${long_desc}
This package includes the shared libraries used by the LLVM projects."
Add_dependency run libgcc
Add_dependency run glibc
Add_dependency run libffi
Add_dependency run libstdc++
do_install()
{
install -d ${DESTDIR}/usr/lib
mv ${SRCPKGDESTDIR}/usr/lib/*.so* ${DESTDIR}/usr/lib
}

View file

@ -0,0 +1,17 @@
# Template file for 'llvm-devel'.
#
short_desc="Low Level Virtual Machine - development files"
long_desc="
${long_desc}
This package includes development files for the LLVM clang."
Add_dependency run libffi-devel
Add_dependency run libllvm
Add_dependency run llvm
do_install()
{
install -d ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/{include,lib} ${DESTDIR}/usr
}

View file

@ -1,6 +1,6 @@
# Template file for 'llvm' # Template file for 'llvm'
pkgname=llvm pkgname=llvm
version=2.7 version=2.8
distfiles=" distfiles="
http://www.llvm.org/releases/${version}/llvm-${version}.tgz http://www.llvm.org/releases/${version}/llvm-${version}.tgz
http://www.llvm.org/releases/${version}/clang-${version}.tgz" http://www.llvm.org/releases/${version}/clang-${version}.tgz"
@ -12,8 +12,8 @@ PATH='/bin:/usr/bin:$PATH'"
short_desc="Low Level Virtual Machine" short_desc="Low Level Virtual Machine"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
checksum=" checksum="
99664bdc8503a306038166af33f28eb426d99e297575a59d74a1a0dcbddbbca5 25addb742f1c6cc12877ed0ee924dda962d848368ee095be8e48342ae613d43b
fb349471947f155c1cda1c8a4a3bbc7fa437b86f6875d9978f86c915dfed623a" ed83481553e6a39a8a2953e89630d881d87833506f096a90f18d93ec2bdee0c1"
long_desc=" long_desc="
Low Level Virtual Machine (LLVM) is: Low Level Virtual Machine (LLVM) is:
@ -47,13 +47,15 @@ long_desc="
optional LLVM components can be used to build high-level virtual machines optional LLVM components can be used to build high-level virtual machines
and other systems that need these services." and other systems that need these services."
subpackages="clang clang-devel llvm-docs" subpackages="libclang clang clang-devel libllvm llvm-devel llvm-docs"
# XXX: Investigate bindings support. # XXX: Investigate bindings support.
Add_dependency run libgcc Add_dependency run libgcc
Add_dependency run glibc Add_dependency run glibc
Add_dependency run libstdc++ Add_dependency run libstdc++
Add_dependency run libffi Add_dependency run libffi
Add_dependency run libclang
Add_dependency run libllvm
Add_dependency build python Add_dependency build python
Add_dependency build libffi-devel Add_dependency build libffi-devel

View file

@ -629,12 +629,13 @@ libldap-2.4.so libldap libldap-devel
libldap_r-2.4.so libldap libldap-devel libldap_r-2.4.so libldap libldap-devel
libevent-1.4.so libevent libevent-devel libevent-1.4.so libevent libevent-devel
libSDL_mixer-1.2.so SDL_mixer SDL_mixer-devel libSDL_mixer-1.2.so SDL_mixer SDL_mixer-devel
libCIndex.so llvm llvm-devel libEnhancedDisassembly.so libllvm
libEnhancedDisassembly.so llvm llvm-devel libLLVM-2.8.so libllvm
libLLVM-2.7.so llvm llvm-devel libLLVMHello.so libllvm
libLLVMHello.so llvm llvm-devel libLTO.so libllvm
libLTO.so llvm llvm-devel libprofile_rt.so libllvm
libprofile_rt.so llvm llvm-devel libBugpointPasses.so libllvm
libclang.so libclang
libapr-1.so apr apr-devel libapr-1.so apr apr-devel
libaprutil-1.so apr-util apr-util-devel libaprutil-1.so apr-util apr-util-devel
libnetpgp.so libnetpgp libnetpgp-devel libnetpgp.so libnetpgp libnetpgp-devel