diff options
author | Fabian Groffen <grobian@gentoo.org> | 2010-08-26 07:07:43 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2010-08-26 07:07:43 +0000 |
commit | 4d18cdc6fa42d4a7b54daa47917bcacf8ba620d3 (patch) | |
tree | 5a690f7b15db1143a2d34e82fab5d5ec23d76252 | |
parent | Bump to EAPI=3, make Prefix aware, add support for Darwin platforms, bug #333617 (diff) | |
download | historical-4d18cdc6fa42d4a7b54daa47917bcacf8ba620d3.tar.gz historical-4d18cdc6fa42d4a7b54daa47917bcacf8ba620d3.tar.bz2 historical-4d18cdc6fa42d4a7b54daa47917bcacf8ba620d3.zip |
Bump to EAPI=3, make Prefix aware, add support for Darwin platforms, bug #332605
Package-Manager: portage-2.2.01.15553-prefix/cvs/Darwin powerpc
-rw-r--r-- | sys-devel/clang/ChangeLog | 7 | ||||
-rw-r--r-- | sys-devel/clang/clang-2.7-r2.ebuild | 25 | ||||
-rw-r--r-- | sys-devel/clang/clang-9999.ebuild | 23 | ||||
-rw-r--r-- | sys-devel/llvm/Manifest | 4 |
4 files changed, 47 insertions, 12 deletions
diff --git a/sys-devel/clang/ChangeLog b/sys-devel/clang/ChangeLog index 05055b6521e7..cd97f657bad8 100644 --- a/sys-devel/clang/ChangeLog +++ b/sys-devel/clang/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-devel/clang # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/ChangeLog,v 1.19 2010/08/19 19:32:20 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/ChangeLog,v 1.20 2010/08/26 07:07:43 grobian Exp $ + + 26 Aug 2010; Fabian Groffen <grobian@gentoo.org> clang-2.7-r2.ebuild, + clang-9999.ebuild: + Bump to EAPI=3, make Prefix aware, add support for Darwin platforms, bug + #332605 19 Aug 2010; Bernard Cafarelli <voyageur@gentoo.org> clang-9999.ebuild: system-cxx-headers was missing in -9999 IUSE, spotted by Jack Lloyd diff --git a/sys-devel/clang/clang-2.7-r2.ebuild b/sys-devel/clang/clang-2.7-r2.ebuild index 421d384538a0..10e840f5678b 100644 --- a/sys-devel/clang/clang-2.7-r2.ebuild +++ b/sys-devel/clang/clang-2.7-r2.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/clang-2.7-r2.ebuild,v 1.1 2010/07/27 13:06:47 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/clang-2.7-r2.ebuild,v 1.2 2010/08/26 07:07:43 grobian Exp $ -EAPI=2 +EAPI=3 RESTRICT_PYTHON_ABIS="3.*" SUPPORT_PYTHON_ABIS="1" @@ -17,7 +17,7 @@ SRC_URI="http://llvm.org/releases/${PV}/llvm-${PV}.tgz LICENSE="UoI-NCSA" SLOT="0" -KEYWORDS="~amd64 ~x86" +KEYWORDS="~amd64 ~x86 ~ppc-macos" IUSE="debug +static-analyzer system-cxx-headers test" # Note: for LTO support, clang will depend on binutils with gold plugins, and LLVM built after that - http://llvm.org/docs/GoldPlugin.html @@ -50,7 +50,7 @@ src_prepare() { # From llvm src_prepare einfo "Fixing install dirs" sed -e 's,^PROJ_docsdir.*,PROJ_docsdir := $(PROJ_prefix)/share/doc/'${PF}, \ - -e 's,^PROJ_etcdir.*,PROJ_etcdir := /etc/llvm,' \ + -e 's,^PROJ_etcdir.*,PROJ_etcdir := '"${EPREFIX}"'/etc/llvm,' \ -e 's,^PROJ_libdir.*,PROJ_libdir := $(PROJ_prefix)/'$(get_libdir), \ -i Makefile.config.in || die "Makefile.config sed failed" @@ -73,6 +73,12 @@ src_configure() { --disable-expensive-checks" fi + # Setup the search path to include the Prefix includes + if use prefix ; then + CONF_FLAGS="${CONF_FLAGS} \ + --with-c-include-dirs=${EPREFIX}/usr/include:/usr/include" + fi + if use amd64; then CONF_FLAGS="${CONF_FLAGS} --enable-pic" fi @@ -127,10 +133,19 @@ src_install() { install-scan-view() { insinto "$(python_get_sitedir)"/clang doins Reporter.py Resources ScanView.py startfile.py - touch "${D}"/"$(python_get_sitedir)"/clang/__init__.py + touch "${ED}"/"$(python_get_sitedir)"/clang/__init__.py } python_execute_function install-scan-view fi + + # Fix install_names on Darwin. The build system is too complicated + # to just fix this, so we correct it post-install + if [[ ${CHOST} == *-darwin* ]] ; then + for lib in libCIndex.dylib ; do + install_name_tool -id "${EPREFIX}"/usr/lib/${lib} \ + "${ED}"/usr/lib/${lib} + done + fi } pkg_postinst() { diff --git a/sys-devel/clang/clang-9999.ebuild b/sys-devel/clang/clang-9999.ebuild index 0e579d55a6b6..8ec648edd72b 100644 --- a/sys-devel/clang/clang-9999.ebuild +++ b/sys-devel/clang/clang-9999.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/clang-9999.ebuild,v 1.5 2010/08/19 19:32:20 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/clang-9999.ebuild,v 1.6 2010/08/26 07:07:43 grobian Exp $ -EAPI=2 +EAPI=3 RESTRICT_PYTHON_ABIS="3.*" SUPPORT_PYTHON_ABIS="1" @@ -53,7 +53,7 @@ src_prepare() { # From llvm src_prepare einfo "Fixing install dirs" sed -e 's,^PROJ_docsdir.*,PROJ_docsdir := $(PROJ_prefix)/share/doc/'${PF}, \ - -e 's,^PROJ_etcdir.*,PROJ_etcdir := /etc/llvm,' \ + -e 's,^PROJ_etcdir.*,PROJ_etcdir := '"${EPREFIX}"'/etc/llvm,' \ -e 's,^PROJ_libdir.*,PROJ_libdir := $(PROJ_prefix)/'$(get_libdir), \ -i Makefile.config.in || die "Makefile.config sed failed" @@ -76,6 +76,12 @@ src_configure() { --disable-expensive-checks" fi + # Setup the search path to include the Prefix includes + if use prefix ; then + CONF_FLAGS="${CONF_FLAGS} \ + --with-c-include-dirs=${EPREFIX}/usr/include:/usr/include" + fi + if use amd64; then CONF_FLAGS="${CONF_FLAGS} --enable-pic" fi @@ -130,10 +136,19 @@ src_install() { install-scan-view() { insinto "$(python_get_sitedir)"/clang doins Reporter.py Resources ScanView.py startfile.py - touch "${D}"/"$(python_get_sitedir)"/clang/__init__.py + touch "${ED}"/"$(python_get_sitedir)"/clang/__init__.py } python_execute_function install-scan-view fi + + # Fix install_names on Darwin. The build system is too complicated + # to just fix this, so we correct it post-install + if [[ ${CHOST} == *-darwin* ]] ; then + for lib in libCIndex.dylib ; do + install_name_tool -id "${EPREFIX}"/usr/lib/${lib} \ + "${ED}"/usr/lib/${lib} + done + fi } pkg_postinst() { diff --git a/sys-devel/llvm/Manifest b/sys-devel/llvm/Manifest index 2c9cadb36604..77faf00c2666 100644 --- a/sys-devel/llvm/Manifest +++ b/sys-devel/llvm/Manifest @@ -2,7 +2,7 @@ AUX llvm-2.6-commandguide-nops.patch 975 RMD160 1178c27a8845c2c86d6d381ba3d95b4b AUX llvm-2.6-nodoctargz.patch 1602 RMD160 b4de7f5e68386bd9dab44a6d7addae0eb9d7f958 SHA1 5a2faf5d9c52f1eb1f1eac3aa69b6d0499c093a4 SHA256 503d31616ca7c76f6da1cd46d6e7c54241effbd11652ab568759350f0c21e473 AUX llvm-2.7-nodoctargz.patch 1878 RMD160 a6134fd292a1a2c6a594e787ce73b15012be04bb SHA1 9d32a0e15791789d8bf58dfecf9580a00d150319 SHA256 983657329ebede731b397ba0256d729b3958f39faea64c9f7d065ab8d2a3e7fd DIST llvm-2.7.tgz 8374297 RMD160 0fa2f362dd6a45efec35ce8fa0f8d36d98f32c8f SHA1 059fc21b0ec1b649c4a3dec81756e5f92aa131a2 SHA256 99664bdc8503a306038166af33f28eb426d99e297575a59d74a1a0dcbddbbca5 -EBUILD llvm-2.7.ebuild 5114 RMD160 f3b39dd7114f4e68862c2517d960aff7cb60c332 SHA1 16f2848a7a53c0ff10d6d737ee9f51831290ba04 SHA256 8c98b61d5c751537c1608026390e35b77e98f7540bb7aa6a91101195263e288a -EBUILD llvm-9999.ebuild 5120 RMD160 046acfce51475db58915c03beda6a49ba5a9c486 SHA1 6b79d5d423888b224958adf4b1ceb31ae7740599 SHA256 bc21212c94f77b50906cc56abc11f8a0f8f539f7876fe73bb76eec587ceb663d +EBUILD llvm-2.7.ebuild 5114 RMD160 58145aa02b254cfca47637673e706b76f2ac170a SHA1 94f83583636468f7127a7837db14190ff100056a SHA256 712b9ed20715bd324c58d38dc24d9742fb1d7d90d9bda6c1b5d54099cbd650b2 +EBUILD llvm-9999.ebuild 5120 RMD160 8ac2a182bb68f5752fa2371de66f8ed9cbb3767f SHA1 1c4136ab498654c09df63a772312cfbc171a197b SHA256 3d86e621840d485fc3c59fe363a325407beae7d3af2b54682c53ae61bc902b67 MISC ChangeLog 2909 RMD160 b12efb9ef3251a98ac94d77a1aa397b1956e5a6a SHA1 8ed4d0b6bde9253f4959a049fa39f35e3b208d2f SHA256 4b81056c1642b1f332b5b03088413ed65c87acfeadb1a7455257847afc976fea MISC metadata.xml 2384 RMD160 9e29d256ab1d3d7cc23fe25d170a1716b6e35dba SHA1 db599887234c1013a7849be3e1b6bd399c716598 SHA256 44f73ce01ca8dc1d2fea546bb70550d6324ed893a224a6db8e55fd932b3a10f8 |