summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-01-20 06:55:27 +0000
committerMike Frysinger <vapier@gentoo.org>2005-01-20 06:55:27 +0000
commite6eab02ea0649bdffe7ff4bfb73f86f87251c86b (patch)
tree531eeba9d539b6b3da1c95ab117fcadf4a96ae74 /dev-util/dejagnu
parentadd support for src_test (diff)
downloadgentoo-2-e6eab02ea0649bdffe7ff4bfb73f86f87251c86b.tar.gz
gentoo-2-e6eab02ea0649bdffe7ff4bfb73f86f87251c86b.tar.bz2
gentoo-2-e6eab02ea0649bdffe7ff4bfb73f86f87251c86b.zip
Dont try to run src_test() if dejagnu isnt installed yet since it uses itself to run the tests.
(Portage version: 2.0.51-r13)
Diffstat (limited to 'dev-util/dejagnu')
-rw-r--r--dev-util/dejagnu/ChangeLog8
-rw-r--r--dev-util/dejagnu/dejagnu-1.4.4-r1.ebuild11
2 files changed, 15 insertions, 4 deletions
diff --git a/dev-util/dejagnu/ChangeLog b/dev-util/dejagnu/ChangeLog
index d38063525e32..12f35f51f52e 100644
--- a/dev-util/dejagnu/ChangeLog
+++ b/dev-util/dejagnu/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-util/dejagnu
-# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/dejagnu/ChangeLog,v 1.10 2004/11/10 01:53:24 vapier Exp $
+# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/dejagnu/ChangeLog,v 1.11 2005/01/20 06:55:27 vapier Exp $
+
+ 20 Jan 2005; Mike Frysinger <vapier@gentoo.org> dejagnu-1.4.4-r1.ebuild:
+ Dont try to run src_test() if dejagnu isnt installed yet since it uses
+ itself to run the tests.
09 Nov 2004; Mike Frysinger <vapier@gentoo.org> dejagnu-1.4.4-r1.ebuild,
-dejagnu-1.4.4.ebuild:
diff --git a/dev-util/dejagnu/dejagnu-1.4.4-r1.ebuild b/dev-util/dejagnu/dejagnu-1.4.4-r1.ebuild
index 85e9a2fd82a4..6b84487c7dd8 100644
--- a/dev-util/dejagnu/dejagnu-1.4.4-r1.ebuild
+++ b/dev-util/dejagnu/dejagnu-1.4.4-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/dejagnu/dejagnu-1.4.4-r1.ebuild,v 1.8 2005/01/19 23:33:09 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/dejagnu/dejagnu-1.4.4-r1.ebuild,v 1.9 2005/01/20 06:55:27 vapier Exp $
inherit eutils
@@ -23,6 +23,13 @@ src_unpack() {
epatch ${FILESDIR}/dejagnu-ignore-libwarning.patch
}
+src_test() {
+ # if you dont have dejagnu emerged yet, you cant
+ # run the tests ... crazy aint it :)
+ type -p runtest || return 0
+ make check || die "check failed :("
+}
+
src_install() {
make install DESTDIR="${D}" || die
dodoc AUTHORS ChangeLog NEWS README TODO