summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2012-07-03 13:57:17 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2012-07-03 13:57:17 +0000
commit24d4de952a2d8dccc064e84349536e509a8d26fb (patch)
treec1121560bcfc038b97b9c5dea6eff066d7c22b5d /sys-devel/dragonegg
parentVersion bump for bug 423861. (diff)
downloadgentoo-2-24d4de952a2d8dccc064e84349536e509a8d26fb.tar.gz
gentoo-2-24d4de952a2d8dccc064e84349536e509a8d26fb.tar.bz2
gentoo-2-24d4de952a2d8dccc064e84349536e509a8d26fb.zip
Tests require lit from llvm. Note that at the moment, test suites are external, so running tests will not produce many results. Bug #423511
(Portage version: 2.2.0_alpha115/cvs/Linux x86_64)
Diffstat (limited to 'sys-devel/dragonegg')
-rw-r--r--sys-devel/dragonegg/ChangeLog7
-rw-r--r--sys-devel/dragonegg/dragonegg-3.1.ebuild9
-rw-r--r--sys-devel/dragonegg/dragonegg-9999.ebuild16
3 files changed, 27 insertions, 5 deletions
diff --git a/sys-devel/dragonegg/ChangeLog b/sys-devel/dragonegg/ChangeLog
index 425f50e5e3e2..50a2658ab5b6 100644
--- a/sys-devel/dragonegg/ChangeLog
+++ b/sys-devel/dragonegg/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-devel/dragonegg
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/dragonegg/ChangeLog,v 1.7 2012/05/24 12:13:40 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/dragonegg/ChangeLog,v 1.8 2012/07/03 13:57:17 voyageur Exp $
+
+ 03 Jul 2012; Bernard Cafarelli <voyageur@gentoo.org> dragonegg-3.1.ebuild,
+ dragonegg-9999.ebuild:
+ Tests require lit from llvm. Note that at the moment, test suites are
+ external, so running tests will not produce many results. Bug #423511
*dragonegg-3.1 (24 May 2012)
diff --git a/sys-devel/dragonegg/dragonegg-3.1.ebuild b/sys-devel/dragonegg/dragonegg-3.1.ebuild
index 8d6fb54e5a97..52b4aa587028 100644
--- a/sys-devel/dragonegg/dragonegg-3.1.ebuild
+++ b/sys-devel/dragonegg/dragonegg-3.1.ebuild
@@ -1,13 +1,14 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/dragonegg/dragonegg-3.1.ebuild,v 1.1 2012/05/24 12:13:40 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/dragonegg/dragonegg-3.1.ebuild,v 1.2 2012/07/03 13:57:17 voyageur Exp $
EAPI=4
inherit multilib toolchain-funcs
DESCRIPTION="GCC plugin that uses LLVM for optimization and code generation"
HOMEPAGE="http://dragonegg.llvm.org/"
-SRC_URI="http://llvm.org/releases/${PV}/${P}.src.tar.gz"
+SRC_URI="http://llvm.org/releases/${PV}/${P}.src.tar.gz
+ test? ( http://llvm.org/releases/${PV}/llvm-${PV}.src.tar.gz )"
LICENSE="GPL-2"
SLOT="0"
@@ -32,6 +33,10 @@ src_compile() {
emake CC="$(tc-getCC)" GCC="$(tc-getCC)" CXX="$(tc-getCXX)" VERBOSE=1
}
+src_test() {
+ emake LIT_DIR="${WORKDIR}"/llvm-${PV}.src/utils/lit check
+}
+
src_install() {
# Install plugin in llvm lib directory
exeinto /usr/$(get_libdir)/llvm
diff --git a/sys-devel/dragonegg/dragonegg-9999.ebuild b/sys-devel/dragonegg/dragonegg-9999.ebuild
index 4992029e3623..719efe4cd24c 100644
--- a/sys-devel/dragonegg/dragonegg-9999.ebuild
+++ b/sys-devel/dragonegg/dragonegg-9999.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/dragonegg/dragonegg-9999.ebuild,v 1.1 2011/12/02 23:54:26 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/dragonegg/dragonegg-9999.ebuild,v 1.2 2012/07/03 13:57:17 voyageur Exp $
EAPI=4
inherit subversion multilib
@@ -20,6 +20,14 @@ DEPEND="|| ( sys-devel/gcc:4.5[lto]
~sys-devel/llvm-${PV}"
RDEPEND="${DEPEND}"
+src_unpack() {
+ if use test;
+ then
+ ESVN_PROJECT=llvm S="${WORKDIR}"/llvm subversion_fetch "http://llvm.org/svn/llvm-project/llvm/trunk"
+ fi
+ subversion_fetch
+}
+
src_prepare() {
# Replace svnversion call
subversion_wc_info
@@ -32,6 +40,10 @@ src_compile() {
emake CC="$(tc-getCC)" GCC="$(tc-getCC)" CXX="$(tc-getCXX)" VERBOSE=1
}
+src_test() {
+ emake LIT_DIR="${WORKDIR}"/llvm/utils/lit check
+}
+
src_install() {
# Install plugin in llvm lib directory
exeinto /usr/$(get_libdir)/llvm