summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2011-11-10 12:35:56 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2011-11-10 12:35:56 +0000
commit7472acc3c9eef68a96fa216aabb3ceb838842c2c (patch)
tree5334c3eb500bf97be0cd00df1cef2c1cbc733ca9 /sys-devel/dragonegg
parentAdd dragonegg to llvm release candidate mask (diff)
downloadgentoo-2-7472acc3c9eef68a96fa216aabb3ceb838842c2c.tar.gz
gentoo-2-7472acc3c9eef68a96fa216aabb3ceb838842c2c.tar.bz2
gentoo-2-7472acc3c9eef68a96fa216aabb3ceb838842c2c.zip
Initial commit
(Portage version: 2.2.0_alpha72/cvs/Linux x86_64)
Diffstat (limited to 'sys-devel/dragonegg')
-rw-r--r--sys-devel/dragonegg/ChangeLog10
-rw-r--r--sys-devel/dragonegg/dragonegg-3.0_rc3.ebuild47
-rw-r--r--sys-devel/dragonegg/metadata.xml9
3 files changed, 66 insertions, 0 deletions
diff --git a/sys-devel/dragonegg/ChangeLog b/sys-devel/dragonegg/ChangeLog
new file mode 100644
index 000000000000..1f56daddabfc
--- /dev/null
+++ b/sys-devel/dragonegg/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sys-devel/dragonegg
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/dragonegg/ChangeLog,v 1.1 2011/11/10 12:35:56 voyageur Exp $
+
+*dragonegg-3.0_rc3 (10 Nov 2011)
+
+ 10 Nov 2011; Bernard Cafarelli <voyageur@gentoo.org>
+ +dragonegg-3.0_rc3.ebuild, +metadata.xml:
+ Initial commit
+
diff --git a/sys-devel/dragonegg/dragonegg-3.0_rc3.ebuild b/sys-devel/dragonegg/dragonegg-3.0_rc3.ebuild
new file mode 100644
index 000000000000..ad9d7c446164
--- /dev/null
+++ b/sys-devel/dragonegg/dragonegg-3.0_rc3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/dragonegg/dragonegg-3.0_rc3.ebuild,v 1.1 2011/11/10 12:35:56 voyageur Exp $
+
+EAPI=4
+inherit multilib
+
+DESCRIPTION="GCC plugin that uses LLVM for optimization and code generation"
+HOMEPAGE="http://dragonegg.llvm.org/"
+SRC_URI="http://llvm.org/pre-releases/${PV/_rc*}/${PV/3.0_}/${P/_}.src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=sys-devel/gcc-4.5.0[lto]
+ ~sys-devel/llvm-${PV}"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${P/_}.src
+
+src_prepare() {
+ # Remove in final 3.0
+ sed -e "s/\(^REVISION:=\).*/\1${P}/" \
+ -i Makefile || die "Setting revision failed"
+}
+
+src_compile() {
+ # GCC: compiler to use plugin with
+ emake CC="$(tc-getCC)" GCC="$(tc-getCC)" CXX="$(tc-getCXX)" VERBOSE=1
+}
+
+src_install() {
+ # Install plugin in llvm lib directory
+ exeinto /usr/$(get_libdir)/llvm
+ doexe dragonegg.so
+
+ dodoc README
+}
+
+pkg_postinst() {
+ elog "To use dragonegg, run gcc as usual, with an extra command line argument:"
+ elog " -fplugin=/usr/$(get_libdir)/llvm/dragonegg.so"
+ elog "If you change the active gcc profile, or update gcc to a new version,"
+ elog "you will have to remerge this package to update the plugin"
+}
diff --git a/sys-devel/dragonegg/metadata.xml b/sys-devel/dragonegg/metadata.xml
new file mode 100644
index 000000000000..6b1e8db2293f
--- /dev/null
+++ b/sys-devel/dragonegg/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>voyageur@gentoo.org</email>
+ <name>Bernard Cafarelli</name>
+ </maintainer>
+ <longdescription>DragonEgg is a <pkg>sys-devel/gcc</pkg> plugin (dragonegg.so) that replaces gcc's optimizers and code generators with those from the LLVM project. It is a reimplementation of llvm-gcc that works with gcc-4.5 or later.</longdescription>
+</pkgmetadata>