diff options
author | 2013-12-28 14:02:19 +0000 | |
---|---|---|
committer | 2013-12-28 14:02:19 +0000 | |
commit | 86618277b576ec101019a3d03d78e6c3e0e935eb (patch) | |
tree | 7170718d432897df96ab15bdcf01faa880562047 /sys-devel | |
parent | Version bump. (diff) | |
download | gentoo-2-86618277b576ec101019a3d03d78e6c3e0e935eb.tar.gz gentoo-2-86618277b576ec101019a3d03d78e6c3e0e935eb.tar.bz2 gentoo-2-86618277b576ec101019a3d03d78e6c3e0e935eb.zip |
Add bugpoint to built tools. Switch llvm-config wrapping to use $CHOST-llvm-config.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/llvm/ChangeLog | 6 | ||||
-rw-r--r-- | sys-devel/llvm/llvm-9999.ebuild | 30 |
2 files changed, 22 insertions, 14 deletions
diff --git a/sys-devel/llvm/ChangeLog b/sys-devel/llvm/ChangeLog index 9386048e2618..1ba9f6c5e9ed 100644 --- a/sys-devel/llvm/ChangeLog +++ b/sys-devel/llvm/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-devel/llvm # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/ChangeLog,v 1.158 2013/12/27 14:43:50 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/ChangeLog,v 1.159 2013/12/28 14:02:19 mgorny Exp $ + + 28 Dec 2013; Michał Górny <mgorny@gentoo.org> llvm-9999.ebuild: + Add bugpoint to built tools. Switch llvm-config wrapping to use $CHOST-llvm- + config. 27 Dec 2013; Michał Górny <mgorny@gentoo.org> llvm-9999.ebuild: Update/fix dependencies. diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild index 3508f0d44923..08ba07caea52 100644 --- a/sys-devel/llvm/llvm-9999.ebuild +++ b/sys-devel/llvm/llvm-9999.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/llvm-9999.ebuild,v 1.72 2013/12/27 14:43:50 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/llvm-9999.ebuild,v 1.73 2013/12/28 14:02:19 mgorny Exp $ EAPI=5 @@ -277,7 +277,7 @@ set_makeargs() { llvm-extract llvm-mc llvm-bcanalyzer llvm-diff macho-dump llvm-objdump llvm-readobj llvm-rtdyld llvm-dwarfdump llvm-cov llvm-size llvm-stress llvm-mcmarkup llvm-symbolizer obj2yaml - yaml2obj lto + yaml2obj lto bugpoint ) # those tools require 'lto' built first, so we need to delay @@ -357,11 +357,22 @@ multilib_src_install() { emake "${MAKEARGS[@]}" DESTDIR="${D}" install - if multilib_build_binaries; then + # Preserve ABI-variant of llvm-config. + dodir /tmp + mv "${ED}"/usr/bin/llvm-config "${ED}"/tmp/"${CHOST}"-llvm-config || die + + if ! multilib_build_binaries; then + # Drop all the executables since LLVM doesn't like to + # clobber when installing. + rm -r "${ED}"/usr/bin || die + + # Backwards compat, will be happily removed someday. + dosym "${CHOST}"-llvm-config /tmp/llvm-config.${ABI} + else # Move files back. - if path_exists -o "${ED}"/tmp/llvm-config.*; then - mv "${ED}"/tmp/llvm-config.* "${ED}"/usr/bin || die - fi + mv "${ED}"/tmp/*llvm-config* "${ED}"/usr/bin || die + # Create a symlink for host's llvm-config. + dosym "${CHOST}"-llvm-config /usr/bin/llvm-config # Install docs. doman "${S}"/docs/_build/man/*.1 @@ -377,13 +388,6 @@ multilib_src_install() { # install cmake modules emake -C "${S%/}"_cmake/cmake/modules DESTDIR="${D}" install - else - # Preserve ABI-variant of llvm-config, - # then drop all the executables since LLVM doesn't like to - # clobber when installing. - mkdir -p "${ED}"/tmp || die - mv "${ED}"/usr/bin/llvm-config "${ED}"/tmp/llvm-config.${ABI} || die - rm -r "${ED}"/usr/bin || die fi # Fix install_names on Darwin. The build system is too complicated |