summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2010-08-03 08:45:44 +0000
committerAlistair Bush <ali_bush@gentoo.org>2010-08-03 08:45:44 +0000
commit2fcd86946c6e2031b1452beb95f2da113971a369 (patch)
treedfb9f6cc79dccc71f09c310ac8e331ecb996b6bd /dev-libs/libjit/libjit-0.1.2.ebuild
parentrm (diff)
downloadgentoo-2-2fcd86946c6e2031b1452beb95f2da113971a369.tar.gz
gentoo-2-2fcd86946c6e2031b1452beb95f2da113971a369.tar.bz2
gentoo-2-2fcd86946c6e2031b1452beb95f2da113971a369.zip
Fix tests and cleanup. See bug #327297.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/libjit/libjit-0.1.2.ebuild')
-rw-r--r--dev-libs/libjit/libjit-0.1.2.ebuild16
1 files changed, 13 insertions, 3 deletions
diff --git a/dev-libs/libjit/libjit-0.1.2.ebuild b/dev-libs/libjit/libjit-0.1.2.ebuild
index 505f6281a488..a377cf716d49 100644
--- a/dev-libs/libjit/libjit-0.1.2.ebuild
+++ b/dev-libs/libjit/libjit-0.1.2.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libjit/libjit-0.1.2.ebuild,v 1.1 2009/03/08 18:41:32 loki_val Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libjit/libjit-0.1.2.ebuild,v 1.2 2010/08/03 08:45:44 ali_bush Exp $
EAPI=2
@@ -13,7 +13,7 @@ SRC_URI="mirror://gnu/dotgnu/libjit/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
-IUSE="doc examples interpreter long-double new-reg-alloc"
+IUSE="doc examples interpreter long-double"
DEPEND="doc? ( app-text/texi2html )"
RDEPEND=""
@@ -43,6 +43,16 @@ src_compile() {
fi
}
+src_test () {
+ if use interpreter || use long-double ; then
+ make check || die "Tests failed."
+ else
+ ewarn "Skipping Tests due to missing use flags"
+ einfo "Please enable either the interpreter or long-double use flags"
+ einfo "if you want to run tests."
+ fi
+}
+
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog NEWS README || die "dodoc failed"