summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2010-08-26 07:00:53 +0000
committerFabian Groffen <grobian@gentoo.org>2010-08-26 07:00:53 +0000
commit88fc3b8f6a18f7848496d4f7b6fffb6bff5fd871 (patch)
tree79467709d213b92338cddddaa717b35554bfa874 /sys-devel
parentActually move ree18 support to -r2 only, not the other way around. (diff)
downloadgentoo-2-88fc3b8f6a18f7848496d4f7b6fffb6bff5fd871.tar.gz
gentoo-2-88fc3b8f6a18f7848496d4f7b6fffb6bff5fd871.tar.bz2
gentoo-2-88fc3b8f6a18f7848496d4f7b6fffb6bff5fd871.zip
Bump to EAPI=3, make Prefix aware, add support for Darwin platforms, bug #333387
(Portage version: 2.2.01.15553-prefix/cvs/Darwin powerpc)
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/llvm/ChangeLog7
-rw-r--r--sys-devel/llvm/llvm-2.7.ebuild23
-rw-r--r--sys-devel/llvm/llvm-9999.ebuild21
3 files changed, 37 insertions, 14 deletions
diff --git a/sys-devel/llvm/ChangeLog b/sys-devel/llvm/ChangeLog
index a79ef056dc36..4864232c7237 100644
--- a/sys-devel/llvm/ChangeLog
+++ b/sys-devel/llvm/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-devel/llvm
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/ChangeLog,v 1.15 2010/07/20 09:25:26 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/ChangeLog,v 1.16 2010/08/26 07:00:53 grobian Exp $
+
+ 26 Aug 2010; Fabian Groffen <grobian@gentoo.org> llvm-2.7.ebuild,
+ llvm-9999.ebuild:
+ Bump to EAPI=3, make Prefix aware, add support for Darwin platforms,
+ bug #333387
20 Jul 2010; Bernard Cafarelli <voyageur@gentoo.org> -llvm-2.6-r2.ebuild,
-files/llvm-2.6-cflags.patch:
diff --git a/sys-devel/llvm/llvm-2.7.ebuild b/sys-devel/llvm/llvm-2.7.ebuild
index de372c52edfe..4566c5b435b2 100644
--- a/sys-devel/llvm/llvm-2.7.ebuild
+++ b/sys-devel/llvm/llvm-2.7.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/llvm/llvm-2.7.ebuild,v 1.2 2010/06/01 19:29:46 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/llvm-2.7.ebuild,v 1.3 2010/08/26 07:00:53 grobian Exp $
-EAPI="2"
+EAPI="3"
inherit eutils multilib toolchain-funcs
DESCRIPTION="Low Level Virtual Machine"
@@ -11,7 +11,7 @@ SRC_URI="http://llvm.org/releases/${PV}/${P}.tgz"
LICENSE="UoI-NCSA"
SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86"
+KEYWORDS="~amd64 ~ppc ~x86 ~ppc-macos"
IUSE="alltargets debug +libffi llvm-gcc ocaml test udis86"
DEPEND="dev-lang/perl
@@ -20,8 +20,8 @@ DEPEND="dev-lang/perl
>=sys-devel/bison-1.28
!~sys-devel/bison-1.85
!~sys-devel/bison-1.875
- >=sys-devel/gcc-3.0
- >=sys-devel/binutils-2.18
+ || ( >=sys-devel/gcc-3.0 >=sys-devel/gcc-apple-4.1.2 )
+ || ( >=sys-devel/binutils-2.18 >=sys-devel/binutils-apple-3.2.3 )
libffi? ( virtual/libffi )
ocaml? ( dev-lang/ocaml )
test? ( dev-util/dejagnu )
@@ -69,7 +69,7 @@ src_prepare() {
# care of this.
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"
@@ -110,7 +110,7 @@ src_configure() {
local LLVM_GCC_DRIVER=nope ; local LLVM_GPP_DRIVER=nope
if use llvm-gcc ; then
if has_version sys-devel/llvm-gcc; then
- LLVM_GCC_DIR=$(ls -d ${ROOT}/usr/$(get_libdir)/llvm-gcc* 2> /dev/null)
+ LLVM_GCC_DIR=$(ls -d ${EROOT}/usr/$(get_libdir)/llvm-gcc* 2> /dev/null)
LLVM_GCC_DRIVER=$(find ${LLVM_GCC_DIR} -name 'llvm*-gcc' 2> /dev/null)
if [[ -z ${LLVM_GCC_DRIVER} ]] ; then
die "failed to find installed llvm-gcc, LLVM_GCC_DIR=${LLVM_GCC_DIR}"
@@ -149,4 +149,13 @@ src_compile() {
src_install() {
emake KEEP_SYMBOLS=1 DESTDIR="${D}" install || die "install failed"
+
+ # 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 lib{LLVMHello,LTO,profile_rt}.dylib ; do
+ install_name_tool -id "${EPREFIX}"/usr/lib/${lib} \
+ "${ED}"/usr/lib/${lib}
+ done
+ fi
}
diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild
index 29f69397dfdd..e33f04435807 100644
--- a/sys-devel/llvm/llvm-9999.ebuild
+++ b/sys-devel/llvm/llvm-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/llvm/llvm-9999.ebuild,v 1.1 2010/06/01 21:25:28 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm/llvm-9999.ebuild,v 1.2 2010/08/26 07:00:53 grobian Exp $
-EAPI="2"
+EAPI="3"
inherit subversion eutils multilib toolchain-funcs
DESCRIPTION="Low Level Virtual Machine"
@@ -21,8 +21,8 @@ DEPEND="dev-lang/perl
>=sys-devel/bison-1.28
!~sys-devel/bison-1.85
!~sys-devel/bison-1.875
- >=sys-devel/gcc-3.0
- >=sys-devel/binutils-2.18
+ || ( >=sys-devel/gcc-3.0 >=sys-devel/gcc-apple-4.1.2 )
+ || ( >=sys-devel/binutils-2.18 >=sys-devel/binutils-apple-3.2.3 )
libffi? ( virtual/libffi )
ocaml? ( dev-lang/ocaml )
test? ( dev-util/dejagnu )
@@ -70,7 +70,7 @@ src_prepare() {
# care of this.
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"
@@ -111,7 +111,7 @@ src_configure() {
local LLVM_GCC_DRIVER=nope ; local LLVM_GPP_DRIVER=nope
if use llvm-gcc ; then
if has_version sys-devel/llvm-gcc; then
- LLVM_GCC_DIR=$(ls -d ${ROOT}/usr/$(get_libdir)/llvm-gcc* 2> /dev/null)
+ LLVM_GCC_DIR=$(ls -d ${EROOT}/usr/$(get_libdir)/llvm-gcc* 2> /dev/null)
LLVM_GCC_DRIVER=$(find ${LLVM_GCC_DIR} -name 'llvm*-gcc' 2> /dev/null)
if [[ -z ${LLVM_GCC_DRIVER} ]] ; then
die "failed to find installed llvm-gcc, LLVM_GCC_DIR=${LLVM_GCC_DIR}"
@@ -150,4 +150,13 @@ src_compile() {
src_install() {
emake KEEP_SYMBOLS=1 DESTDIR="${D}" install || die "install failed"
+
+ # 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 lib{LLVMHello,LTO,profile_rt}.dylib ; do
+ install_name_tool -id "${EPREFIX}"/usr/lib/${lib} \
+ "${ED}"/usr/lib/${lib}
+ done
+ fi
}