summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2010-08-26 07:07:43 +0000
committerFabian Groffen <grobian@gentoo.org>2010-08-26 07:07:43 +0000
commit4d18cdc6fa42d4a7b54daa47917bcacf8ba620d3 (patch)
tree5a690f7b15db1143a2d34e82fab5d5ec23d76252 /sys-devel/clang/clang-9999.ebuild
parentBump to EAPI=3, make Prefix aware, add support for Darwin platforms, bug #333617 (diff)
downloadhistorical-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
Diffstat (limited to 'sys-devel/clang/clang-9999.ebuild')
-rw-r--r--sys-devel/clang/clang-9999.ebuild23
1 files changed, 19 insertions, 4 deletions
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() {