# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Low Level Virtual Machine" HOMEPAGE="http://llvm.org/" SRC_URI="http://llvm.cs.uiuc.edu/releases/${PV}/llvm-${PV}.tar.gz" LICENSE="llvm" SLOT="0" KEYWORDS="~ppc ~sparc ~x86" IUSE="jit" DEPEND=">=app-arch/pax-3.3.4" S=${WORKDIR}/llvm src_unpack() { unpack ${A} sed -i -e 's/-C//' ${S}/docs/Makefile || die "bad sed" sed -i -e 's/-C//' ${S}/docs/CommandGuide/Makefile || die "bad sed" sed -i -e 's/OPTIONAL_DIRS/#OPTIONAL_DIRS/' ${S}/Makefile || die "bad sed" } src_compile() { econf \ $(use_enable jit) \ || die emake tools-only || die } src_install() { make DESTDIR="${D}" install || die }