summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2010-03-20 14:14:45 +0000
committerMarkus Ullmann <jokey@gentoo.org>2010-03-20 14:14:45 +0000
commitafbf5c34098fc94ed3afb56b98f96d0804e7ceff (patch)
tree4319dcceebfb340266c9ccf05511708ff1cd85bf
parentVersion bump (diff)
downloadjokey-afbf5c34098fc94ed3afb56b98f96d0804e7ceff.tar.gz
jokey-afbf5c34098fc94ed3afb56b98f96d0804e7ceff.tar.bz2
jokey-afbf5c34098fc94ed3afb56b98f96d0804e7ceff.zip
Add llvm 2.7 svn ebuilds
svn path=/trunk/; revision=772
-rw-r--r--sys-devel/llvm-gcc/Manifest2
-rw-r--r--sys-devel/llvm-gcc/llvm-gcc-2.7_pre1.ebuild76
-rw-r--r--sys-devel/llvm-gcc/metadata.xml19
-rw-r--r--sys-devel/llvm/Manifest5
-rw-r--r--sys-devel/llvm/files/llvm-2.7-cflags.patch38
-rw-r--r--sys-devel/llvm/files/llvm-2.7-destdir.patch16
-rw-r--r--sys-devel/llvm/files/llvm-2.7-nodoctargz.patch36
-rw-r--r--sys-devel/llvm/llvm-2.7_pre1.ebuild160
-rw-r--r--sys-devel/llvm/metadata.xml19
9 files changed, 371 insertions, 0 deletions
diff --git a/sys-devel/llvm-gcc/Manifest b/sys-devel/llvm-gcc/Manifest
new file mode 100644
index 0000000..a804942
--- /dev/null
+++ b/sys-devel/llvm-gcc/Manifest
@@ -0,0 +1,2 @@
+EBUILD llvm-gcc-2.7_pre1.ebuild 2104 RMD160 396d94a332bf710e923cbb254323e4a4e77dff74 SHA1 09d4a37e55eae2d5d2f83e9317b81c9467af0a18 SHA256 200d2d2698110d0be97e9975e9a5dc22302fda01c0f4ff346fe34cb23533d1d2
+MISC metadata.xml 1210 RMD160 452adfc54714ef433d1029368d731d2ba232443a SHA1 00c2795c89050749d088beb5202877fa6bf7a01d SHA256 9d192d1f60fc67d6bee5d6669fe84adc94a097d42f70a6f20e4f708d094b5d7c
diff --git a/sys-devel/llvm-gcc/llvm-gcc-2.7_pre1.ebuild b/sys-devel/llvm-gcc/llvm-gcc-2.7_pre1.ebuild
new file mode 100644
index 0000000..b0730da
--- /dev/null
+++ b/sys-devel/llvm-gcc/llvm-gcc-2.7_pre1.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/llvm-gcc/llvm-gcc-2.6.ebuild,v 1.3 2010/01/05 10:19:26 voyageur Exp $
+
+EAPI=2
+inherit multilib subversion
+
+LLVM_GCC_VERSION=4.2
+MY_PV=${LLVM_GCC_VERSION}-${PV/_pre*}
+
+DESCRIPTION="LLVM C front-end"
+HOMEPAGE="http://llvm.org"
+ESVN_REPO_URI="http://llvm.org/svn/llvm-project/llvm-gcc-${LLVM_GCC_VERSION}/trunk"
+
+LICENSE="GPL-2"
+SLOT=0
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="bootstrap fortran multilib nls objc objc++ test"
+
+RDEPEND=">=sys-devel/llvm-$PV"
+DEPEND="${RDEPEND}
+ >=sys-apps/texinfo-4.2-r4
+ >=sys-devel/binutils-2.18
+ >=sys-devel/bison-1.875
+ test? ( dev-util/dejagnu
+ sys-devel/autogen )"
+
+S=${WORKDIR}/llvm-gcc${MY_PV}.source/obj
+
+src_unpack() {
+ subversion_fetch "${ESVN_REPO_URI}" ".."
+}
+
+src_prepare() {
+ #we keep the directory structure suggested by README.LLVM,
+ mkdir -p "${S}"
+}
+
+src_configure() {
+ # Target options are handled by econf
+
+ EXTRALANGS=""
+ use fortran && EXTRALANGS="${EXTRALANGS},fortran"
+ use objc && EXTRALANGS="${EXTRALANGS},objc"
+ use objc++ && EXTRALANGS="${EXTRALANGS},obj-c++"
+
+ ECONF_SOURCE="${WORKDIR}"/llvm-gcc${MY_PV}.source econf --prefix=/usr/$(get_libdir)/${PN}-${MY_PV} \
+ $(use_enable multilib) \
+ --program-prefix=${PN}-${MY_PV}- \
+ --enable-llvm=/usr --enable-languages=c,c++${EXTRALANGS} \
+ || die "configure failed"
+}
+
+src_compile() {
+ BUILDOPTIONS="LLVM_VERSION_INFO=${MY_PV}"
+ use bootstrap && BUILDOPTIONS="${BUILDOPTIONS} bootstrap"
+ emake ${BUILDOPTIONS} || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "installation failed"
+ rm -rf "${D}"/usr/share/man/man7
+ if ! use nls; then
+ einfo "nls USE flag disabled, not installing locale files"
+ rm -rf "${D}"/usr/share/locale
+ fi
+
+ # Add some symlinks
+ dodir /usr/bin
+ cd "${D}/usr/bin"
+ for X in c++ g++ cpp gcc gcov gccbug ; do
+ ln -s /usr/$(get_libdir)/${PN}-${MY_PV}/bin/${PN}-${MY_PV}-${X} llvm-${X}
+ done
+ use fortran && \
+ ln -s /usr/$(get_libdir)/${PN}-${MY_PV}/bin/${PN}-${MY_PV}-gfortran llvm-gfortran
+}
diff --git a/sys-devel/llvm-gcc/metadata.xml b/sys-devel/llvm-gcc/metadata.xml
new file mode 100644
index 0000000..b9821af
--- /dev/null
+++ b/sys-devel/llvm-gcc/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>voyageur@gentoo.org</email>
+ <name>Bernard Cafarelli</name>
+ </maintainer>
+ <longdescription>The llvm-gcc command is the LLVM C front end. It is a modified version of gcc that compiles C/ObjC programs into native objects, LLVM bitcode or LLVM assembly language, depending upon the options.
+
+By default, llvm-gcc compiles to native objects just like GCC does. If the -emit-llvm and -c options are given then it will generate LLVM bitcode files instead. If -emit-llvm and -S are given, then it will generate LLVM assembly.
+
+Being derived from the GNU Compiler Collection, llvm-gcc has many of gcc's features and accepts most of gcc's options. It handles a number of gcc's extensions to the C programming language. See the gcc documentation for details.</longdescription>
+ <use>
+ <flag name="bootstrap">Compile the final llvm-gcc executables with llvm-gcc itself</flag>
+ <flag name="objc">Build support for the Objective C code language</flag>
+ <flag name="objc++">Build support for the Objective C++ language</flag>
+ </use>
+</pkgmetadata>
diff --git a/sys-devel/llvm/Manifest b/sys-devel/llvm/Manifest
new file mode 100644
index 0000000..9122379
--- /dev/null
+++ b/sys-devel/llvm/Manifest
@@ -0,0 +1,5 @@
+AUX llvm-2.7-cflags.patch 1271 RMD160 a69165481cacebc301ccba838cfc5763c391ecff SHA1 0e773702d6314f9879bc845c0d6e072d71f4bb44 SHA256 d9bc94de0438a8c7ee7a0c2c6446c8b5b329c1afc3440611afc2cbb958cfb4f5
+AUX llvm-2.7-destdir.patch 664 RMD160 ebb4563e5033f9d5e4fc59e5bbc8b9ad01ce1700 SHA1 d06f75afe21d0e08a6e7fa4b13aa4ed75cfa5e19 SHA256 3bed5624b157bccd6712a3f817f511bd2cf618a294c81628348de0213afb680f
+AUX llvm-2.7-nodoctargz.patch 1431 RMD160 11c4200faa14c94a346a94bda40f7bcfc2be7aec SHA1 18b51111ace79cf2bcea0e4d2e17c4dcaad52f2e SHA256 c07c654c12f031fb8bb79ab3a9a806d0f1eee13ff2140c597af5c4d9b19615b9
+EBUILD llvm-2.7_pre1.ebuild 5059 RMD160 1f1ad432cbefd3fd007e19660c4f157442e7b36d SHA1 edbdf8ddf471015d2b98e6836f741a2a857c3dd2 SHA256 d8865745e3e0cc6ea11fbc584004faec6e44b8266bcd9e9302d75d74d3762ec5
+MISC metadata.xml 2288 RMD160 af9be4ed48671eb880b16f7be6fd0f4cce20e05e SHA1 c5c0bcb6379a43f938fa9746acac91de66021af1 SHA256 7ee8a761be956332d626157b4eda36fd907ecb82609c4dbbbe5ce0a26632ece2
diff --git a/sys-devel/llvm/files/llvm-2.7-cflags.patch b/sys-devel/llvm/files/llvm-2.7-cflags.patch
new file mode 100644
index 0000000..9ae4373
--- /dev/null
+++ b/sys-devel/llvm/files/llvm-2.7-cflags.patch
@@ -0,0 +1,38 @@
+diff -urN ./llvm-2.7.orig/Makefile.rules ./llvm-2.7/Makefile.rules
+--- ./llvm-2.7.orig/Makefile.rules 2010-03-20 13:48:04.000000000 +0100
++++ ./llvm-2.7/Makefile.rules 2010-03-20 13:52:19.000000000 +0100
+@@ -314,12 +314,6 @@
+ CPP.Defines :=
+ ifeq ($(ENABLE_OPTIMIZED),1)
+ BuildMode := Release
+- # Don't use -fomit-frame-pointer on Darwin or FreeBSD.
+- ifneq ($(HOST_OS),FreeBSD)
+- ifneq ($(HOST_OS),Darwin)
+- OmitFramePointer := -fomit-frame-pointer
+- endif
+- endif
+
+ # Darwin requires -fstrict-aliasing to be explicitly enabled.
+ # Avoid -fstrict-aliasing on Darwin for now, there are unresolved issues
+@@ -327,8 +321,8 @@
+ #ifeq ($(HOST_OS),Darwin)
+ # EXTRA_OPTIONS += -fstrict-aliasing -Wstrict-aliasing
+ #endif
+- CXX.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
+- C.Flags += $(OPTIMIZE_OPTION) $(OmitFramePointer)
++ CXX.Flags += $(OPTIMIZE_OPTION)
++ C.Flags += $(OPTIMIZE_OPTION)
+ LD.Flags += $(OPTIMIZE_OPTION)
+ ifdef DEBUG_SYMBOLS
+ BuildMode := $(BuildMode)+Debug
+@@ -381,8 +381,8 @@
+
+ # If REQUIRES_RTTI=1 is specified then don't disable run-time type id.
+ ifneq ($(REQUIRES_RTTI), 1)
+- CXX.Flags += -fno-rtti
+- CXXFLAGS += -fno-rtti
++ #CXX.Flags += -fno-rtti
++ #CXXFLAGS += -fno-rtti
+ endif
+
+ ifdef ENABLE_COVERAGE
diff --git a/sys-devel/llvm/files/llvm-2.7-destdir.patch b/sys-devel/llvm/files/llvm-2.7-destdir.patch
new file mode 100644
index 0000000..09b1b06
--- /dev/null
+++ b/sys-devel/llvm/files/llvm-2.7-destdir.patch
@@ -0,0 +1,16 @@
+--- ./Makefile.config.in.orig 2010-03-20 14:30:25.000000000 +0100
++++ ./Makefile.config.in 2010-03-20 14:37:35.000000000 +0100
+@@ -77,10 +77,10 @@
+ LLVMMAKE := $(LLVM_SRC_ROOT)/make
+
+ PROJ_bindir := $(PROJ_prefix)/bin
+-PROJ_libdir := $(DESTDIR)/usr/lib64
++PROJ_libdir := $(PROJ_prefix)/lib64
+ PROJ_datadir := $(PROJ_prefix)/share
+-PROJ_docsdir := $(DESTDIR)$(PROJ_prefix)/share/doc/llvm-2.7_pre1
+-PROJ_etcdir := $(DESTDIR)/etc/llvm
++PROJ_docsdir := $(PROJ_prefix)/share/doc/llvm-2.7_pre1
++PROJ_etcdir := $(PROJ_prefix)/etc/llvm
+ PROJ_includedir := $(PROJ_prefix)/include
+ PROJ_infodir := $(PROJ_prefix)/info
+ PROJ_mandir := $(PROJ_prefix)/share/man
diff --git a/sys-devel/llvm/files/llvm-2.7-nodoctargz.patch b/sys-devel/llvm/files/llvm-2.7-nodoctargz.patch
new file mode 100644
index 0000000..bcbb262
--- /dev/null
+++ b/sys-devel/llvm/files/llvm-2.7-nodoctargz.patch
@@ -0,0 +1,36 @@
+diff -urN ./llvm-2.7.orig/docs/Makefile ./llvm-2.7/docs/Makefile
+--- ./llvm-2.7.orig/docs/Makefile 2010-03-20 13:48:01.000000000 +0100
++++ ./llvm-2.7/docs/Makefile 2010-03-20 13:56:26.000000000 +0100
+@@ -46,30 +46,21 @@
+ # 'make generated BUILD_FOR_WEBSITE=1'
+ generated:: doxygen ocamldoc
+
+-install-html: $(PROJ_OBJ_DIR)/html.tar.gz
++install-html:
+ $(Echo) Installing HTML documentation
+ $(Verb) $(MKDIR) $(DESTDIR)$(PROJ_docsdir)/html
+ $(Verb) $(MKDIR) $(DESTDIR)$(PROJ_docsdir)/html/img
+ $(Verb) $(DataInstall) $(HTML) $(DESTDIR)$(PROJ_docsdir)/html
+ $(Verb) $(DataInstall) $(IMAGES) $(DESTDIR)$(PROJ_docsdir)/html/img
+- $(Verb) $(DataInstall) $(PROJ_OBJ_DIR)/html.tar.gz $(DESTDIR)$(PROJ_docsdir)
+-
+-$(PROJ_OBJ_DIR)/html.tar.gz: $(HTML)
+- $(Echo) Packaging HTML documentation
+- $(Verb) $(RM) -rf $@ $(PROJ_OBJ_DIR)/html.tar
+- $(Verb) cd $(PROJ_SRC_DIR) && \
+- $(TAR) cf $(PROJ_OBJ_DIR)/html.tar *.html
+- $(Verb) $(GZIP) $(PROJ_OBJ_DIR)/html.tar
+
+ install-doxygen: doxygen
+ $(Echo) Installing doxygen documentation
+ $(Verb) $(MKDIR) $(DESTDIR)$(PROJ_docsdir)/html/doxygen
+- $(Verb) $(DataInstall) $(PROJ_OBJ_DIR)/doxygen.tar.gz $(DESTDIR)$(PROJ_docsdir)
+ $(Verb) cd $(PROJ_OBJ_DIR)/doxygen && \
+ $(FIND) . -type f -exec \
+ $(DataInstall) {} $(DESTDIR)$(PROJ_docsdir)/html/doxygen \;
+
+-doxygen: regendoc $(PROJ_OBJ_DIR)/doxygen.tar.gz
++doxygen: regendoc
+
+ regendoc:
+ $(Echo) Building doxygen documentation
diff --git a/sys-devel/llvm/llvm-2.7_pre1.ebuild b/sys-devel/llvm/llvm-2.7_pre1.ebuild
new file mode 100644
index 0000000..61e7062
--- /dev/null
+++ b/sys-devel/llvm/llvm-2.7_pre1.ebuild
@@ -0,0 +1,160 @@
+# 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.6-r1.ebuild,v 1.1 2010/03/18 19:38:22 voyageur Exp $
+
+EAPI="2"
+inherit eutils multilib toolchain-funcs subversion
+
+DESCRIPTION="Low Level Virtual Machine"
+HOMEPAGE="http://llvm.org/"
+ESVN_REPO_URI="http://llvm.org/svn/llvm-project/llvm/trunk"
+
+LICENSE="UoI-NCSA"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="alltargets debug +libffi llvm-gcc ocaml test"
+
+DEPEND="dev-lang/perl
+ >=sys-devel/make-3.79
+ >=sys-devel/flex-2.5.4
+ >=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
+ libffi? ( virtual/libffi )
+ llvm-gcc? ( sys-devel/llvm-gcc )
+ ocaml? ( dev-lang/ocaml )
+ test? ( dev-util/dejagnu )"
+RDEPEND="dev-lang/perl"
+
+S=${WORKDIR}/${PN}-${PV/_pre*}
+
+pkg_setup() {
+ # need to check if the active compiler is ok
+
+ broken_gcc=" 3.2.2 3.2.3 3.3.2 4.1.1 "
+ broken_gcc_x86=" 3.4.0 3.4.2 "
+ broken_gcc_amd64=" 3.4.6 "
+
+ gcc_vers=$(gcc-fullversion)
+
+ if [[ ${broken_gcc} == *" ${version} "* ]] ; then
+ elog "Your version of gcc is known to miscompile llvm."
+ elog "Check http://www.llvm.org/docs/GettingStarted.html for"
+ elog "possible solutions."
+ die "Your currently active version of gcc is known to miscompile llvm"
+ fi
+
+ if [[ ${CHOST} == i*86-* && ${broken_gcc_x86} == *" ${version} "* ]] ; then
+ elog "Your version of gcc is known to miscompile llvm on x86"
+ elog "architectures. Check"
+ elog "http://www.llvm.org/docs/GettingStarted.html for possible"
+ elog "solutions."
+ die "Your currently active version of gcc is known to miscompile llvm"
+ fi
+
+ if [[ ${CHOST} == x86_64-* && ${broken_gcc_amd64} == *" ${version} "* ]];
+ then
+ elog "Your version of gcc is known to miscompile llvm in amd64"
+ elog "architectures. Check"
+ elog "http://www.llvm.org/docs/GettingStarted.html for possible"
+ elog "solutions."
+ die "Your currently active version of gcc is known to miscompile llvm"
+ fi
+}
+
+src_prepare() {
+ # unfortunately ./configure won't listen to --mandir and the-like, so take
+ # care of this.
+ einfo "Fixing install dirs"
+ sed -e 's,^PROJ_docsdir.*,PROJ_docsdir := $(DESTDIR)$(PROJ_prefix)/share/doc/'${PF}, \
+ -e 's,^PROJ_etcdir.*,PROJ_etcdir := $(DESTDIR)/etc/llvm,' \
+ -e 's,^PROJ_libdir.*,PROJ_libdir := $(DESTDIR)/usr/'$(get_libdir), \
+ -i Makefile.config.in || die "sed failed"
+
+ einfo "Fixing rpath"
+ sed -e 's/\$(RPATH) -Wl,\$(\(ToolDir\|LibDir\))//g' -i Makefile.rules || die "sed failed"
+
+ # Fix docs installation
+ sed -e '/^NO_INSTALL_MANS/s/$/$(DST_MAN_DIR)tblgen.1 $(DST_MAN_DIR)llvmgcc.1 $(DST_MAN_DIR)llvmgxx.1/' \
+ -i docs/CommandGuide/Makefile || die "manpages sed failed"
+ epatch "${FILESDIR}"/${PN}-2.7-nodoctargz.patch
+
+ # Buggy test, http://llvm.org/bugs/show_bug.cgi?id=5047
+ rm test/DebugInfo/2009-01-15-dbg_declare.ll
+
+ # Do not force -O3 -fomit-frame-pointer on users
+ epatch "${FILESDIR}"/${PN}-2.7-cflags.patch
+
+ # Fix some destdir h0rkage
+ epatch "${FILESDIR}"/${PN}-2.7-destdir.patch
+}
+
+src_configure() {
+ local CONF_FLAGS=""
+
+ if use debug; then
+ CONF_FLAGS="${CONF_FLAGS} --disable-optimized"
+ einfo "Note: Compiling LLVM in debug mode will create huge and slow binaries"
+ # ...and you probably shouldn't use tmpfs, unless it can hold 900MB
+ else
+ CONF_FLAGS="${CONF_FLAGS} \
+ --enable-optimized \
+ --disable-assertions \
+ --disable-expensive-checks"
+ fi
+
+ if use alltargets; then
+ CONF_FLAGS="${CONF_FLAGS} --enable-targets=all"
+ else
+ CONF_FLAGS="${CONF_FLAGS} --enable-targets=host-only"
+ fi
+
+ if use amd64; then
+ CONF_FLAGS="${CONF_FLAGS} --enable-pic"
+ fi
+
+ # things would be built differently depending on whether llvm-gcc is
+ # used or not.
+ local LLVM_GCC_DIR=/dev/null
+ 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_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}"
+ fi
+ einfo "Using $LLVM_GCC_DRIVER"
+ LLVM_GPP_DRIVER=${LLVM_GCC_DRIVER/%-gcc/-g++}
+ else
+ eerror "llvm-gcc USE flag enabled, but sys-devel/llvm-gcc was not found"
+ eerror "Building with standard gcc, re-merge this package after installing"
+ eerror "llvm-gcc to build with it"
+ eerror "This is normal behavior on first LLVM merge"
+ fi
+ fi
+
+ CONF_FLAGS="${CONF_FLAGS} \
+ --with-llvmgccdir=${LLVM_GCC_DIR} \
+ --with-llvmgcc=${LLVM_GCC_DRIVER} \
+ --with-llvmgxx=${LLVM_GPP_DRIVER}"
+
+ if use ocaml; then
+ CONF_FLAGS="${CONF_FLAGS} --enable-bindings=ocaml"
+ else
+ CONF_FLAGS="${CONF_FLAGS} --enable-bindings=none"
+ fi
+
+ CONF_FLAGS="${CONF_FLAGS} $(use_enable libffi)"
+ econf ${CONF_FLAGS} || die "econf failed"
+}
+
+src_compile() {
+ emake VERBOSE=1 KEEP_SYMBOLS=1 || die "emake failed"
+}
+
+src_install() {
+ emake KEEP_SYMBOLS=1 DESTDIR="${D}" install || die "install failed"
+}
diff --git a/sys-devel/llvm/metadata.xml b/sys-devel/llvm/metadata.xml
new file mode 100644
index 0000000..3f50323
--- /dev/null
+++ b/sys-devel/llvm/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>voyageur@gentoo.org</email>
+ <name>Bernard Cafarelli</name>
+ </maintainer>
+ <longdescription>Low Level Virtual Machine (LLVM) is:
+ 1. A compilation strategy designed to enable effective program optimization across the entire lifetime of a program. LLVM supports effective optimization at compile time, link-time (particularly interprocedural), run-time and offline (i.e., after software is installed), while remaining transparent to developers and maintaining compatibility with existing build scripts.
+ 2. A virtual instruction set - LLVM is a low-level object code representation that uses simple RISC-like instructions, but provides rich, language-independent, type information and dataflow (SSA) information about operands. This combination enables sophisticated transformations on object code, while remaining light-weight enough to be attached to the executable. This combination is key to allowing link-time, run-time, and offline transformations.
+ 3. A compiler infrastructure - LLVM is also a collection of source code that implements the language and compilation strategy. The primary components of the LLVM infrastructure are a GCC-based C and C++ front-end, a link-time optimization framework with a growing set of global and interprocedural analyses and transformations, static back-ends for many popular (and some obscure) architectures, a back-end which emits portable C code, and a Just-In-Time compilers for several architectures.
+ 4. LLVM does not imply things that you would expect from a high-level virtual machine. It does not require garbage collection or run-time code generation (In fact, LLVM makes a great static compiler!). Note that optional LLVM components can be used to build high-level virtual machines and other systems that need these services.</longdescription>
+ <use>
+ <flag name='alltargets'>Build all host targets (default: host only)</flag>
+ <flag name='libffi'>Add support to call arbitrary external (natively compiled) functions via <pkg>dev-libs/libffi</pkg></flag>
+ <flag name='llvm-gcc'>Build LLVM with <pkg>sys-devel/llvm-gcc</pkg></flag>
+ </use>
+</pkgmetadata>